epuber-stylus-source 0.54.8 → 0.56.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/vendor/{History.md → Changelog.md} +50 -0
- data/vendor/Readme.md +37 -23
- data/vendor/bin/stylus +1 -2
- data/vendor/lib/convert/css.js +1 -1
- data/vendor/lib/functions/acos.js +20 -0
- data/vendor/lib/functions/asin.js +21 -0
- data/vendor/lib/functions/atan.js +21 -0
- data/vendor/lib/functions/convert-angle.js +19 -0
- data/vendor/lib/functions/index.js +3 -0
- data/vendor/lib/functions/url.js +5 -5
- data/vendor/lib/lexer.js +1 -1
- data/vendor/lib/middleware.js +1 -2
- data/vendor/lib/visitor/compiler.js +2 -2
- data/vendor/lib/visitor/deps-resolver.js +3 -0
- data/vendor/node_modules/{cliui/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
- data/vendor/node_modules/ansi-regex/index.js +4 -4
- data/vendor/node_modules/ansi-regex/package.json +53 -51
- data/vendor/node_modules/ansi-regex/readme.md +35 -3
- data/vendor/node_modules/assertion-error/History.md +24 -0
- data/vendor/node_modules/{mkdirp/LICENSE → assertion-error/README.md} +22 -2
- data/vendor/node_modules/assertion-error/index.d.ts +11 -0
- data/vendor/node_modules/assertion-error/index.js +116 -0
- data/vendor/node_modules/assertion-error/package.json +29 -0
- data/vendor/node_modules/camelcase/index.d.ts +5 -3
- data/vendor/node_modules/camelcase/index.js +40 -18
- data/vendor/node_modules/camelcase/package.json +1 -1
- data/vendor/node_modules/camelcase/readme.md +21 -5
- data/vendor/node_modules/chai/CODEOWNERS +1 -0
- data/vendor/node_modules/chai/CODE_OF_CONDUCT.md +58 -0
- data/vendor/node_modules/chai/CONTRIBUTING.md +218 -0
- data/vendor/node_modules/chai/History.md +1059 -0
- data/vendor/node_modules/{should-type-adaptors → chai}/LICENSE +1 -1
- data/vendor/node_modules/chai/README.md +212 -0
- data/vendor/node_modules/chai/ReleaseNotes.md +737 -0
- data/vendor/node_modules/chai/bower.json +26 -0
- data/vendor/node_modules/chai/chai.js +11464 -0
- data/vendor/node_modules/chai/index.js +1 -0
- data/vendor/node_modules/chai/index.mjs +14 -0
- data/vendor/node_modules/chai/karma.conf.js +34 -0
- data/vendor/node_modules/chai/karma.sauce.js +41 -0
- data/vendor/node_modules/chai/lib/chai/assertion.js +175 -0
- data/vendor/node_modules/chai/lib/chai/config.js +94 -0
- data/vendor/node_modules/chai/lib/chai/core/assertions.js +3853 -0
- data/vendor/node_modules/chai/lib/chai/interface/assert.js +3113 -0
- data/vendor/node_modules/chai/lib/chai/interface/expect.js +47 -0
- data/vendor/node_modules/chai/lib/chai/interface/should.js +219 -0
- data/vendor/node_modules/chai/lib/chai/utils/addChainableMethod.js +152 -0
- data/vendor/node_modules/chai/lib/chai/utils/addLengthGuard.js +60 -0
- data/vendor/node_modules/chai/lib/chai/utils/addMethod.js +68 -0
- data/vendor/node_modules/chai/lib/chai/utils/addProperty.js +72 -0
- data/vendor/node_modules/chai/lib/chai/utils/compareByInspect.js +31 -0
- data/vendor/node_modules/chai/lib/chai/utils/expectTypes.js +51 -0
- data/vendor/node_modules/chai/lib/chai/utils/flag.js +33 -0
- data/vendor/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- data/vendor/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
- data/vendor/node_modules/chai/lib/chai/utils/getMessage.js +50 -0
- data/vendor/node_modules/chai/lib/chai/utils/getOperator.js +55 -0
- data/vendor/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js +29 -0
- data/vendor/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js +27 -0
- data/vendor/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
- data/vendor/node_modules/chai/lib/chai/utils/index.js +178 -0
- data/vendor/node_modules/chai/lib/chai/utils/inspect.js +33 -0
- data/vendor/node_modules/chai/lib/chai/utils/isNaN.js +26 -0
- data/vendor/node_modules/chai/lib/chai/utils/isProxyEnabled.js +24 -0
- data/vendor/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
- data/vendor/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +69 -0
- data/vendor/node_modules/chai/lib/chai/utils/overwriteMethod.js +92 -0
- data/vendor/node_modules/chai/lib/chai/utils/overwriteProperty.js +92 -0
- data/vendor/node_modules/chai/lib/chai/utils/proxify.js +147 -0
- data/vendor/node_modules/chai/lib/chai/utils/test.js +28 -0
- data/vendor/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
- data/vendor/node_modules/chai/lib/chai.js +92 -0
- data/vendor/node_modules/chai/package.json +63 -0
- data/vendor/node_modules/chai/register-assert.js +1 -0
- data/vendor/node_modules/chai/register-expect.js +1 -0
- data/vendor/node_modules/chai/register-should.js +1 -0
- data/vendor/node_modules/chai/sauce.browsers.js +106 -0
- data/vendor/node_modules/chalk/package.json +1 -1
- data/vendor/node_modules/chalk/readme.md +7 -1
- data/vendor/node_modules/{source-map-url → check-error}/LICENSE +1 -3
- data/vendor/node_modules/check-error/README.md +207 -0
- data/vendor/node_modules/check-error/check-error.js +176 -0
- data/vendor/node_modules/check-error/index.js +172 -0
- data/vendor/node_modules/check-error/package.json +85 -0
- data/vendor/node_modules/chokidar/README.md +5 -4
- data/vendor/node_modules/chokidar/index.js +7 -1
- data/vendor/node_modules/chokidar/lib/constants.js +2 -0
- data/vendor/node_modules/chokidar/lib/fsevents-handler.js +2 -1
- data/vendor/node_modules/chokidar/lib/nodefs-handler.js +9 -1
- data/vendor/node_modules/chokidar/package.json +15 -8
- data/vendor/node_modules/chokidar/types/index.d.ts +4 -3
- data/vendor/node_modules/css/lib/stringify/source-map-support.js +10 -3
- data/vendor/node_modules/css/package.json +8 -9
- data/vendor/node_modules/debug/LICENSE +10 -9
- data/vendor/node_modules/debug/README.md +116 -3
- data/vendor/node_modules/debug/package.json +35 -19
- data/vendor/node_modules/debug/src/browser.js +194 -120
- data/vendor/node_modules/debug/src/common.js +274 -0
- data/vendor/node_modules/debug/src/index.js +4 -4
- data/vendor/node_modules/debug/src/node.js +174 -97
- data/vendor/node_modules/{resolve-url → deep-eql}/LICENSE +1 -3
- data/vendor/node_modules/deep-eql/README.md +116 -0
- data/vendor/node_modules/deep-eql/deep-eql.js +833 -0
- data/vendor/node_modules/deep-eql/index.js +455 -0
- data/vendor/node_modules/deep-eql/package.json +90 -0
- data/vendor/node_modules/{urix → get-func-name}/LICENSE +1 -3
- data/vendor/node_modules/get-func-name/README.md +123 -0
- data/vendor/node_modules/get-func-name/get-func-name.js +48 -0
- data/vendor/node_modules/get-func-name/index.js +44 -0
- data/vendor/node_modules/get-func-name/package.json +85 -0
- data/vendor/node_modules/glob/README.md +3 -0
- data/vendor/node_modules/glob/common.js +2 -0
- data/vendor/node_modules/glob/glob.js +4 -5
- data/vendor/node_modules/glob/package.json +2 -1
- data/vendor/node_modules/glob/sync.js +4 -5
- data/vendor/node_modules/{cliui/node_modules/is-fullwidth-code-point → is-fullwidth-code-point}/index.d.ts +0 -0
- data/vendor/node_modules/is-fullwidth-code-point/index.js +25 -21
- data/vendor/node_modules/is-fullwidth-code-point/license +4 -16
- data/vendor/node_modules/is-fullwidth-code-point/package.json +40 -43
- data/vendor/node_modules/is-fullwidth-code-point/readme.md +6 -6
- data/vendor/node_modules/is-glob/README.md +1 -1
- data/vendor/node_modules/is-glob/index.js +126 -24
- data/vendor/node_modules/is-glob/package.json +2 -2
- data/vendor/node_modules/is-unicode-supported/index.d.ts +14 -0
- data/vendor/node_modules/is-unicode-supported/index.js +13 -0
- data/vendor/node_modules/{cliui/node_modules/string-width → is-unicode-supported}/license +1 -1
- data/vendor/node_modules/is-unicode-supported/package.json +41 -0
- data/vendor/node_modules/is-unicode-supported/readme.md +35 -0
- data/vendor/node_modules/js-yaml/CHANGELOG.md +13 -0
- data/vendor/node_modules/js-yaml/README.md +1 -1
- data/vendor/node_modules/js-yaml/dist/js-yaml.js +90 -70
- data/vendor/node_modules/js-yaml/dist/js-yaml.min.js +2 -2
- data/vendor/node_modules/js-yaml/dist/js-yaml.mjs +84 -65
- data/vendor/node_modules/js-yaml/index.js +17 -0
- data/vendor/node_modules/js-yaml/lib/schema.js +9 -9
- data/vendor/node_modules/js-yaml/lib/type.js +1 -0
- data/vendor/node_modules/js-yaml/package.json +1 -1
- data/vendor/node_modules/jscoverage/node_modules/ms/index.js +152 -0
- data/vendor/node_modules/{should-format/LICENSE → jscoverage/node_modules/ms/license.md} +1 -2
- data/vendor/node_modules/jscoverage/node_modules/ms/package.json +37 -0
- data/vendor/node_modules/jscoverage/node_modules/ms/readme.md +51 -0
- data/vendor/node_modules/log-symbols/index.d.ts +2 -2
- data/vendor/node_modules/log-symbols/index.js +3 -4
- data/vendor/node_modules/log-symbols/package.json +7 -5
- data/vendor/node_modules/log-symbols/readme.md +3 -3
- data/vendor/node_modules/loupe/CHANGELOG.md +5 -0
- data/vendor/node_modules/{cliui/node_modules/strip-ansi/license → loupe/LICENSE} +2 -2
- data/vendor/node_modules/loupe/README.md +63 -0
- data/vendor/node_modules/loupe/index.js +195 -0
- data/vendor/node_modules/loupe/lib/arguments.js +7 -0
- data/vendor/node_modules/loupe/lib/array.js +20 -0
- data/vendor/node_modules/loupe/lib/bigint.js +7 -0
- data/vendor/node_modules/loupe/lib/class.js +18 -0
- data/vendor/node_modules/loupe/lib/date.js +8 -0
- data/vendor/node_modules/loupe/lib/error.js +34 -0
- data/vendor/node_modules/loupe/lib/function.js +10 -0
- data/vendor/node_modules/loupe/lib/helpers.js +177 -0
- data/vendor/node_modules/loupe/lib/html.js +40 -0
- data/vendor/node_modules/loupe/lib/map.js +27 -0
- data/vendor/node_modules/loupe/lib/number.js +18 -0
- data/vendor/node_modules/loupe/lib/object.js +31 -0
- data/vendor/node_modules/loupe/lib/promise.js +16 -0
- data/vendor/node_modules/loupe/lib/regexp.js +8 -0
- data/vendor/node_modules/loupe/lib/set.js +16 -0
- data/vendor/node_modules/loupe/lib/string.js +29 -0
- data/vendor/node_modules/loupe/lib/symbol.js +6 -0
- data/vendor/node_modules/loupe/lib/typedarray.js +45 -0
- data/vendor/node_modules/loupe/loupe.js +852 -0
- data/vendor/node_modules/loupe/package.json +141 -0
- data/vendor/node_modules/minimatch/README.md +22 -1
- data/vendor/node_modules/minimatch/minimatch.js +93 -69
- data/vendor/node_modules/minimatch/package.json +6 -3
- data/vendor/node_modules/mocha/LICENSE +1 -1
- data/vendor/node_modules/mocha/README.md +1 -1
- data/vendor/node_modules/mocha/bin/mocha +18 -27
- data/vendor/node_modules/mocha/browser-entry.js +27 -20
- data/vendor/node_modules/mocha/lib/browser/growl.js +5 -5
- data/vendor/node_modules/mocha/lib/browser/parse-query.js +1 -1
- data/vendor/node_modules/mocha/lib/browser/progress.js +6 -6
- data/vendor/node_modules/mocha/lib/cli/cli.js +3 -2
- data/vendor/node_modules/mocha/lib/cli/config.js +7 -12
- data/vendor/node_modules/mocha/lib/cli/lookup-files.js +2 -8
- data/vendor/node_modules/mocha/lib/cli/node-flags.js +2 -5
- data/vendor/node_modules/mocha/lib/cli/one-and-dones.js +1 -2
- data/vendor/node_modules/mocha/lib/cli/run-helpers.js +15 -15
- data/vendor/node_modules/mocha/lib/cli/run-option-metadata.js +4 -0
- data/vendor/node_modules/mocha/lib/cli/run.js +13 -1
- data/vendor/node_modules/mocha/lib/cli/watch-run.js +3 -6
- data/vendor/node_modules/mocha/lib/context.js +5 -5
- data/vendor/node_modules/mocha/lib/errors.js +3 -3
- data/vendor/node_modules/mocha/lib/hook.js +9 -3
- data/vendor/node_modules/mocha/lib/interfaces/bdd.js +23 -20
- data/vendor/node_modules/mocha/lib/interfaces/common.js +7 -7
- data/vendor/node_modules/mocha/lib/interfaces/exports.js +1 -1
- data/vendor/node_modules/mocha/lib/interfaces/qunit.js +7 -7
- data/vendor/node_modules/mocha/lib/interfaces/tdd.js +9 -9
- data/vendor/node_modules/mocha/lib/mocha.js +105 -99
- data/vendor/node_modules/mocha/lib/nodejs/buffered-worker-pool.js +17 -1
- data/vendor/node_modules/mocha/lib/nodejs/esm-utils.js +124 -0
- data/vendor/node_modules/mocha/lib/reporters/base.js +49 -35
- data/vendor/node_modules/mocha/lib/reporters/doc.js +4 -4
- data/vendor/node_modules/mocha/lib/reporters/dot.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/html.js +12 -12
- data/vendor/node_modules/mocha/lib/reporters/json-stream.js +4 -4
- data/vendor/node_modules/mocha/lib/reporters/json.js +35 -10
- data/vendor/node_modules/mocha/lib/reporters/landing.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/list.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/markdown.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/min.js +1 -1
- data/vendor/node_modules/mocha/lib/reporters/nyan.js +16 -16
- data/vendor/node_modules/mocha/lib/reporters/progress.js +3 -3
- data/vendor/node_modules/mocha/lib/reporters/spec.js +6 -6
- data/vendor/node_modules/mocha/lib/reporters/tap.js +17 -17
- data/vendor/node_modules/mocha/lib/reporters/xunit.js +9 -9
- data/vendor/node_modules/mocha/lib/runnable.js +21 -21
- data/vendor/node_modules/mocha/lib/runner.js +63 -61
- data/vendor/node_modules/mocha/lib/stats-collector.js +7 -7
- data/vendor/node_modules/mocha/lib/suite.js +46 -75
- data/vendor/node_modules/mocha/lib/test.js +5 -5
- data/vendor/node_modules/mocha/lib/utils.js +19 -114
- data/vendor/node_modules/mocha/mocha-es2018.js +19794 -0
- data/vendor/node_modules/mocha/mocha.js +8059 -6920
- data/vendor/node_modules/mocha/mocha.js.map +1 -1
- data/vendor/node_modules/mocha/node_modules/debug/LICENSE +10 -9
- data/vendor/node_modules/mocha/node_modules/debug/README.md +24 -1
- data/vendor/node_modules/mocha/node_modules/debug/package.json +6 -6
- data/vendor/node_modules/mocha/node_modules/debug/src/common.js +15 -2
- data/vendor/node_modules/{semver → mocha/node_modules/minimatch}/LICENSE +1 -1
- data/vendor/node_modules/mocha/node_modules/minimatch/README.md +230 -0
- data/vendor/node_modules/mocha/node_modules/minimatch/minimatch.js +908 -0
- data/vendor/node_modules/mocha/node_modules/minimatch/package.json +31 -0
- data/vendor/node_modules/mocha/package.json +66 -65
- data/vendor/node_modules/ms/index.js +29 -19
- data/vendor/node_modules/ms/package.json +6 -6
- data/vendor/node_modules/ms/readme.md +18 -9
- data/vendor/node_modules/nanoid/README.md +9 -473
- data/vendor/node_modules/nanoid/async/index.browser.cjs +34 -0
- data/vendor/node_modules/nanoid/async/index.browser.js +7 -43
- data/vendor/node_modules/nanoid/async/index.cjs +5 -41
- data/vendor/node_modules/nanoid/async/index.d.ts +7 -7
- data/vendor/node_modules/nanoid/async/index.js +5 -41
- data/vendor/node_modules/nanoid/async/index.native.js +5 -36
- data/vendor/node_modules/nanoid/async/package.json +2 -1
- data/vendor/node_modules/nanoid/bin/nanoid.cjs +52 -2
- data/vendor/node_modules/nanoid/index.browser.cjs +37 -0
- data/vendor/node_modules/nanoid/index.browser.js +5 -73
- data/vendor/node_modules/nanoid/index.cjs +14 -49
- data/vendor/node_modules/nanoid/index.d.ts +9 -6
- data/vendor/node_modules/nanoid/index.js +14 -49
- data/vendor/node_modules/nanoid/non-secure/index.cjs +3 -12
- data/vendor/node_modules/nanoid/non-secure/index.d.ts +8 -5
- data/vendor/node_modules/nanoid/non-secure/index.js +3 -12
- data/vendor/node_modules/nanoid/package.json +14 -10
- data/vendor/node_modules/nanoid/url-alphabet/index.cjs +1 -4
- data/vendor/node_modules/nanoid/url-alphabet/index.js +1 -4
- data/vendor/node_modules/pathval/CHANGELOG.md +18 -0
- data/vendor/node_modules/pathval/LICENSE +16 -0
- data/vendor/node_modules/pathval/README.md +147 -0
- data/vendor/node_modules/pathval/index.js +301 -0
- data/vendor/node_modules/pathval/package.json +80 -0
- data/vendor/node_modules/pathval/pathval.js +1 -0
- data/vendor/node_modules/picomatch/CHANGELOG.md +16 -0
- data/vendor/node_modules/picomatch/README.md +34 -17
- data/vendor/node_modules/picomatch/lib/parse.js +19 -6
- data/vendor/node_modules/picomatch/lib/picomatch.js +34 -31
- data/vendor/node_modules/picomatch/lib/scan.js +8 -2
- data/vendor/node_modules/picomatch/package.json +1 -1
- data/vendor/node_modules/readdirp/index.js +11 -6
- data/vendor/node_modules/readdirp/package.json +1 -1
- data/vendor/node_modules/serialize-javascript/README.md +2 -4
- data/vendor/node_modules/serialize-javascript/index.js +11 -2
- data/vendor/node_modules/serialize-javascript/package.json +2 -2
- data/vendor/node_modules/source-map-resolve/LICENSE +1 -1
- data/vendor/node_modules/source-map-resolve/changelog.md +6 -0
- data/vendor/node_modules/source-map-resolve/{lib/source-map-resolve-node.js → index.js} +48 -13
- data/vendor/node_modules/source-map-resolve/package.json +7 -14
- data/vendor/node_modules/source-map-resolve/readme.md +1 -39
- data/vendor/node_modules/{cliui/node_modules/string-width → string-width}/index.d.ts +0 -0
- data/vendor/node_modules/string-width/index.js +16 -5
- data/vendor/node_modules/string-width/package.json +11 -10
- data/vendor/node_modules/string-width/readme.md +15 -7
- data/vendor/node_modules/{cliui/node_modules/strip-ansi → strip-ansi}/index.d.ts +0 -0
- data/vendor/node_modules/strip-ansi/index.js +1 -1
- data/vendor/node_modules/strip-ansi/package.json +52 -50
- data/vendor/node_modules/strip-ansi/readme.md +12 -5
- data/vendor/node_modules/{fsevents → type-detect}/LICENSE +1 -4
- data/vendor/node_modules/type-detect/README.md +228 -0
- data/vendor/node_modules/type-detect/index.js +378 -0
- data/vendor/node_modules/type-detect/package.json +1 -0
- data/vendor/node_modules/type-detect/type-detect.js +388 -0
- data/vendor/node_modules/workerpool/HISTORY.md +42 -0
- data/vendor/node_modules/workerpool/README.md +11 -1
- data/vendor/node_modules/workerpool/dist/worker.js +9 -42
- data/vendor/node_modules/workerpool/dist/worker.js.map +1 -1
- data/vendor/node_modules/workerpool/dist/workerpool.js +117 -74
- data/vendor/node_modules/workerpool/dist/workerpool.js.map +1 -1
- data/vendor/node_modules/workerpool/dist/workerpool.min.js +1 -1
- data/vendor/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +3 -3
- data/vendor/node_modules/workerpool/dist/workerpool.min.js.map +1 -1
- data/vendor/node_modules/workerpool/package.json +11 -11
- data/vendor/node_modules/workerpool/src/Pool.js +29 -4
- data/vendor/node_modules/workerpool/src/WorkerHandler.js +17 -4
- data/vendor/node_modules/workerpool/src/generated/embeddedWorker.js +1 -1
- data/vendor/node_modules/workerpool/src/header.js +1 -1
- data/vendor/node_modules/workerpool/src/types.js +2 -1
- data/vendor/package-lock.json +401 -664
- data/vendor/package.json +7 -9
- metadata +139 -175
- data/vendor/node_modules/cliui/node_modules/ansi-regex/index.js +0 -10
- data/vendor/node_modules/cliui/node_modules/ansi-regex/license +0 -9
- data/vendor/node_modules/cliui/node_modules/ansi-regex/package.json +0 -55
- data/vendor/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js +0 -50
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/license +0 -9
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json +0 -42
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md +0 -39
- data/vendor/node_modules/cliui/node_modules/string-width/index.js +0 -47
- data/vendor/node_modules/cliui/node_modules/string-width/package.json +0 -56
- data/vendor/node_modules/cliui/node_modules/string-width/readme.md +0 -50
- data/vendor/node_modules/cliui/node_modules/strip-ansi/index.js +0 -4
- data/vendor/node_modules/cliui/node_modules/strip-ansi/package.json +0 -54
- data/vendor/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
- data/vendor/node_modules/css-parse/Readme.md +0 -15
- data/vendor/node_modules/css-parse/index.js +0 -1
- data/vendor/node_modules/css-parse/package.json +0 -23
- data/vendor/node_modules/debug/CHANGELOG.md +0 -395
- data/vendor/node_modules/debug/Makefile +0 -58
- data/vendor/node_modules/debug/karma.conf.js +0 -70
- data/vendor/node_modules/debug/node.js +0 -1
- data/vendor/node_modules/debug/src/debug.js +0 -225
- data/vendor/node_modules/fsevents/README.md +0 -83
- data/vendor/node_modules/fsevents/fsevents.d.ts +0 -46
- data/vendor/node_modules/fsevents/fsevents.js +0 -82
- data/vendor/node_modules/fsevents/fsevents.node +0 -0
- data/vendor/node_modules/fsevents/package.json +0 -62
- data/vendor/node_modules/glob/changelog.md +0 -67
- data/vendor/node_modules/mkdirp/CHANGELOG.md +0 -15
- data/vendor/node_modules/mkdirp/bin/cmd.js +0 -68
- data/vendor/node_modules/mkdirp/index.js +0 -31
- data/vendor/node_modules/mkdirp/lib/find-made.js +0 -29
- data/vendor/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- data/vendor/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- data/vendor/node_modules/mkdirp/lib/opts-arg.js +0 -23
- data/vendor/node_modules/mkdirp/lib/path-arg.js +0 -29
- data/vendor/node_modules/mkdirp/lib/use-native.js +0 -10
- data/vendor/node_modules/mkdirp/package.json +0 -44
- data/vendor/node_modules/mkdirp/readme.markdown +0 -266
- data/vendor/node_modules/mocha/CHANGELOG.md +0 -931
- data/vendor/node_modules/mocha/lib/esm-utils.js +0 -58
- data/vendor/node_modules/mocha/node_modules/glob/LICENSE +0 -21
- data/vendor/node_modules/mocha/node_modules/glob/README.md +0 -375
- data/vendor/node_modules/mocha/node_modules/glob/changelog.md +0 -67
- data/vendor/node_modules/mocha/node_modules/glob/common.js +0 -240
- data/vendor/node_modules/mocha/node_modules/glob/glob.js +0 -790
- data/vendor/node_modules/mocha/node_modules/glob/package.json +0 -46
- data/vendor/node_modules/mocha/node_modules/glob/sync.js +0 -486
- data/vendor/node_modules/nanoid/CHANGELOG.md +0 -241
- data/vendor/node_modules/nanoid/index.dev.js +0 -105
- data/vendor/node_modules/nanoid/index.prod.js +0 -105
- data/vendor/node_modules/resolve-url/bower.json +0 -15
- data/vendor/node_modules/resolve-url/changelog.md +0 -15
- data/vendor/node_modules/resolve-url/component.json +0 -15
- data/vendor/node_modules/resolve-url/package.json +0 -34
- data/vendor/node_modules/resolve-url/readme.md +0 -83
- data/vendor/node_modules/resolve-url/resolve-url.js +0 -47
- data/vendor/node_modules/resolve-url/test/resolve-url.js +0 -70
- data/vendor/node_modules/semver/CHANGELOG.md +0 -70
- data/vendor/node_modules/semver/README.md +0 -443
- data/vendor/node_modules/semver/bin/semver.js +0 -174
- data/vendor/node_modules/semver/package.json +0 -28
- data/vendor/node_modules/semver/range.bnf +0 -16
- data/vendor/node_modules/semver/semver.js +0 -1596
- data/vendor/node_modules/should/CONTRIBUTING.md +0 -14
- data/vendor/node_modules/should/History.md +0 -554
- data/vendor/node_modules/should/LICENSE +0 -20
- data/vendor/node_modules/should/Readme.md +0 -223
- data/vendor/node_modules/should/as-function.js +0 -2935
- data/vendor/node_modules/should/cjs/should.js +0 -2962
- data/vendor/node_modules/should/es6/should.js +0 -2958
- data/vendor/node_modules/should/package.json +0 -51
- data/vendor/node_modules/should/should.d.ts +0 -243
- data/vendor/node_modules/should/should.js +0 -4371
- data/vendor/node_modules/should-equal/LICENSE +0 -21
- data/vendor/node_modules/should-equal/README.md +0 -24
- data/vendor/node_modules/should-equal/cjs/should-equal.js +0 -333
- data/vendor/node_modules/should-equal/es6/should-equal.js +0 -329
- data/vendor/node_modules/should-equal/package.json +0 -38
- data/vendor/node_modules/should-format/README.md +0 -6
- data/vendor/node_modules/should-format/cjs/should-format.js +0 -532
- data/vendor/node_modules/should-format/es6/should-format.js +0 -528
- data/vendor/node_modules/should-format/package.json +0 -44
- data/vendor/node_modules/should-type/LICENSE +0 -22
- data/vendor/node_modules/should-type/README.md +0 -4
- data/vendor/node_modules/should-type/cjs/should-type.js +0 -263
- data/vendor/node_modules/should-type/es6/should-type.js +0 -261
- data/vendor/node_modules/should-type/package.json +0 -38
- data/vendor/node_modules/should-type-adaptors/README.md +0 -1
- data/vendor/node_modules/should-type-adaptors/cjs/should-type-adaptors.js +0 -288
- data/vendor/node_modules/should-type-adaptors/es6/should-type-adaptors.js +0 -272
- data/vendor/node_modules/should-type-adaptors/package.json +0 -43
- data/vendor/node_modules/should-util/LICENSE +0 -21
- data/vendor/node_modules/should-util/README.md +0 -2
- data/vendor/node_modules/should-util/cjs/should-util.js +0 -50
- data/vendor/node_modules/should-util/es6/should-util.js +0 -42
- data/vendor/node_modules/should-util/package.json +0 -40
- data/vendor/node_modules/source-map-resolve/lib/decode-uri-component.js +0 -8
- data/vendor/node_modules/source-map-resolve/lib/resolve-url.js +0 -9
- data/vendor/node_modules/source-map-resolve/source-map-resolve.js +0 -348
- data/vendor/node_modules/source-map-url/changelog.md +0 -57
- data/vendor/node_modules/source-map-url/package.json +0 -39
- data/vendor/node_modules/source-map-url/readme.md +0 -97
- data/vendor/node_modules/source-map-url/source-map-url.js +0 -57
- data/vendor/node_modules/urix/index.js +0 -17
- data/vendor/node_modules/urix/package.json +0 -25
- data/vendor/node_modules/urix/readme.md +0 -46
- data/vendor/node_modules/urix/test/index.js +0 -43
- data/vendor/node_modules/wide-align/LICENSE +0 -14
- data/vendor/node_modules/wide-align/README.md +0 -47
- data/vendor/node_modules/wide-align/align.js +0 -65
- data/vendor/node_modules/wide-align/package.json +0 -33
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +0 -37
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -10
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -55
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +0 -50
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +0 -42
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +0 -39
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/index.d.ts +0 -29
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/index.js +0 -47
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/package.json +0 -56
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/readme.md +0 -50
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +0 -17
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -4
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -54
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
- data/vendor/node_modules/yargs/node_modules/ansi-regex/index.d.ts +0 -37
- data/vendor/node_modules/yargs/node_modules/ansi-regex/index.js +0 -10
- data/vendor/node_modules/yargs/node_modules/ansi-regex/license +0 -9
- data/vendor/node_modules/yargs/node_modules/ansi-regex/package.json +0 -55
- data/vendor/node_modules/yargs/node_modules/ansi-regex/readme.md +0 -78
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js +0 -50
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/license +0 -9
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json +0 -42
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md +0 -39
- data/vendor/node_modules/yargs/node_modules/string-width/index.d.ts +0 -29
- data/vendor/node_modules/yargs/node_modules/string-width/index.js +0 -47
- data/vendor/node_modules/yargs/node_modules/string-width/license +0 -9
- data/vendor/node_modules/yargs/node_modules/string-width/package.json +0 -56
- data/vendor/node_modules/yargs/node_modules/string-width/readme.md +0 -50
- data/vendor/node_modules/yargs/node_modules/strip-ansi/index.d.ts +0 -17
- data/vendor/node_modules/yargs/node_modules/strip-ansi/index.js +0 -4
- data/vendor/node_modules/yargs/node_modules/strip-ansi/license +0 -9
- data/vendor/node_modules/yargs/node_modules/strip-ansi/package.json +0 -54
- data/vendor/node_modules/yargs/node_modules/strip-ansi/readme.md +0 -46
- data/vendor/test.js +0 -31
@@ -1,40 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "should-util",
|
3
|
-
"version": "1.0.1",
|
4
|
-
"description": "Utility functions",
|
5
|
-
"main": "cjs/should-util.js",
|
6
|
-
"module": "es6/should-util.js",
|
7
|
-
"jsnext:main": "es6/should-util.js",
|
8
|
-
"scripts": {
|
9
|
-
"cjs": "rollup --format=cjs --output=cjs/should-util.js index.js",
|
10
|
-
"es6": "rollup --format=es --output=es6/should-util.js index.js",
|
11
|
-
"build": "npm run cjs && npm run es6",
|
12
|
-
"prepublish": "npm run build",
|
13
|
-
"pretest": "npm run build"
|
14
|
-
},
|
15
|
-
"repository": {
|
16
|
-
"type": "git",
|
17
|
-
"url": "git+https://github.com/shouldjs/util.git"
|
18
|
-
},
|
19
|
-
"keywords": [
|
20
|
-
"shouldjs",
|
21
|
-
"util"
|
22
|
-
],
|
23
|
-
"author": "Denis Bardadym <bardadymchik@gmail.com>",
|
24
|
-
"license": "MIT",
|
25
|
-
"bugs": {
|
26
|
-
"url": "https://github.com/shouldjs/util/issues"
|
27
|
-
},
|
28
|
-
"homepage": "https://github.com/shouldjs/util#readme",
|
29
|
-
"devDependencies": {
|
30
|
-
"eslint": "^3.2.2",
|
31
|
-
"eslint-config-shouldjs": "^1.0.2",
|
32
|
-
"rollup": "^0.34.7"
|
33
|
-
},
|
34
|
-
"files": [
|
35
|
-
"cjs/*",
|
36
|
-
"es6/*",
|
37
|
-
"README.md",
|
38
|
-
"LICENSE"
|
39
|
-
]
|
40
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
var decodeUriComponent = require("decode-uri-component")
|
2
|
-
|
3
|
-
function customDecodeUriComponent(string) {
|
4
|
-
// `decodeUriComponent` turns `+` into ` `, but that's not wanted.
|
5
|
-
return decodeUriComponent(string.replace(/\+/g, "%2B"))
|
6
|
-
}
|
7
|
-
|
8
|
-
module.exports = customDecodeUriComponent
|
@@ -1,348 +0,0 @@
|
|
1
|
-
// Note: source-map-resolve.js is generated from source-map-resolve-node.js and
|
2
|
-
// source-map-resolve-template.js. Only edit the two latter files, _not_
|
3
|
-
// source-map-resolve.js!
|
4
|
-
|
5
|
-
void (function(root, factory) {
|
6
|
-
if (typeof define === "function" && define.amd) {
|
7
|
-
define(["source-map-url", "resolve-url"], factory)
|
8
|
-
} else if (typeof exports === "object") {
|
9
|
-
var sourceMappingURL = require("source-map-url")
|
10
|
-
var resolveUrl = require("resolve-url")
|
11
|
-
module.exports = factory(sourceMappingURL, resolveUrl)
|
12
|
-
} else {
|
13
|
-
root.sourceMapResolve = factory(root.sourceMappingURL, root.resolveUrl)
|
14
|
-
}
|
15
|
-
}(this, function(sourceMappingURL, resolveUrl) {
|
16
|
-
|
17
|
-
function callbackAsync(callback, error, result) {
|
18
|
-
setImmediate(function() { callback(error, result) })
|
19
|
-
}
|
20
|
-
|
21
|
-
function parseMapToJSON(string, data) {
|
22
|
-
try {
|
23
|
-
return JSON.parse(string.replace(/^\)\]\}'/, ""))
|
24
|
-
} catch (error) {
|
25
|
-
error.sourceMapData = data
|
26
|
-
throw error
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
function readSync(read, url, data) {
|
31
|
-
var readUrl = url
|
32
|
-
try {
|
33
|
-
return String(read(readUrl))
|
34
|
-
} catch (error) {
|
35
|
-
error.sourceMapData = data
|
36
|
-
throw error
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
function resolveSourceMap(code, codeUrl, read, callback) {
|
43
|
-
var mapData
|
44
|
-
try {
|
45
|
-
mapData = resolveSourceMapHelper(code, codeUrl)
|
46
|
-
} catch (error) {
|
47
|
-
return callbackAsync(callback, error)
|
48
|
-
}
|
49
|
-
if (!mapData || mapData.map) {
|
50
|
-
return callbackAsync(callback, null, mapData)
|
51
|
-
}
|
52
|
-
var readUrl = mapData.url
|
53
|
-
read(readUrl, function(error, result) {
|
54
|
-
if (error) {
|
55
|
-
error.sourceMapData = mapData
|
56
|
-
return callback(error)
|
57
|
-
}
|
58
|
-
mapData.map = String(result)
|
59
|
-
try {
|
60
|
-
mapData.map = parseMapToJSON(mapData.map, mapData)
|
61
|
-
} catch (error) {
|
62
|
-
return callback(error)
|
63
|
-
}
|
64
|
-
callback(null, mapData)
|
65
|
-
})
|
66
|
-
}
|
67
|
-
|
68
|
-
function resolveSourceMapSync(code, codeUrl, read) {
|
69
|
-
var mapData = resolveSourceMapHelper(code, codeUrl)
|
70
|
-
if (!mapData || mapData.map) {
|
71
|
-
return mapData
|
72
|
-
}
|
73
|
-
mapData.map = readSync(read, mapData.url, mapData)
|
74
|
-
mapData.map = parseMapToJSON(mapData.map, mapData)
|
75
|
-
return mapData
|
76
|
-
}
|
77
|
-
|
78
|
-
var dataUriRegex = /^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/
|
79
|
-
|
80
|
-
/**
|
81
|
-
* The media type for JSON text is application/json.
|
82
|
-
*
|
83
|
-
* {@link https://tools.ietf.org/html/rfc8259#section-11 | IANA Considerations }
|
84
|
-
*
|
85
|
-
* `text/json` is non-standard media type
|
86
|
-
*/
|
87
|
-
var jsonMimeTypeRegex = /^(?:application|text)\/json$/
|
88
|
-
|
89
|
-
/**
|
90
|
-
* JSON text exchanged between systems that are not part of a closed ecosystem
|
91
|
-
* MUST be encoded using UTF-8.
|
92
|
-
*
|
93
|
-
* {@link https://tools.ietf.org/html/rfc8259#section-8.1 | Character Encoding}
|
94
|
-
*/
|
95
|
-
var jsonCharacterEncoding = "utf-8"
|
96
|
-
|
97
|
-
function base64ToBuf(b64) {
|
98
|
-
var binStr = atob(b64)
|
99
|
-
var len = binStr.length
|
100
|
-
var arr = new Uint8Array(len)
|
101
|
-
for (var i = 0; i < len; i++) {
|
102
|
-
arr[i] = binStr.charCodeAt(i)
|
103
|
-
}
|
104
|
-
return arr
|
105
|
-
}
|
106
|
-
|
107
|
-
function decodeBase64String(b64) {
|
108
|
-
if (typeof TextDecoder === "undefined" || typeof Uint8Array === "undefined") {
|
109
|
-
return atob(b64)
|
110
|
-
}
|
111
|
-
var buf = base64ToBuf(b64);
|
112
|
-
// Note: `decoder.decode` method will throw a `DOMException` with the
|
113
|
-
// `"EncodingError"` value when an coding error is found.
|
114
|
-
var decoder = new TextDecoder(jsonCharacterEncoding, {fatal: true})
|
115
|
-
return decoder.decode(buf);
|
116
|
-
}
|
117
|
-
|
118
|
-
function resolveSourceMapHelper(code, codeUrl) {
|
119
|
-
var url = sourceMappingURL.getFrom(code)
|
120
|
-
if (!url) {
|
121
|
-
return null
|
122
|
-
}
|
123
|
-
|
124
|
-
var dataUri = url.match(dataUriRegex)
|
125
|
-
if (dataUri) {
|
126
|
-
var mimeType = dataUri[1] || "text/plain"
|
127
|
-
var lastParameter = dataUri[2] || ""
|
128
|
-
var encoded = dataUri[3] || ""
|
129
|
-
var data = {
|
130
|
-
sourceMappingURL: url,
|
131
|
-
url: null,
|
132
|
-
sourcesRelativeTo: codeUrl,
|
133
|
-
map: encoded
|
134
|
-
}
|
135
|
-
if (!jsonMimeTypeRegex.test(mimeType)) {
|
136
|
-
var error = new Error("Unuseful data uri mime type: " + mimeType)
|
137
|
-
error.sourceMapData = data
|
138
|
-
throw error
|
139
|
-
}
|
140
|
-
try {
|
141
|
-
data.map = parseMapToJSON(
|
142
|
-
lastParameter === ";base64" ? decodeBase64String(encoded) : decodeURIComponent(encoded),
|
143
|
-
data
|
144
|
-
)
|
145
|
-
} catch (error) {
|
146
|
-
error.sourceMapData = data
|
147
|
-
throw error
|
148
|
-
}
|
149
|
-
return data
|
150
|
-
}
|
151
|
-
|
152
|
-
var mapUrl = resolveUrl(codeUrl, url)
|
153
|
-
return {
|
154
|
-
sourceMappingURL: url,
|
155
|
-
url: mapUrl,
|
156
|
-
sourcesRelativeTo: mapUrl,
|
157
|
-
map: null
|
158
|
-
}
|
159
|
-
}
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
function resolveSources(map, mapUrl, read, options, callback) {
|
164
|
-
if (typeof options === "function") {
|
165
|
-
callback = options
|
166
|
-
options = {}
|
167
|
-
}
|
168
|
-
var pending = map.sources ? map.sources.length : 0
|
169
|
-
var result = {
|
170
|
-
sourcesResolved: [],
|
171
|
-
sourcesContent: []
|
172
|
-
}
|
173
|
-
|
174
|
-
if (pending === 0) {
|
175
|
-
callbackAsync(callback, null, result)
|
176
|
-
return
|
177
|
-
}
|
178
|
-
|
179
|
-
var done = function() {
|
180
|
-
pending--
|
181
|
-
if (pending === 0) {
|
182
|
-
callback(null, result)
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
resolveSourcesHelper(map, mapUrl, options, function(fullUrl, sourceContent, index) {
|
187
|
-
result.sourcesResolved[index] = fullUrl
|
188
|
-
if (typeof sourceContent === "string") {
|
189
|
-
result.sourcesContent[index] = sourceContent
|
190
|
-
callbackAsync(done, null)
|
191
|
-
} else {
|
192
|
-
var readUrl = fullUrl
|
193
|
-
read(readUrl, function(error, source) {
|
194
|
-
result.sourcesContent[index] = error ? error : String(source)
|
195
|
-
done()
|
196
|
-
})
|
197
|
-
}
|
198
|
-
})
|
199
|
-
}
|
200
|
-
|
201
|
-
function resolveSourcesSync(map, mapUrl, read, options) {
|
202
|
-
var result = {
|
203
|
-
sourcesResolved: [],
|
204
|
-
sourcesContent: []
|
205
|
-
}
|
206
|
-
|
207
|
-
if (!map.sources || map.sources.length === 0) {
|
208
|
-
return result
|
209
|
-
}
|
210
|
-
|
211
|
-
resolveSourcesHelper(map, mapUrl, options, function(fullUrl, sourceContent, index) {
|
212
|
-
result.sourcesResolved[index] = fullUrl
|
213
|
-
if (read !== null) {
|
214
|
-
if (typeof sourceContent === "string") {
|
215
|
-
result.sourcesContent[index] = sourceContent
|
216
|
-
} else {
|
217
|
-
var readUrl = fullUrl
|
218
|
-
try {
|
219
|
-
result.sourcesContent[index] = String(read(readUrl))
|
220
|
-
} catch (error) {
|
221
|
-
result.sourcesContent[index] = error
|
222
|
-
}
|
223
|
-
}
|
224
|
-
}
|
225
|
-
})
|
226
|
-
|
227
|
-
return result
|
228
|
-
}
|
229
|
-
|
230
|
-
var endingSlash = /\/?$/
|
231
|
-
|
232
|
-
function resolveSourcesHelper(map, mapUrl, options, fn) {
|
233
|
-
options = options || {}
|
234
|
-
var fullUrl
|
235
|
-
var sourceContent
|
236
|
-
var sourceRoot
|
237
|
-
for (var index = 0, len = map.sources.length; index < len; index++) {
|
238
|
-
sourceRoot = null
|
239
|
-
if (typeof options.sourceRoot === "string") {
|
240
|
-
sourceRoot = options.sourceRoot
|
241
|
-
} else if (typeof map.sourceRoot === "string" && options.sourceRoot !== false) {
|
242
|
-
sourceRoot = map.sourceRoot
|
243
|
-
}
|
244
|
-
// If the sourceRoot is the empty string, it is equivalent to not setting
|
245
|
-
// the property at all.
|
246
|
-
if (sourceRoot === null || sourceRoot === '') {
|
247
|
-
fullUrl = resolveUrl(mapUrl, map.sources[index])
|
248
|
-
} else {
|
249
|
-
// Make sure that the sourceRoot ends with a slash, so that `/scripts/subdir` becomes
|
250
|
-
// `/scripts/subdir/<source>`, not `/scripts/<source>`. Pointing to a file as source root
|
251
|
-
// does not make sense.
|
252
|
-
fullUrl = resolveUrl(mapUrl, sourceRoot.replace(endingSlash, "/"), map.sources[index])
|
253
|
-
}
|
254
|
-
sourceContent = (map.sourcesContent || [])[index]
|
255
|
-
fn(fullUrl, sourceContent, index)
|
256
|
-
}
|
257
|
-
}
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
function resolve(code, codeUrl, read, options, callback) {
|
262
|
-
if (typeof options === "function") {
|
263
|
-
callback = options
|
264
|
-
options = {}
|
265
|
-
}
|
266
|
-
if (code === null) {
|
267
|
-
var mapUrl = codeUrl
|
268
|
-
var data = {
|
269
|
-
sourceMappingURL: null,
|
270
|
-
url: mapUrl,
|
271
|
-
sourcesRelativeTo: mapUrl,
|
272
|
-
map: null
|
273
|
-
}
|
274
|
-
var readUrl = mapUrl
|
275
|
-
read(readUrl, function(error, result) {
|
276
|
-
if (error) {
|
277
|
-
error.sourceMapData = data
|
278
|
-
return callback(error)
|
279
|
-
}
|
280
|
-
data.map = String(result)
|
281
|
-
try {
|
282
|
-
data.map = parseMapToJSON(data.map, data)
|
283
|
-
} catch (error) {
|
284
|
-
return callback(error)
|
285
|
-
}
|
286
|
-
_resolveSources(data)
|
287
|
-
})
|
288
|
-
} else {
|
289
|
-
resolveSourceMap(code, codeUrl, read, function(error, mapData) {
|
290
|
-
if (error) {
|
291
|
-
return callback(error)
|
292
|
-
}
|
293
|
-
if (!mapData) {
|
294
|
-
return callback(null, null)
|
295
|
-
}
|
296
|
-
_resolveSources(mapData)
|
297
|
-
})
|
298
|
-
}
|
299
|
-
|
300
|
-
function _resolveSources(mapData) {
|
301
|
-
resolveSources(mapData.map, mapData.sourcesRelativeTo, read, options, function(error, result) {
|
302
|
-
if (error) {
|
303
|
-
return callback(error)
|
304
|
-
}
|
305
|
-
mapData.sourcesResolved = result.sourcesResolved
|
306
|
-
mapData.sourcesContent = result.sourcesContent
|
307
|
-
callback(null, mapData)
|
308
|
-
})
|
309
|
-
}
|
310
|
-
}
|
311
|
-
|
312
|
-
function resolveSync(code, codeUrl, read, options) {
|
313
|
-
var mapData
|
314
|
-
if (code === null) {
|
315
|
-
var mapUrl = codeUrl
|
316
|
-
mapData = {
|
317
|
-
sourceMappingURL: null,
|
318
|
-
url: mapUrl,
|
319
|
-
sourcesRelativeTo: mapUrl,
|
320
|
-
map: null
|
321
|
-
}
|
322
|
-
mapData.map = readSync(read, mapUrl, mapData)
|
323
|
-
mapData.map = parseMapToJSON(mapData.map, mapData)
|
324
|
-
} else {
|
325
|
-
mapData = resolveSourceMapSync(code, codeUrl, read)
|
326
|
-
if (!mapData) {
|
327
|
-
return null
|
328
|
-
}
|
329
|
-
}
|
330
|
-
var result = resolveSourcesSync(mapData.map, mapData.sourcesRelativeTo, read, options)
|
331
|
-
mapData.sourcesResolved = result.sourcesResolved
|
332
|
-
mapData.sourcesContent = result.sourcesContent
|
333
|
-
return mapData
|
334
|
-
}
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
return {
|
339
|
-
resolveSourceMap: resolveSourceMap,
|
340
|
-
resolveSourceMapSync: resolveSourceMapSync,
|
341
|
-
resolveSources: resolveSources,
|
342
|
-
resolveSourcesSync: resolveSourcesSync,
|
343
|
-
resolve: resolve,
|
344
|
-
resolveSync: resolveSync,
|
345
|
-
parseMapToJSON: parseMapToJSON
|
346
|
-
}
|
347
|
-
|
348
|
-
}));
|
@@ -1,57 +0,0 @@
|
|
1
|
-
### Version 0.4.1 (2021-02-01) ###
|
2
|
-
|
3
|
-
- Improved: The package is now about 50% smaller, by excluding unnecessary
|
4
|
-
files. Thanks to Piotr Kuczynski (@pkuczynski)!
|
5
|
-
|
6
|
-
### Version 0.4.0 (2015-11-12) ###
|
7
|
-
|
8
|
-
- Changed: sourceMappingURL comments used to be matched only when placed at
|
9
|
-
the end of the script. However, since several commonly used JavaScript
|
10
|
-
libraries do not follow this convention and all popular web browsers accept
|
11
|
-
non-trailing comments, this has been revised.
|
12
|
-
|
13
|
-
So now non-trailing SourceMappingURL comments are matched as well.
|
14
|
-
|
15
|
-
|
16
|
-
### Version 0.3.0 (2014-08-16) ###
|
17
|
-
|
18
|
-
- Changed: sourceMappingURL comments used to be matched only if they appeared
|
19
|
-
on their own line. However, the spec only says:
|
20
|
-
|
21
|
-
> The generated code may include a line at the end of the source, with the following form:
|
22
|
-
>
|
23
|
-
> //# sourceMappingURL=<url>
|
24
|
-
|
25
|
-
So now they are matched also when they appear on the same line as code.
|
26
|
-
|
27
|
-
- Removed: The `.set()` method. I couldn’t decide how it should work
|
28
|
-
considering the above change. Moreover, it was unnecessarily complex (and
|
29
|
-
would have gotten worse) for very little gain. It is much easier to run
|
30
|
-
`.remove()` if needed, and then simply `code += "\n//# sourceMappingURL=" +
|
31
|
-
url` (using the appropriate comment syntax and newline). KISS.
|
32
|
-
|
33
|
-
- Changed: The `.insertBefore()` method now always inserts the string exactly
|
34
|
-
before the sourceMappingURL comment; not before the newline before the
|
35
|
-
comment (if any). Moreover, it does not ensure that the comment will be on a
|
36
|
-
new line anymore. This is up to the caller. KISS.
|
37
|
-
|
38
|
-
- Changed: The `.remove()` method no longer removes the newline before the
|
39
|
-
sourceMappingURL (if any).
|
40
|
-
|
41
|
-
- Changed: Renamed `.get()` to `.getFrom()`.
|
42
|
-
- Changed: Renamed `.remove()` to `.removeFrom()`.
|
43
|
-
|
44
|
-
- Added: The `.existsIn()` method.
|
45
|
-
|
46
|
-
|
47
|
-
### Version 0.2.0 (2014-02-23) ###
|
48
|
-
|
49
|
-
- Changed: A space is no longer inserted before the closing comment syntax. If
|
50
|
-
such a space is desired, it needs to be put in the closing comment syntax
|
51
|
-
itself (such as `["/*", " */"]` instead of `["/*", "*/"]`). (Backwards
|
52
|
-
incompatible change.)
|
53
|
-
|
54
|
-
|
55
|
-
### Version 0.1.0 (2014-02-22) ###
|
56
|
-
|
57
|
-
- Initial release.
|
@@ -1,39 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "source-map-url",
|
3
|
-
"version": "0.4.1",
|
4
|
-
"author": "Simon Lydell",
|
5
|
-
"license": "MIT",
|
6
|
-
"description": "Tools for working with sourceMappingURL comments.",
|
7
|
-
"keywords": [
|
8
|
-
"source map",
|
9
|
-
"sourceMappingURL",
|
10
|
-
"comment",
|
11
|
-
"annotation"
|
12
|
-
],
|
13
|
-
"main": "source-map-url.js",
|
14
|
-
"repository": "lydell/source-map-url",
|
15
|
-
"scripts": {
|
16
|
-
"lint": "jshint source-map-url.js test/ ",
|
17
|
-
"unit": "mocha",
|
18
|
-
"test": "npm run lint && npm run unit"
|
19
|
-
},
|
20
|
-
"devDependencies": {
|
21
|
-
"mocha": "~1.17.1",
|
22
|
-
"expect.js": "~0.3.1",
|
23
|
-
"jshint": "~2.4.3"
|
24
|
-
},
|
25
|
-
"testling": {
|
26
|
-
"harness": "mocha",
|
27
|
-
"files": "test/*.js",
|
28
|
-
"browsers": [
|
29
|
-
"ie/8..latest",
|
30
|
-
"chrome/latest",
|
31
|
-
"firefox/latest",
|
32
|
-
"opera/12",
|
33
|
-
"opera/latest",
|
34
|
-
"safari/5",
|
35
|
-
"iphone/6",
|
36
|
-
"android-browser/4"
|
37
|
-
]
|
38
|
-
}
|
39
|
-
}
|
@@ -1,97 +0,0 @@
|
|
1
|
-
Overview [![Build Status](https://travis-ci.org/lydell/source-map-url.png?branch=master)](https://travis-ci.org/lydell/source-map-url)
|
2
|
-
========
|
3
|
-
|
4
|
-
[![browser support](https://ci.testling.com/lydell/source-map-url.png)](https://ci.testling.com/lydell/source-map-url)
|
5
|
-
|
6
|
-
Tools for working with sourceMappingURL comments.
|
7
|
-
|
8
|
-
```js
|
9
|
-
var sourceMappingURL = require("source-map-url")
|
10
|
-
|
11
|
-
var code = [
|
12
|
-
"!function(){...}();",
|
13
|
-
"/*# sourceMappingURL=foo.js.map */"
|
14
|
-
].join("\n")
|
15
|
-
|
16
|
-
sourceMappingURL.existsIn(code)
|
17
|
-
// true
|
18
|
-
|
19
|
-
sourceMappingURL.getFrom(code)
|
20
|
-
// foo.js.map
|
21
|
-
|
22
|
-
code = sourceMappingURL.insertBefore(code, "// License: MIT\n")
|
23
|
-
// !function(){...}();
|
24
|
-
// // License: MIT
|
25
|
-
// /*# sourceMappingURL=foo.js.map */
|
26
|
-
|
27
|
-
code = sourceMappingURL.removeFrom(code)
|
28
|
-
// !function(){...}();
|
29
|
-
// // License: MIT
|
30
|
-
|
31
|
-
sourceMappingURL.existsIn(code)
|
32
|
-
// false
|
33
|
-
|
34
|
-
sourceMappingURL.getFrom(code)
|
35
|
-
// null
|
36
|
-
|
37
|
-
code += "//# sourceMappingURL=/other/file.js.map"
|
38
|
-
// !function(){...}();
|
39
|
-
// // License: MIT
|
40
|
-
// //# sourceMappingURL=/other/file.js.map
|
41
|
-
```
|
42
|
-
|
43
|
-
|
44
|
-
Installation
|
45
|
-
============
|
46
|
-
|
47
|
-
- `npm install source-map-url`
|
48
|
-
- `bower install source-map-url`
|
49
|
-
- `component install lydell/source-map-url`
|
50
|
-
|
51
|
-
Works with CommonJS, AMD and browser globals, through UMD.
|
52
|
-
|
53
|
-
|
54
|
-
Usage
|
55
|
-
=====
|
56
|
-
|
57
|
-
### `sourceMappingURL.getFrom(code)` ###
|
58
|
-
|
59
|
-
Returns the url of the sourceMappingURL comment in `code`. Returns `null` if
|
60
|
-
there is no such comment.
|
61
|
-
|
62
|
-
### `sourceMappingURL.existsIn(code)` ###
|
63
|
-
|
64
|
-
Returns `true` if there is a sourceMappingURL comment in `code`, or `false`
|
65
|
-
otherwise.
|
66
|
-
|
67
|
-
### `sourceMappingURL.removeFrom(code)` ###
|
68
|
-
|
69
|
-
Removes the sourceMappingURL comment in `code`. Does nothing if there is no
|
70
|
-
such comment. Returns the updated `code`.
|
71
|
-
|
72
|
-
### `sourceMappingURL.insertBefore(code, string)` ###
|
73
|
-
|
74
|
-
Inserts `string` before the sourceMappingURL comment in `code`. Appends
|
75
|
-
`string` to `code` if there is no such comment.
|
76
|
-
|
77
|
-
Lets you append something to a file without worrying about burying the
|
78
|
-
sourceMappingURL comment (by keeping it at the end of the file).
|
79
|
-
|
80
|
-
### `sourceMappingURL.regex` ###
|
81
|
-
|
82
|
-
The regex that is used to match sourceMappingURL comments. It matches both `//`
|
83
|
-
and `/**/` comments, thus supporting both JavaScript and CSS.
|
84
|
-
|
85
|
-
|
86
|
-
Tests
|
87
|
-
=====
|
88
|
-
|
89
|
-
Start by running `npm test`, which lints the code and runs the test suite in Node.js.
|
90
|
-
|
91
|
-
To run the tests in a browser, run `testling` (`npm install -g testling`) or `testling -u`.
|
92
|
-
|
93
|
-
|
94
|
-
License
|
95
|
-
=======
|
96
|
-
|
97
|
-
[The X11 (“MIT”) License](LICENSE).
|
@@ -1,57 +0,0 @@
|
|
1
|
-
// Copyright 2014 Simon Lydell
|
2
|
-
// X11 (“MIT”) Licensed. (See LICENSE.)
|
3
|
-
|
4
|
-
void (function(root, factory) {
|
5
|
-
if (typeof define === "function" && define.amd) {
|
6
|
-
define(factory)
|
7
|
-
} else if (typeof exports === "object") {
|
8
|
-
module.exports = factory()
|
9
|
-
} else {
|
10
|
-
root.sourceMappingURL = factory()
|
11
|
-
}
|
12
|
-
}(this, function() {
|
13
|
-
|
14
|
-
var innerRegex = /[#@] sourceMappingURL=([^\s'"]*)/
|
15
|
-
|
16
|
-
var regex = RegExp(
|
17
|
-
"(?:" +
|
18
|
-
"/\\*" +
|
19
|
-
"(?:\\s*\r?\n(?://)?)?" +
|
20
|
-
"(?:" + innerRegex.source + ")" +
|
21
|
-
"\\s*" +
|
22
|
-
"\\*/" +
|
23
|
-
"|" +
|
24
|
-
"//(?:" + innerRegex.source + ")" +
|
25
|
-
")" +
|
26
|
-
"\\s*"
|
27
|
-
)
|
28
|
-
|
29
|
-
return {
|
30
|
-
|
31
|
-
regex: regex,
|
32
|
-
_innerRegex: innerRegex,
|
33
|
-
|
34
|
-
getFrom: function(code) {
|
35
|
-
var match = code.match(regex)
|
36
|
-
return (match ? match[1] || match[2] || "" : null)
|
37
|
-
},
|
38
|
-
|
39
|
-
existsIn: function(code) {
|
40
|
-
return regex.test(code)
|
41
|
-
},
|
42
|
-
|
43
|
-
removeFrom: function(code) {
|
44
|
-
return code.replace(regex, "")
|
45
|
-
},
|
46
|
-
|
47
|
-
insertBefore: function(code, string) {
|
48
|
-
var match = code.match(regex)
|
49
|
-
if (match) {
|
50
|
-
return code.slice(0, match.index) + string + code.slice(match.index)
|
51
|
-
} else {
|
52
|
-
return code + string
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
}));
|
@@ -1,17 +0,0 @@
|
|
1
|
-
// Copyright 2014 Simon Lydell
|
2
|
-
// X11 (“MIT”) Licensed. (See LICENSE.)
|
3
|
-
|
4
|
-
var path = require("path")
|
5
|
-
|
6
|
-
"use strict"
|
7
|
-
|
8
|
-
function urix(aPath) {
|
9
|
-
if (path.sep === "\\") {
|
10
|
-
return aPath
|
11
|
-
.replace(/\\/g, "/")
|
12
|
-
.replace(/^[a-z]:\/?/i, "/")
|
13
|
-
}
|
14
|
-
return aPath
|
15
|
-
}
|
16
|
-
|
17
|
-
module.exports = urix
|
@@ -1,25 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "urix",
|
3
|
-
"version": "0.1.0",
|
4
|
-
"author": "Simon Lydell",
|
5
|
-
"license": "MIT",
|
6
|
-
"description": "Makes Windows-style paths more unix and URI friendly.",
|
7
|
-
"main": "index.js",
|
8
|
-
"repository": "lydell/urix",
|
9
|
-
"keywords": [
|
10
|
-
"path",
|
11
|
-
"url",
|
12
|
-
"uri",
|
13
|
-
"unix",
|
14
|
-
"windows",
|
15
|
-
"backslash",
|
16
|
-
"slash"
|
17
|
-
],
|
18
|
-
"scripts": {
|
19
|
-
"test": "jshint index.js test/ && mocha"
|
20
|
-
},
|
21
|
-
"devDependencies": {
|
22
|
-
"mocha": "^1.17.1",
|
23
|
-
"jshint": "^2.4.4"
|
24
|
-
}
|
25
|
-
}
|