Skip to content

Commit

Permalink
chore(deps): Bump ip from 2.0.0 to 2.0.1 (#83)
Browse files Browse the repository at this point in the history
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.

[category:Dependencies]

Co-authored-by: @dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: @alanbsmith <[email protected]>
  • Loading branch information
dependabot[bot] and alanbsmith authored Feb 22, 2024
1 parent dbfda99 commit eaa6465
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions packages/canvas-tokens/utils/formatters/formatJS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {jsFileHeader} from './helpers/jsFileHeader';
* Style Dictionary format function that creates common-js file structure.
* This structure contains separated exports of each token.
* @param {*} FormatterArguments - Style Dictionary formatter object containing `dictionary`, `options`, `file` and `platform` properties.
* options can contains `withoutModule` property js module header should not be generated.
* options can contain `withoutModule` property js module header should not be generated.
* @returns file content as a string
*/
export const formatToInlineCommonJSModule: Formatter = ({dictionary, file, options}) => {
Expand All @@ -23,10 +23,9 @@ export const formatToInlineCommonJSModule: Formatter = ({dictionary, file, optio
* Style Dictionary format function that creates es6 file structure.
* This structure contains separated exports of each token.
* @param {*} FormatterArguments - Style Dictionary formatter object containing `dictionary`, `options`, `file` and `platform` properties.
* options can contains `withoutModule` property js module header should not be generated.
* @returns file content as a string
*/
export const formatToInlineES6Module: Formatter = ({dictionary, file, options}) => {
export const formatToInlineES6Module: Formatter = ({dictionary, file}) => {
const headerContent = formatHelpers.fileHeader({file});
return dictionary.allTokens.reduce((acc: string, {name, path}) => {
const cssVarName = path.join('-');
Expand All @@ -39,7 +38,6 @@ export const formatToInlineES6Module: Formatter = ({dictionary, file, options})
* Style Dictionary format function that creates ts file structure.
* This structure contains separated exports of each token with `as const`.
* @param {*} FormatterArguments - Style Dictionary formatter object containing `dictionary`, `options`, `file` and `platform` properties.
* options can contains `withoutModule` property js module header should not be generated.
* @returns file content as a string
*/
export const formatInlineTypes: Formatter = ({dictionary, file}) => {
Expand All @@ -54,7 +52,7 @@ export const formatInlineTypes: Formatter = ({dictionary, file}) => {
/**
* Style Dictionary format function that create token objects with common-js exports.
* @param {*} FormatterArguments - Style Dictionary formatter object containing `dictionary`, `options`, `file` and `platform` properties.
* options can contains `withoutModule` property js module header should not be generated.
* options can contain `withoutModule` property js module header should not be generated.
* @returns file content as a string
*/
export const formatCommonToObjects: Formatter = ({dictionary, file, options}) => {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6790,9 +6790,9 @@ invariant@^2.2.4:
loose-envify "^1.0.0"

ip@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da"
integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==
version "2.0.1"
resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.1.tgz#e8f3595d33a3ea66490204234b77636965307105"
integrity sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==

[email protected]:
version "1.9.1"
Expand Down

0 comments on commit eaa6465

Please sign in to comment.