diff --git a/lib/util.js b/lib/util.js index 44a0ba3..b1bfabd 100644 --- a/lib/util.js +++ b/lib/util.js @@ -2,7 +2,7 @@ // Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license const Immutable = require("immutable-ext"); -const noCase = require("no-case"); +const { noCase } = require("no-case"); const splitLines = string => string.split(/\r\n|[\r\n\u2028\u2029]/g); @@ -42,7 +42,10 @@ const remToPx = (rem, baseFontPercentage, baseFontPixel) => const pxToDp = px => px.replace(/px/g, "") + "dp"; -const kebabCase = string => noCase(string, null, "-"); +const kebabCase = string => + noCase(string, { + delimiter: "-" + }); module.exports = { allMatches, diff --git a/package-lock.json b/package-lock.json index f81631b..75b73d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6415,9 +6415,19 @@ } }, "lower-case": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", - "integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.1.tgz", + "integrity": "sha512-LiWgfDLLb1dwbFQZsSglpRj+1ctGnayXz3Uv0/WO8n558JycT5fg6zkNcnW0G68Nn0aEldTFeEfmjCfmqry/rQ==", + "requires": { + "tslib": "^1.10.0" + }, + "dependencies": { + "tslib": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", + "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" + } + } }, "lru-cache": { "version": "4.1.1", @@ -6772,11 +6782,19 @@ "dev": true }, "no-case": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", - "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.3.tgz", + "integrity": "sha512-ehY/mVQCf9BL0gKfsJBvFJen+1V//U+0HQMPrWct40ixE4jnv0bfvxDbWtAHL9EcaPEOJHVVYKoQn1TlZUB8Tw==", "requires": { - "lower-case": "^1.1.1" + "lower-case": "^2.0.1", + "tslib": "^1.10.0" + }, + "dependencies": { + "tslib": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", + "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" + } } }, "node-int64": { diff --git a/package.json b/package.json index 51926d7..f05bdec 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "js-yaml": "3.13.1", "json5": "0.5.1", "lodash": "^4.17.15", - "no-case": "2.3.2", + "no-case": "3.0.3", "resolve-from": "5.0.0", "tinycolor2": "1.4.1", "xml": "1.0.1"