@basemaps/lambda-tiler 6.18.0 → 6.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/LICENSE +2 -2
- package/build/__test__/tile.set.cache.test.js +4 -10
- package/build/__test__/tile.style.json.test.d.ts +2 -0
- package/build/__test__/tile.style.json.test.d.ts.map +1 -0
- package/build/__test__/tile.style.json.test.js +33 -0
- package/build/__test__/xyz.test.js +27 -26
- package/build/cli/dump.js +2 -2
- package/build/cli/validate.js +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +18 -1
- package/build/routes/__test__/attribution.test.js +3 -13
- package/build/routes/attribution.d.ts.map +1 -1
- package/build/routes/attribution.js +7 -20
- package/build/routes/esri/rest.d.ts +10 -0
- package/build/routes/esri/rest.d.ts.map +1 -0
- package/build/routes/esri/rest.js +87 -0
- package/build/routes/imagery.d.ts +10 -0
- package/build/routes/imagery.d.ts.map +1 -0
- package/build/routes/imagery.js +50 -0
- package/build/routes/response.d.ts +4 -0
- package/build/routes/response.d.ts.map +1 -0
- package/build/routes/response.js +3 -0
- package/build/routes/tile.d.ts +0 -20
- package/build/routes/tile.d.ts.map +1 -1
- package/build/routes/tile.js +11 -164
- package/build/routes/tile.json.d.ts +10 -0
- package/build/routes/tile.json.d.ts.map +1 -0
- package/build/routes/tile.json.js +31 -0
- package/build/routes/tile.style.json.d.ts +10 -0
- package/build/routes/tile.style.json.d.ts.map +1 -0
- package/build/routes/tile.style.json.js +74 -0
- package/build/routes/tile.wmts.d.ts +9 -0
- package/build/routes/tile.wmts.d.ts.map +1 -0
- package/build/routes/tile.wmts.js +57 -0
- package/build/routes/tile.xyz.d.ts +13 -0
- package/build/routes/tile.xyz.d.ts.map +1 -0
- package/build/routes/tile.xyz.js +28 -0
- package/build/source.tracer.d.ts +17 -0
- package/build/source.tracer.d.ts.map +1 -0
- package/build/source.tracer.js +22 -0
- package/build/tile.set.cache.js +3 -3
- package/build/tile.set.d.ts +0 -16
- package/build/tile.set.d.ts.map +1 -1
- package/build/tile.set.js +1 -20
- package/build/tile.set.raster.d.ts +9 -4
- package/build/tile.set.raster.d.ts.map +1 -1
- package/build/tile.set.raster.js +17 -6
- package/build/tile.set.vector.d.ts +10 -4
- package/build/tile.set.vector.d.ts.map +1 -1
- package/build/tile.set.vector.js +18 -8
- package/bundle.sh +2 -2
- package/package.json +14 -14
- package/scripts/create.deployment.package.mjs +34 -0
- package/src/__test__/tile.set.cache.test.ts +4 -12
- package/src/__test__/tile.style.json.test.ts +40 -0
- package/src/__test__/xyz.test.ts +35 -33
- package/src/cli/dump.ts +2 -2
- package/src/cli/validate.ts +2 -1
- package/src/index.ts +21 -1
- package/src/routes/__test__/attribution.test.ts +3 -13
- package/src/routes/attribution.ts +6 -17
- package/src/routes/esri/rest.ts +90 -0
- package/src/routes/imagery.ts +52 -0
- package/src/routes/response.ts +4 -0
- package/src/routes/tile.json.ts +44 -0
- package/src/routes/tile.style.json.ts +77 -0
- package/src/routes/tile.ts +11 -186
- package/src/routes/tile.wmts.ts +59 -0
- package/src/routes/tile.xyz.ts +30 -0
- package/src/source.tracer.ts +34 -0
- package/src/tile.set.cache.ts +3 -3
- package/src/tile.set.raster.ts +32 -7
- package/src/tile.set.ts +0 -40
- package/src/tile.set.vector.ts +26 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +0 -29695
- package/dist/node_modules/ansi-regex/index.js +0 -4
- package/dist/node_modules/ansi-regex/license +0 -21
- package/dist/node_modules/ansi-regex/package.json +0 -108
- package/dist/node_modules/ansi-regex/readme.md +0 -39
- package/dist/node_modules/aproba/LICENSE +0 -14
- package/dist/node_modules/aproba/README.md +0 -94
- package/dist/node_modules/aproba/index.js +0 -105
- package/dist/node_modules/aproba/package.json +0 -62
- package/dist/node_modules/are-we-there-yet/CHANGES.md +0 -37
- package/dist/node_modules/are-we-there-yet/LICENSE +0 -5
- package/dist/node_modules/are-we-there-yet/README.md +0 -195
- package/dist/node_modules/are-we-there-yet/index.js +0 -4
- package/dist/node_modules/are-we-there-yet/package.json +0 -63
- package/dist/node_modules/are-we-there-yet/tracker-base.js +0 -11
- package/dist/node_modules/are-we-there-yet/tracker-group.js +0 -107
- package/dist/node_modules/are-we-there-yet/tracker-stream.js +0 -36
- package/dist/node_modules/are-we-there-yet/tracker.js +0 -30
- package/dist/node_modules/base64-js/LICENSE +0 -21
- package/dist/node_modules/base64-js/README.md +0 -34
- package/dist/node_modules/base64-js/base64js.min.js +0 -1
- package/dist/node_modules/base64-js/index.d.ts +0 -3
- package/dist/node_modules/base64-js/index.js +0 -150
- package/dist/node_modules/base64-js/package.json +0 -75
- package/dist/node_modules/bl/.travis.yml +0 -17
- package/dist/node_modules/bl/BufferList.js +0 -396
- package/dist/node_modules/bl/LICENSE.md +0 -13
- package/dist/node_modules/bl/README.md +0 -247
- package/dist/node_modules/bl/bl.js +0 -84
- package/dist/node_modules/bl/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/dist/node_modules/bl/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/dist/node_modules/bl/node_modules/readable-stream/LICENSE +0 -47
- package/dist/node_modules/bl/node_modules/readable-stream/README.md +0 -106
- package/dist/node_modules/bl/node_modules/readable-stream/errors-browser.js +0 -127
- package/dist/node_modules/bl/node_modules/readable-stream/errors.js +0 -116
- package/dist/node_modules/bl/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
- package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/dist/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +0 -697
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/dist/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/dist/node_modules/bl/node_modules/readable-stream/package.json +0 -97
- package/dist/node_modules/bl/node_modules/readable-stream/readable-browser.js +0 -9
- package/dist/node_modules/bl/node_modules/readable-stream/readable.js +0 -16
- package/dist/node_modules/bl/package.json +0 -69
- package/dist/node_modules/bl/test/convert.js +0 -21
- package/dist/node_modules/bl/test/indexOf.js +0 -492
- package/dist/node_modules/bl/test/isBufferList.js +0 -32
- package/dist/node_modules/bl/test/test.js +0 -869
- package/dist/node_modules/buffer/AUTHORS.md +0 -70
- package/dist/node_modules/buffer/LICENSE +0 -21
- package/dist/node_modules/buffer/README.md +0 -410
- package/dist/node_modules/buffer/index.d.ts +0 -186
- package/dist/node_modules/buffer/index.js +0 -1817
- package/dist/node_modules/buffer/package.json +0 -127
- package/dist/node_modules/chownr/LICENSE +0 -15
- package/dist/node_modules/chownr/README.md +0 -3
- package/dist/node_modules/chownr/chownr.js +0 -167
- package/dist/node_modules/chownr/package.json +0 -62
- package/dist/node_modules/code-point-at/index.js +0 -32
- package/dist/node_modules/code-point-at/license +0 -21
- package/dist/node_modules/code-point-at/package.json +0 -70
- package/dist/node_modules/code-point-at/readme.md +0 -32
- package/dist/node_modules/color/LICENSE +0 -21
- package/dist/node_modules/color/README.md +0 -123
- package/dist/node_modules/color/index.js +0 -482
- package/dist/node_modules/color/package.json +0 -72
- package/dist/node_modules/color-convert/CHANGELOG.md +0 -54
- package/dist/node_modules/color-convert/LICENSE +0 -21
- package/dist/node_modules/color-convert/README.md +0 -68
- package/dist/node_modules/color-convert/conversions.js +0 -868
- package/dist/node_modules/color-convert/index.js +0 -78
- package/dist/node_modules/color-convert/package.json +0 -81
- package/dist/node_modules/color-convert/route.js +0 -97
- package/dist/node_modules/color-name/.eslintrc.json +0 -43
- package/dist/node_modules/color-name/LICENSE +0 -8
- package/dist/node_modules/color-name/README.md +0 -11
- package/dist/node_modules/color-name/index.js +0 -152
- package/dist/node_modules/color-name/package.json +0 -54
- package/dist/node_modules/color-name/test.js +0 -7
- package/dist/node_modules/color-string/LICENSE +0 -21
- package/dist/node_modules/color-string/README.md +0 -62
- package/dist/node_modules/color-string/index.js +0 -242
- package/dist/node_modules/color-string/package.json +0 -81
- package/dist/node_modules/console-control-strings/LICENSE +0 -13
- package/dist/node_modules/console-control-strings/README.md +0 -145
- package/dist/node_modules/console-control-strings/README.md~ +0 -140
- package/dist/node_modules/console-control-strings/index.js +0 -125
- package/dist/node_modules/console-control-strings/package.json +0 -61
- package/dist/node_modules/core-util-is/LICENSE +0 -19
- package/dist/node_modules/core-util-is/README.md +0 -3
- package/dist/node_modules/core-util-is/lib/util.js +0 -107
- package/dist/node_modules/core-util-is/package.json +0 -68
- package/dist/node_modules/decompress-response/index.d.ts +0 -29
- package/dist/node_modules/decompress-response/index.js +0 -40
- package/dist/node_modules/decompress-response/license +0 -9
- package/dist/node_modules/decompress-response/package.json +0 -82
- package/dist/node_modules/decompress-response/readme.md +0 -52
- package/dist/node_modules/deep-extend/CHANGELOG.md +0 -46
- package/dist/node_modules/deep-extend/LICENSE +0 -20
- package/dist/node_modules/deep-extend/README.md +0 -91
- package/dist/node_modules/deep-extend/index.js +0 -1
- package/dist/node_modules/deep-extend/lib/deep-extend.js +0 -150
- package/dist/node_modules/deep-extend/package.json +0 -92
- package/dist/node_modules/delegates/History.md +0 -22
- package/dist/node_modules/delegates/License +0 -20
- package/dist/node_modules/delegates/Makefile +0 -8
- package/dist/node_modules/delegates/Readme.md +0 -94
- package/dist/node_modules/delegates/index.js +0 -121
- package/dist/node_modules/delegates/package.json +0 -48
- package/dist/node_modules/delegates/test/index.js +0 -94
- package/dist/node_modules/detect-libc/LICENSE +0 -201
- package/dist/node_modules/detect-libc/README.md +0 -78
- package/dist/node_modules/detect-libc/bin/detect-libc.js +0 -18
- package/dist/node_modules/detect-libc/lib/detect-libc.js +0 -92
- package/dist/node_modules/detect-libc/package.json +0 -71
- package/dist/node_modules/end-of-stream/LICENSE +0 -21
- package/dist/node_modules/end-of-stream/README.md +0 -54
- package/dist/node_modules/end-of-stream/index.js +0 -94
- package/dist/node_modules/end-of-stream/package.json +0 -66
- package/dist/node_modules/expand-template/.travis.yml +0 -6
- package/dist/node_modules/expand-template/LICENSE +0 -21
- package/dist/node_modules/expand-template/README.md +0 -43
- package/dist/node_modules/expand-template/index.js +0 -26
- package/dist/node_modules/expand-template/package.json +0 -60
- package/dist/node_modules/expand-template/test.js +0 -67
- package/dist/node_modules/fs-constants/LICENSE +0 -21
- package/dist/node_modules/fs-constants/README.md +0 -26
- package/dist/node_modules/fs-constants/browser.js +0 -1
- package/dist/node_modules/fs-constants/index.js +0 -1
- package/dist/node_modules/fs-constants/package.json +0 -47
- package/dist/node_modules/gauge/CHANGELOG.md +0 -160
- package/dist/node_modules/gauge/LICENSE +0 -13
- package/dist/node_modules/gauge/README.md +0 -399
- package/dist/node_modules/gauge/base-theme.js +0 -14
- package/dist/node_modules/gauge/error.js +0 -24
- package/dist/node_modules/gauge/has-color.js +0 -12
- package/dist/node_modules/gauge/index.js +0 -233
- package/dist/node_modules/gauge/package.json +0 -91
- package/dist/node_modules/gauge/plumbing.js +0 -48
- package/dist/node_modules/gauge/process.js +0 -3
- package/dist/node_modules/gauge/progress-bar.js +0 -35
- package/dist/node_modules/gauge/render-template.js +0 -181
- package/dist/node_modules/gauge/set-immediate.js +0 -7
- package/dist/node_modules/gauge/set-interval.js +0 -3
- package/dist/node_modules/gauge/spin.js +0 -5
- package/dist/node_modules/gauge/template-item.js +0 -73
- package/dist/node_modules/gauge/theme-set.js +0 -115
- package/dist/node_modules/gauge/themes.js +0 -54
- package/dist/node_modules/gauge/wide-truncate.js +0 -25
- package/dist/node_modules/github-from-package/.travis.yml +0 -4
- package/dist/node_modules/github-from-package/LICENSE +0 -18
- package/dist/node_modules/github-from-package/example/package.json +0 -8
- package/dist/node_modules/github-from-package/example/url.js +0 -3
- package/dist/node_modules/github-from-package/index.js +0 -17
- package/dist/node_modules/github-from-package/package.json +0 -58
- package/dist/node_modules/github-from-package/readme.markdown +0 -53
- package/dist/node_modules/github-from-package/test/a.json +0 -8
- package/dist/node_modules/github-from-package/test/b.json +0 -5
- package/dist/node_modules/github-from-package/test/c.json +0 -5
- package/dist/node_modules/github-from-package/test/d.json +0 -7
- package/dist/node_modules/github-from-package/test/e.json +0 -5
- package/dist/node_modules/github-from-package/test/url.js +0 -19
- package/dist/node_modules/has-unicode/LICENSE +0 -14
- package/dist/node_modules/has-unicode/README.md +0 -43
- package/dist/node_modules/has-unicode/index.js +0 -16
- package/dist/node_modules/has-unicode/package.json +0 -58
- package/dist/node_modules/ieee754/LICENSE +0 -11
- package/dist/node_modules/ieee754/README.md +0 -51
- package/dist/node_modules/ieee754/index.d.ts +0 -10
- package/dist/node_modules/ieee754/index.js +0 -85
- package/dist/node_modules/ieee754/package.json +0 -84
- package/dist/node_modules/inherits/LICENSE +0 -16
- package/dist/node_modules/inherits/README.md +0 -42
- package/dist/node_modules/inherits/inherits.js +0 -9
- package/dist/node_modules/inherits/inherits_browser.js +0 -27
- package/dist/node_modules/inherits/package.json +0 -65
- package/dist/node_modules/ini/LICENSE +0 -15
- package/dist/node_modules/ini/README.md +0 -102
- package/dist/node_modules/ini/ini.js +0 -206
- package/dist/node_modules/ini/package.json +0 -66
- package/dist/node_modules/is-arrayish/LICENSE +0 -21
- package/dist/node_modules/is-arrayish/README.md +0 -16
- package/dist/node_modules/is-arrayish/index.js +0 -9
- package/dist/node_modules/is-arrayish/package.json +0 -77
- package/dist/node_modules/is-arrayish/yarn-error.log +0 -1443
- package/dist/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/dist/node_modules/is-fullwidth-code-point/license +0 -21
- package/dist/node_modules/is-fullwidth-code-point/package.json +0 -77
- package/dist/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/dist/node_modules/isarray/.travis.yml +0 -4
- package/dist/node_modules/isarray/Makefile +0 -6
- package/dist/node_modules/isarray/README.md +0 -60
- package/dist/node_modules/isarray/component.json +0 -19
- package/dist/node_modules/isarray/index.js +0 -5
- package/dist/node_modules/isarray/package.json +0 -73
- package/dist/node_modules/isarray/test.js +0 -20
- package/dist/node_modules/lru-cache/LICENSE +0 -15
- package/dist/node_modules/lru-cache/README.md +0 -166
- package/dist/node_modules/lru-cache/index.js +0 -334
- package/dist/node_modules/lru-cache/package.json +0 -69
- package/dist/node_modules/mimic-response/index.d.ts +0 -17
- package/dist/node_modules/mimic-response/index.js +0 -38
- package/dist/node_modules/mimic-response/license +0 -9
- package/dist/node_modules/mimic-response/package.json +0 -74
- package/dist/node_modules/mimic-response/readme.md +0 -57
- package/dist/node_modules/minimist/.travis.yml +0 -8
- package/dist/node_modules/minimist/LICENSE +0 -18
- package/dist/node_modules/minimist/example/parse.js +0 -2
- package/dist/node_modules/minimist/index.js +0 -245
- package/dist/node_modules/minimist/package.json +0 -74
- package/dist/node_modules/minimist/readme.markdown +0 -95
- package/dist/node_modules/minimist/test/all_bool.js +0 -32
- package/dist/node_modules/minimist/test/bool.js +0 -178
- package/dist/node_modules/minimist/test/dash.js +0 -31
- package/dist/node_modules/minimist/test/default_bool.js +0 -35
- package/dist/node_modules/minimist/test/dotted.js +0 -22
- package/dist/node_modules/minimist/test/kv_short.js +0 -16
- package/dist/node_modules/minimist/test/long.js +0 -31
- package/dist/node_modules/minimist/test/num.js +0 -36
- package/dist/node_modules/minimist/test/parse.js +0 -197
- package/dist/node_modules/minimist/test/parse_modified.js +0 -9
- package/dist/node_modules/minimist/test/proto.js +0 -44
- package/dist/node_modules/minimist/test/short.js +0 -67
- package/dist/node_modules/minimist/test/stop_early.js +0 -15
- package/dist/node_modules/minimist/test/unknown.js +0 -102
- package/dist/node_modules/minimist/test/whitespace.js +0 -8
- package/dist/node_modules/mkdirp-classic/LICENSE +0 -21
- package/dist/node_modules/mkdirp-classic/README.md +0 -18
- package/dist/node_modules/mkdirp-classic/index.js +0 -98
- package/dist/node_modules/mkdirp-classic/package.json +0 -47
- package/dist/node_modules/napi-build-utils/LICENSE +0 -21
- package/dist/node_modules/napi-build-utils/README.md +0 -48
- package/dist/node_modules/napi-build-utils/index.js +0 -213
- package/dist/node_modules/napi-build-utils/index.md +0 -81
- package/dist/node_modules/napi-build-utils/package.json +0 -68
- package/dist/node_modules/node-abi/.github/workflows/update-abi.yml +0 -41
- package/dist/node_modules/node-abi/.travis.yml +0 -17
- package/dist/node_modules/node-abi/CODE_OF_CONDUCT.md +0 -73
- package/dist/node_modules/node-abi/CONTRIBUTING.md +0 -53
- package/dist/node_modules/node-abi/LICENSE +0 -21
- package/dist/node_modules/node-abi/README.md +0 -50
- package/dist/node_modules/node-abi/abi_registry.json +0 -144
- package/dist/node_modules/node-abi/index.js +0 -176
- package/dist/node_modules/node-abi/node_modules/semver/CHANGELOG.md +0 -39
- package/dist/node_modules/node-abi/node_modules/semver/LICENSE +0 -15
- package/dist/node_modules/node-abi/node_modules/semver/README.md +0 -412
- package/dist/node_modules/node-abi/node_modules/semver/bin/semver +0 -160
- package/dist/node_modules/node-abi/node_modules/semver/package.json +0 -60
- package/dist/node_modules/node-abi/node_modules/semver/range.bnf +0 -16
- package/dist/node_modules/node-abi/node_modules/semver/semver.js +0 -1483
- package/dist/node_modules/node-abi/package.json +0 -65
- package/dist/node_modules/node-abi/scripts/update-abi-registry.js +0 -119
- package/dist/node_modules/node-abi/test/index.js +0 -174
- package/dist/node_modules/node-addon-api/CHANGELOG.md +0 -722
- package/dist/node_modules/node-addon-api/LICENSE.md +0 -13
- package/dist/node_modules/node-addon-api/README.md +0 -293
- package/dist/node_modules/node-addon-api/common.gypi +0 -21
- package/dist/node_modules/node-addon-api/except.gypi +0 -16
- package/dist/node_modules/node-addon-api/index.js +0 -11
- package/dist/node_modules/node-addon-api/napi-inl.deprecated.h +0 -192
- package/dist/node_modules/node-addon-api/napi-inl.h +0 -5671
- package/dist/node_modules/node-addon-api/napi.h +0 -2727
- package/dist/node_modules/node-addon-api/node_api.gyp +0 -9
- package/dist/node_modules/node-addon-api/noexcept.gypi +0 -16
- package/dist/node_modules/node-addon-api/nothing.c +0 -0
- package/dist/node_modules/node-addon-api/package-support.json +0 -21
- package/dist/node_modules/node-addon-api/package.json +0 -393
- package/dist/node_modules/node-addon-api/tools/README.md +0 -73
- package/dist/node_modules/node-addon-api/tools/check-napi.js +0 -100
- package/dist/node_modules/node-addon-api/tools/clang-format.js +0 -67
- package/dist/node_modules/node-addon-api/tools/conversion.js +0 -309
- package/dist/node_modules/npmlog/CHANGELOG.md +0 -49
- package/dist/node_modules/npmlog/LICENSE +0 -15
- package/dist/node_modules/npmlog/README.md +0 -216
- package/dist/node_modules/npmlog/log.js +0 -309
- package/dist/node_modules/npmlog/package.json +0 -61
- package/dist/node_modules/number-is-nan/index.js +0 -4
- package/dist/node_modules/number-is-nan/license +0 -21
- package/dist/node_modules/number-is-nan/package.json +0 -67
- package/dist/node_modules/number-is-nan/readme.md +0 -28
- package/dist/node_modules/object-assign/index.js +0 -90
- package/dist/node_modules/object-assign/license +0 -21
- package/dist/node_modules/object-assign/package.json +0 -74
- package/dist/node_modules/object-assign/readme.md +0 -61
- package/dist/node_modules/once/LICENSE +0 -15
- package/dist/node_modules/once/README.md +0 -79
- package/dist/node_modules/once/once.js +0 -42
- package/dist/node_modules/once/package.json +0 -68
- package/dist/node_modules/prebuild-install/CHANGELOG.md +0 -81
- package/dist/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
- package/dist/node_modules/prebuild-install/LICENSE +0 -21
- package/dist/node_modules/prebuild-install/README.md +0 -139
- package/dist/node_modules/prebuild-install/asset.js +0 -44
- package/dist/node_modules/prebuild-install/bin.js +0 -78
- package/dist/node_modules/prebuild-install/download.js +0 -142
- package/dist/node_modules/prebuild-install/error.js +0 -14
- package/dist/node_modules/prebuild-install/help.txt +0 -16
- package/dist/node_modules/prebuild-install/index.js +0 -1
- package/dist/node_modules/prebuild-install/log.js +0 -25
- package/dist/node_modules/prebuild-install/package.json +0 -127
- package/dist/node_modules/prebuild-install/proxy.js +0 -35
- package/dist/node_modules/prebuild-install/rc.js +0 -60
- package/dist/node_modules/prebuild-install/util.js +0 -143
- package/dist/node_modules/process-nextick-args/index.js +0 -45
- package/dist/node_modules/process-nextick-args/license.md +0 -19
- package/dist/node_modules/process-nextick-args/package.json +0 -50
- package/dist/node_modules/process-nextick-args/readme.md +0 -18
- package/dist/node_modules/pump/.travis.yml +0 -5
- package/dist/node_modules/pump/LICENSE +0 -21
- package/dist/node_modules/pump/README.md +0 -65
- package/dist/node_modules/pump/index.js +0 -82
- package/dist/node_modules/pump/package.json +0 -60
- package/dist/node_modules/pump/test-browser.js +0 -66
- package/dist/node_modules/pump/test-node.js +0 -53
- package/dist/node_modules/rc/LICENSE.APACHE2 +0 -15
- package/dist/node_modules/rc/LICENSE.BSD +0 -26
- package/dist/node_modules/rc/LICENSE.MIT +0 -24
- package/dist/node_modules/rc/README.md +0 -227
- package/dist/node_modules/rc/browser.js +0 -7
- package/dist/node_modules/rc/cli.js +0 -4
- package/dist/node_modules/rc/index.js +0 -53
- package/dist/node_modules/rc/lib/utils.js +0 -104
- package/dist/node_modules/rc/package.json +0 -64
- package/dist/node_modules/rc/test/ini.js +0 -16
- package/dist/node_modules/rc/test/nested-env-vars.js +0 -50
- package/dist/node_modules/rc/test/test.js +0 -59
- package/dist/node_modules/readable-stream/.travis.yml +0 -34
- package/dist/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/dist/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/dist/node_modules/readable-stream/LICENSE +0 -47
- package/dist/node_modules/readable-stream/README.md +0 -58
- package/dist/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/dist/node_modules/readable-stream/duplex-browser.js +0 -1
- package/dist/node_modules/readable-stream/duplex.js +0 -1
- package/dist/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/dist/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/dist/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/dist/node_modules/readable-stream/lib/_stream_writable.js +0 -687
- package/dist/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
- package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
- package/dist/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/dist/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/dist/node_modules/readable-stream/package.json +0 -81
- package/dist/node_modules/readable-stream/passthrough.js +0 -1
- package/dist/node_modules/readable-stream/readable-browser.js +0 -7
- package/dist/node_modules/readable-stream/readable.js +0 -19
- package/dist/node_modules/readable-stream/transform.js +0 -1
- package/dist/node_modules/readable-stream/writable-browser.js +0 -1
- package/dist/node_modules/readable-stream/writable.js +0 -8
- package/dist/node_modules/safe-buffer/LICENSE +0 -21
- package/dist/node_modules/safe-buffer/README.md +0 -584
- package/dist/node_modules/safe-buffer/index.d.ts +0 -187
- package/dist/node_modules/safe-buffer/index.js +0 -62
- package/dist/node_modules/safe-buffer/package.json +0 -64
- package/dist/node_modules/semver/CHANGELOG.md +0 -111
- package/dist/node_modules/semver/LICENSE +0 -15
- package/dist/node_modules/semver/README.md +0 -566
- package/dist/node_modules/semver/bin/semver.js +0 -173
- package/dist/node_modules/semver/classes/comparator.js +0 -135
- package/dist/node_modules/semver/classes/index.js +0 -5
- package/dist/node_modules/semver/classes/range.js +0 -510
- package/dist/node_modules/semver/classes/semver.js +0 -287
- package/dist/node_modules/semver/functions/clean.js +0 -6
- package/dist/node_modules/semver/functions/cmp.js +0 -48
- package/dist/node_modules/semver/functions/coerce.js +0 -51
- package/dist/node_modules/semver/functions/compare-build.js +0 -7
- package/dist/node_modules/semver/functions/compare-loose.js +0 -3
- package/dist/node_modules/semver/functions/compare.js +0 -5
- package/dist/node_modules/semver/functions/diff.js +0 -23
- package/dist/node_modules/semver/functions/eq.js +0 -3
- package/dist/node_modules/semver/functions/gt.js +0 -3
- package/dist/node_modules/semver/functions/gte.js +0 -3
- package/dist/node_modules/semver/functions/inc.js +0 -15
- package/dist/node_modules/semver/functions/lt.js +0 -3
- package/dist/node_modules/semver/functions/lte.js +0 -3
- package/dist/node_modules/semver/functions/major.js +0 -3
- package/dist/node_modules/semver/functions/minor.js +0 -3
- package/dist/node_modules/semver/functions/neq.js +0 -3
- package/dist/node_modules/semver/functions/parse.js +0 -33
- package/dist/node_modules/semver/functions/patch.js +0 -3
- package/dist/node_modules/semver/functions/prerelease.js +0 -6
- package/dist/node_modules/semver/functions/rcompare.js +0 -3
- package/dist/node_modules/semver/functions/rsort.js +0 -3
- package/dist/node_modules/semver/functions/satisfies.js +0 -10
- package/dist/node_modules/semver/functions/sort.js +0 -3
- package/dist/node_modules/semver/functions/valid.js +0 -6
- package/dist/node_modules/semver/index.js +0 -48
- package/dist/node_modules/semver/internal/constants.js +0 -17
- package/dist/node_modules/semver/internal/debug.js +0 -9
- package/dist/node_modules/semver/internal/identifiers.js +0 -23
- package/dist/node_modules/semver/internal/parse-options.js +0 -11
- package/dist/node_modules/semver/internal/re.js +0 -182
- package/dist/node_modules/semver/package.json +0 -73
- package/dist/node_modules/semver/preload.js +0 -2
- package/dist/node_modules/semver/range.bnf +0 -16
- package/dist/node_modules/semver/ranges/gtr.js +0 -4
- package/dist/node_modules/semver/ranges/intersects.js +0 -7
- package/dist/node_modules/semver/ranges/ltr.js +0 -4
- package/dist/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/dist/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/dist/node_modules/semver/ranges/min-version.js +0 -60
- package/dist/node_modules/semver/ranges/outside.js +0 -80
- package/dist/node_modules/semver/ranges/simplify.js +0 -44
- package/dist/node_modules/semver/ranges/subset.js +0 -222
- package/dist/node_modules/semver/ranges/to-comparators.js +0 -8
- package/dist/node_modules/semver/ranges/valid.js +0 -11
- package/dist/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/dist/node_modules/set-blocking/LICENSE.txt +0 -14
- package/dist/node_modules/set-blocking/README.md +0 -31
- package/dist/node_modules/set-blocking/index.js +0 -7
- package/dist/node_modules/set-blocking/package.json +0 -70
- package/dist/node_modules/sharp/LICENSE +0 -191
- package/dist/node_modules/sharp/README.md +0 -117
- package/dist/node_modules/sharp/binding.gyp +0 -230
- package/dist/node_modules/sharp/build/Release/sharp.node +0 -0
- package/dist/node_modules/sharp/install/can-compile.js +0 -11
- package/dist/node_modules/sharp/install/dll-copy.js +0 -37
- package/dist/node_modules/sharp/install/libvips.js +0 -180
- package/dist/node_modules/sharp/lib/agent.js +0 -40
- package/dist/node_modules/sharp/lib/channel.js +0 -167
- package/dist/node_modules/sharp/lib/colour.js +0 -130
- package/dist/node_modules/sharp/lib/composite.js +0 -178
- package/dist/node_modules/sharp/lib/constructor.js +0 -392
- package/dist/node_modules/sharp/lib/index.js +0 -13
- package/dist/node_modules/sharp/lib/input.js +0 -429
- package/dist/node_modules/sharp/lib/is.js +0 -129
- package/dist/node_modules/sharp/lib/libvips.js +0 -123
- package/dist/node_modules/sharp/lib/operation.js +0 -648
- package/dist/node_modules/sharp/lib/output.js +0 -1035
- package/dist/node_modules/sharp/lib/platform.js +0 -25
- package/dist/node_modules/sharp/lib/resize.js +0 -454
- package/dist/node_modules/sharp/lib/utility.js +0 -179
- package/dist/node_modules/sharp/package.json +0 -427
- package/dist/node_modules/sharp/src/common.cc +0 -827
- package/dist/node_modules/sharp/src/common.h +0 -308
- package/dist/node_modules/sharp/src/libvips/cplusplus/VConnection.cpp +0 -178
- package/dist/node_modules/sharp/src/libvips/cplusplus/VError.cpp +0 -50
- package/dist/node_modules/sharp/src/libvips/cplusplus/VImage.cpp +0 -1467
- package/dist/node_modules/sharp/src/libvips/cplusplus/VInterpolate.cpp +0 -76
- package/dist/node_modules/sharp/src/libvips/cplusplus/vips-operators.cpp +0 -3526
- package/dist/node_modules/sharp/src/metadata.cc +0 -271
- package/dist/node_modules/sharp/src/metadata.h +0 -90
- package/dist/node_modules/sharp/src/operations.cc +0 -285
- package/dist/node_modules/sharp/src/operations.h +0 -102
- package/dist/node_modules/sharp/src/pipeline.cc +0 -1516
- package/dist/node_modules/sharp/src/pipeline.h +0 -325
- package/dist/node_modules/sharp/src/sharp.cc +0 -52
- package/dist/node_modules/sharp/src/stats.cc +0 -193
- package/dist/node_modules/sharp/src/stats.h +0 -70
- package/dist/node_modules/sharp/src/utilities.cc +0 -243
- package/dist/node_modules/sharp/src/utilities.h +0 -29
- package/dist/node_modules/sharp/vendor/8.10.6/THIRD-PARTY-NOTICES.md +0 -42
- package/dist/node_modules/sharp/vendor/8.10.6/lib/libvips-cpp.so.42 +0 -0
- package/dist/node_modules/sharp/vendor/8.10.6/platform.json +0 -1
- package/dist/node_modules/sharp/vendor/8.10.6/versions.json +0 -31
- package/dist/node_modules/signal-exit/LICENSE.txt +0 -16
- package/dist/node_modules/signal-exit/README.md +0 -39
- package/dist/node_modules/signal-exit/index.js +0 -200
- package/dist/node_modules/signal-exit/package.json +0 -66
- package/dist/node_modules/signal-exit/signals.js +0 -53
- package/dist/node_modules/simple-concat/.travis.yml +0 -3
- package/dist/node_modules/simple-concat/LICENSE +0 -20
- package/dist/node_modules/simple-concat/README.md +0 -44
- package/dist/node_modules/simple-concat/index.js +0 -15
- package/dist/node_modules/simple-concat/package.json +0 -72
- package/dist/node_modules/simple-concat/test/basic.js +0 -41
- package/dist/node_modules/simple-get/LICENSE +0 -20
- package/dist/node_modules/simple-get/README.md +0 -319
- package/dist/node_modules/simple-get/index.js +0 -99
- package/dist/node_modules/simple-get/package.json +0 -79
- package/dist/node_modules/simple-swizzle/LICENSE +0 -21
- package/dist/node_modules/simple-swizzle/README.md +0 -39
- package/dist/node_modules/simple-swizzle/index.js +0 -29
- package/dist/node_modules/simple-swizzle/package.json +0 -71
- package/dist/node_modules/string-width/index.js +0 -37
- package/dist/node_modules/string-width/license +0 -21
- package/dist/node_modules/string-width/package.json +0 -89
- package/dist/node_modules/string-width/readme.md +0 -42
- package/dist/node_modules/string_decoder/.travis.yml +0 -50
- package/dist/node_modules/string_decoder/LICENSE +0 -48
- package/dist/node_modules/string_decoder/README.md +0 -47
- package/dist/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/dist/node_modules/string_decoder/package.json +0 -61
- package/dist/node_modules/strip-ansi/index.js +0 -6
- package/dist/node_modules/strip-ansi/license +0 -21
- package/dist/node_modules/strip-ansi/package.json +0 -102
- package/dist/node_modules/strip-ansi/readme.md +0 -33
- package/dist/node_modules/strip-json-comments/index.js +0 -70
- package/dist/node_modules/strip-json-comments/license +0 -21
- package/dist/node_modules/strip-json-comments/package.json +0 -74
- package/dist/node_modules/strip-json-comments/readme.md +0 -64
- package/dist/node_modules/tar-fs/.travis.yml +0 -6
- package/dist/node_modules/tar-fs/LICENSE +0 -21
- package/dist/node_modules/tar-fs/README.md +0 -165
- package/dist/node_modules/tar-fs/index.js +0 -351
- package/dist/node_modules/tar-fs/package.json +0 -69
- package/dist/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
- package/dist/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
- package/dist/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/dist/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/dist/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/dist/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/dist/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/dist/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/dist/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/dist/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/dist/node_modules/tar-fs/test/index.js +0 -346
- package/dist/node_modules/tar-stream/LICENSE +0 -21
- package/dist/node_modules/tar-stream/README.md +0 -168
- package/dist/node_modules/tar-stream/extract.js +0 -257
- package/dist/node_modules/tar-stream/headers.js +0 -295
- package/dist/node_modules/tar-stream/index.js +0 -2
- package/dist/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/dist/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/dist/node_modules/tar-stream/node_modules/readable-stream/LICENSE +0 -47
- package/dist/node_modules/tar-stream/node_modules/readable-stream/README.md +0 -106
- package/dist/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +0 -127
- package/dist/node_modules/tar-stream/node_modules/readable-stream/errors.js +0 -116
- package/dist/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +0 -697
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/dist/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/dist/node_modules/tar-stream/node_modules/readable-stream/package.json +0 -97
- package/dist/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +0 -9
- package/dist/node_modules/tar-stream/node_modules/readable-stream/readable.js +0 -16
- package/dist/node_modules/tar-stream/pack.js +0 -255
- package/dist/node_modules/tar-stream/package.json +0 -90
- package/dist/node_modules/tar-stream/sandbox.js +0 -11
- package/dist/node_modules/tunnel-agent/LICENSE +0 -55
- package/dist/node_modules/tunnel-agent/README.md +0 -4
- package/dist/node_modules/tunnel-agent/index.js +0 -244
- package/dist/node_modules/tunnel-agent/package.json +0 -56
- package/dist/node_modules/util-deprecate/History.md +0 -16
- package/dist/node_modules/util-deprecate/LICENSE +0 -24
- package/dist/node_modules/util-deprecate/README.md +0 -53
- package/dist/node_modules/util-deprecate/browser.js +0 -67
- package/dist/node_modules/util-deprecate/node.js +0 -6
- package/dist/node_modules/util-deprecate/package.json +0 -58
- package/dist/node_modules/wide-align/LICENSE +0 -14
- package/dist/node_modules/wide-align/README.md +0 -47
- package/dist/node_modules/wide-align/align.js +0 -65
- package/dist/node_modules/wide-align/package.json +0 -66
- package/dist/node_modules/wrappy/LICENSE +0 -15
- package/dist/node_modules/wrappy/README.md +0 -36
- package/dist/node_modules/wrappy/package.json +0 -58
- package/dist/node_modules/wrappy/wrappy.js +0 -33
- package/dist/node_modules/yallist/LICENSE +0 -15
- package/dist/node_modules/yallist/README.md +0 -204
- package/dist/node_modules/yallist/iterator.js +0 -8
- package/dist/node_modules/yallist/package.json +0 -62
- package/dist/node_modules/yallist/yallist.js +0 -426
- package/dist/package-lock.json +0 -507
- package/dist/package.json +0 -63
- package/dist/static/expected_tile_2193_153_255_z7.png +0 -0
- package/dist/static/expected_tile_NZTM2000Quad_30_33_z6.png +0 -0
- package/dist/static/expected_tile_WebMercatorQuad_252_156_z8.png +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# object-assign [](https://travis-ci.org/sindresorhus/object-assign)
|
|
2
|
-
|
|
3
|
-
> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Use the built-in
|
|
7
|
-
|
|
8
|
-
Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari),
|
|
9
|
-
support `Object.assign()` :tada:. If you target only those environments, then by all
|
|
10
|
-
means, use `Object.assign()` instead of this package.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Install
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
$ npm install --save object-assign
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
const objectAssign = require('object-assign');
|
|
24
|
-
|
|
25
|
-
objectAssign({foo: 0}, {bar: 1});
|
|
26
|
-
//=> {foo: 0, bar: 1}
|
|
27
|
-
|
|
28
|
-
// multiple sources
|
|
29
|
-
objectAssign({foo: 0}, {bar: 1}, {baz: 2});
|
|
30
|
-
//=> {foo: 0, bar: 1, baz: 2}
|
|
31
|
-
|
|
32
|
-
// overwrites equal keys
|
|
33
|
-
objectAssign({foo: 0}, {foo: 1}, {foo: 2});
|
|
34
|
-
//=> {foo: 2}
|
|
35
|
-
|
|
36
|
-
// ignores null and undefined sources
|
|
37
|
-
objectAssign({foo: 0}, null, {bar: 1}, undefined);
|
|
38
|
-
//=> {foo: 0, bar: 1}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## API
|
|
43
|
-
|
|
44
|
-
### objectAssign(target, [source, ...])
|
|
45
|
-
|
|
46
|
-
Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## Resources
|
|
50
|
-
|
|
51
|
-
- [ES2015 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## Related
|
|
55
|
-
|
|
56
|
-
- [deep-assign](https://github.com/sindresorhus/deep-assign) - Recursive `Object.assign()`
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
## License
|
|
60
|
-
|
|
61
|
-
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# once
|
|
2
|
-
|
|
3
|
-
Only call a function once.
|
|
4
|
-
|
|
5
|
-
## usage
|
|
6
|
-
|
|
7
|
-
```javascript
|
|
8
|
-
var once = require('once')
|
|
9
|
-
|
|
10
|
-
function load (file, cb) {
|
|
11
|
-
cb = once(cb)
|
|
12
|
-
loader.load('file')
|
|
13
|
-
loader.once('load', cb)
|
|
14
|
-
loader.once('error', cb)
|
|
15
|
-
}
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Or add to the Function.prototype in a responsible way:
|
|
19
|
-
|
|
20
|
-
```javascript
|
|
21
|
-
// only has to be done once
|
|
22
|
-
require('once').proto()
|
|
23
|
-
|
|
24
|
-
function load (file, cb) {
|
|
25
|
-
cb = cb.once()
|
|
26
|
-
loader.load('file')
|
|
27
|
-
loader.once('load', cb)
|
|
28
|
-
loader.once('error', cb)
|
|
29
|
-
}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Ironically, the prototype feature makes this module twice as
|
|
33
|
-
complicated as necessary.
|
|
34
|
-
|
|
35
|
-
To check whether you function has been called, use `fn.called`. Once the
|
|
36
|
-
function is called for the first time the return value of the original
|
|
37
|
-
function is saved in `fn.value` and subsequent calls will continue to
|
|
38
|
-
return this value.
|
|
39
|
-
|
|
40
|
-
```javascript
|
|
41
|
-
var once = require('once')
|
|
42
|
-
|
|
43
|
-
function load (cb) {
|
|
44
|
-
cb = once(cb)
|
|
45
|
-
var stream = createStream()
|
|
46
|
-
stream.once('data', cb)
|
|
47
|
-
stream.once('end', function () {
|
|
48
|
-
if (!cb.called) cb(new Error('not found'))
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## `once.strict(func)`
|
|
54
|
-
|
|
55
|
-
Throw an error if the function is called twice.
|
|
56
|
-
|
|
57
|
-
Some functions are expected to be called only once. Using `once` for them would
|
|
58
|
-
potentially hide logical errors.
|
|
59
|
-
|
|
60
|
-
In the example below, the `greet` function has to call the callback only once:
|
|
61
|
-
|
|
62
|
-
```javascript
|
|
63
|
-
function greet (name, cb) {
|
|
64
|
-
// return is missing from the if statement
|
|
65
|
-
// when no name is passed, the callback is called twice
|
|
66
|
-
if (!name) cb('Hello anonymous')
|
|
67
|
-
cb('Hello ' + name)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function log (msg) {
|
|
71
|
-
console.log(msg)
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// this will print 'Hello anonymous' but the logical error will be missed
|
|
75
|
-
greet(null, once(msg))
|
|
76
|
-
|
|
77
|
-
// once.strict will print 'Hello anonymous' and throw an error when the callback will be called the second time
|
|
78
|
-
greet(null, once.strict(msg))
|
|
79
|
-
```
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var wrappy = require('wrappy')
|
|
2
|
-
module.exports = wrappy(once)
|
|
3
|
-
module.exports.strict = wrappy(onceStrict)
|
|
4
|
-
|
|
5
|
-
once.proto = once(function () {
|
|
6
|
-
Object.defineProperty(Function.prototype, 'once', {
|
|
7
|
-
value: function () {
|
|
8
|
-
return once(this)
|
|
9
|
-
},
|
|
10
|
-
configurable: true
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(Function.prototype, 'onceStrict', {
|
|
14
|
-
value: function () {
|
|
15
|
-
return onceStrict(this)
|
|
16
|
-
},
|
|
17
|
-
configurable: true
|
|
18
|
-
})
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
function once (fn) {
|
|
22
|
-
var f = function () {
|
|
23
|
-
if (f.called) return f.value
|
|
24
|
-
f.called = true
|
|
25
|
-
return f.value = fn.apply(this, arguments)
|
|
26
|
-
}
|
|
27
|
-
f.called = false
|
|
28
|
-
return f
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function onceStrict (fn) {
|
|
32
|
-
var f = function () {
|
|
33
|
-
if (f.called)
|
|
34
|
-
throw new Error(f.onceError)
|
|
35
|
-
f.called = true
|
|
36
|
-
return f.value = fn.apply(this, arguments)
|
|
37
|
-
}
|
|
38
|
-
var name = fn.name || 'Function wrapped with `once`'
|
|
39
|
-
f.onceError = name + " shouldn't be called more than once"
|
|
40
|
-
f.called = false
|
|
41
|
-
return f
|
|
42
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_from": "once@^1.3.1",
|
|
3
|
-
"_id": "once@1.4.0",
|
|
4
|
-
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
|
6
|
-
"_location": "/once",
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "once@^1.3.1",
|
|
12
|
-
"name": "once",
|
|
13
|
-
"escapedName": "once",
|
|
14
|
-
"rawSpec": "^1.3.1",
|
|
15
|
-
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^1.3.1"
|
|
17
|
-
},
|
|
18
|
-
"_requiredBy": [
|
|
19
|
-
"/end-of-stream",
|
|
20
|
-
"/pump",
|
|
21
|
-
"/simple-get"
|
|
22
|
-
],
|
|
23
|
-
"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
24
|
-
"_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1",
|
|
25
|
-
"_spec": "once@^1.3.1",
|
|
26
|
-
"_where": "/home/runner/work/basemaps/basemaps/packages/lambda-tiler/dist/node_modules/pump",
|
|
27
|
-
"author": {
|
|
28
|
-
"name": "Isaac Z. Schlueter",
|
|
29
|
-
"email": "i@izs.me",
|
|
30
|
-
"url": "http://blog.izs.me/"
|
|
31
|
-
},
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/isaacs/once/issues"
|
|
34
|
-
},
|
|
35
|
-
"bundleDependencies": false,
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"wrappy": "1"
|
|
38
|
-
},
|
|
39
|
-
"deprecated": false,
|
|
40
|
-
"description": "Run a function exactly one time",
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"tap": "^7.0.1"
|
|
43
|
-
},
|
|
44
|
-
"directories": {
|
|
45
|
-
"test": "test"
|
|
46
|
-
},
|
|
47
|
-
"files": [
|
|
48
|
-
"once.js"
|
|
49
|
-
],
|
|
50
|
-
"homepage": "https://github.com/isaacs/once#readme",
|
|
51
|
-
"keywords": [
|
|
52
|
-
"once",
|
|
53
|
-
"function",
|
|
54
|
-
"one",
|
|
55
|
-
"single"
|
|
56
|
-
],
|
|
57
|
-
"license": "ISC",
|
|
58
|
-
"main": "once.js",
|
|
59
|
-
"name": "once",
|
|
60
|
-
"repository": {
|
|
61
|
-
"type": "git",
|
|
62
|
-
"url": "git://github.com/isaacs/once.git"
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"test": "tap test/*.js"
|
|
66
|
-
},
|
|
67
|
-
"version": "1.4.0"
|
|
68
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [6.1.4] - 2021-08-11
|
|
4
|
-
|
|
5
|
-
### Fixed
|
|
6
|
-
|
|
7
|
-
- Move auth token to header instead of query param ([#160](https://github.com/prebuild/prebuild-install/issues/160)) ([`b3fad76`](https://github.com/prebuild/prebuild-install/commit/b3fad76)) (nicolai-nordic)
|
|
8
|
-
- Remove `_` prefix as it isn't allowed by npm config ([#153](https://github.com/prebuild/prebuild-install/issues/153)) ([`a964e5b`](https://github.com/prebuild/prebuild-install/commit/a964e5b)) (Tom Boothman)
|
|
9
|
-
- Make `rc.path` absolute ([#158](https://github.com/prebuild/prebuild-install/issues/158)) ([`57bcc06`](https://github.com/prebuild/prebuild-install/commit/57bcc06)) (George Waters).
|
|
10
|
-
|
|
11
|
-
## [6.1.3] - 2021-06-03
|
|
12
|
-
|
|
13
|
-
### Changed
|
|
14
|
-
|
|
15
|
-
- Inline no longer maintained `noop-logger` ([#155](https://github.com/prebuild/prebuild-install/issues/155)) ([`e08d75a`](https://github.com/prebuild/prebuild-install/commit/e08d75a)) (Alexandru Dima)
|
|
16
|
-
- Point users towards `prebuildify` in README ([#150](https://github.com/prebuild/prebuild-install/issues/150)) ([`5ee1a2f`](https://github.com/prebuild/prebuild-install/commit/5ee1a2f)) (Vincent Weevers)
|
|
17
|
-
|
|
18
|
-
## [6.1.2] - 2021-04-24
|
|
19
|
-
|
|
20
|
-
### Fixed
|
|
21
|
-
|
|
22
|
-
- Support URL-safe strings in scoped packages ([#148](https://github.com/prebuild/prebuild-install/issues/148)) ([`db36c7a`](https://github.com/prebuild/prebuild-install/commit/db36c7a)) (Marco)
|
|
23
|
-
|
|
24
|
-
## [6.1.1] - 2021-04-04
|
|
25
|
-
|
|
26
|
-
### Fixed
|
|
27
|
-
|
|
28
|
-
- Support `force` & `buildFromSource` options in yarn ([#140](https://github.com/prebuild/prebuild-install/issues/140)) ([`8cb1ced`](https://github.com/prebuild/prebuild-install/commit/8cb1ced)) (João Moreno)
|
|
29
|
-
- Bump `node-abi` to prevent dedupe (closes [#135](https://github.com/prebuild/prebuild-install/issues/135)) ([`2950fb2`](https://github.com/prebuild/prebuild-install/commit/2950fb2)) (Vincent Weevers)
|
|
30
|
-
|
|
31
|
-
## [6.1.0] - 2021-04-03
|
|
32
|
-
|
|
33
|
-
### Added
|
|
34
|
-
|
|
35
|
-
- Restore local prebuilds feature ([#137](https://github.com/prebuild/prebuild-install/issues/137)) ([`dc4e5ea`](https://github.com/prebuild/prebuild-install/commit/dc4e5ea)) (Wes Roberts). Previously removed in [#81](https://github.com/prebuild/prebuild-install/issues/81) / [`a069253`](https://github.com/prebuild/prebuild-install/commit/a06925378d38ca821bfa93aa4c1fdedc253b2420).
|
|
36
|
-
|
|
37
|
-
## [6.0.1] - 2021-02-14
|
|
38
|
-
|
|
39
|
-
### Fixed
|
|
40
|
-
|
|
41
|
-
- Fixes empty `--tag-prefix` ([#143](https://github.com/prebuild/prebuild-install/issues/143)) ([**@mathiask88**](https://github.com/mathiask88))
|
|
42
|
-
|
|
43
|
-
## [6.0.0] - 2020-10-23
|
|
44
|
-
|
|
45
|
-
### Changed
|
|
46
|
-
|
|
47
|
-
- **Breaking:** don't skip downloads in standalone mode ([`b6f3b36`](https://github.com/prebuild/prebuild-install/commit/b6f3b36)) ([**@vweevers**](https://github.com/vweevers))
|
|
48
|
-
|
|
49
|
-
### Added
|
|
50
|
-
|
|
51
|
-
- Document cross platform options ([`e5c9a5a`](https://github.com/prebuild/prebuild-install/commit/e5c9a5a)) ([**@fishbone1**](https://github.com/fishbone1))
|
|
52
|
-
|
|
53
|
-
### Removed
|
|
54
|
-
|
|
55
|
-
- **Breaking:** remove `--compile` and `--prebuild` options ([`94f2492`](https://github.com/prebuild/prebuild-install/commit/94f2492)) ([**@vweevers**](https://github.com/vweevers))
|
|
56
|
-
|
|
57
|
-
### Fixed
|
|
58
|
-
|
|
59
|
-
- Support npm 7 ([`8acccac`](https://github.com/prebuild/prebuild-install/commit/8acccac), [`08eaf6d`](https://github.com/prebuild/prebuild-install/commit/08eaf6d), [`22175b8`](https://github.com/prebuild/prebuild-install/commit/22175b8)) ([**@vweevers**](https://github.com/vweevers))
|
|
60
|
-
|
|
61
|
-
## [5.3.6] - 2020-10-20
|
|
62
|
-
|
|
63
|
-
### Changed
|
|
64
|
-
|
|
65
|
-
- Replace `mkdirp` dependency with `mkdirp-classic` ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
66
|
-
|
|
67
|
-
[6.1.4]: https://github.com/prebuild/prebuild-install/compare/v6.1.3...v6.1.4
|
|
68
|
-
|
|
69
|
-
[6.1.3]: https://github.com/prebuild/prebuild-install/compare/v6.1.2...v6.1.3
|
|
70
|
-
|
|
71
|
-
[6.1.2]: https://github.com/prebuild/prebuild-install/compare/v6.1.1...v6.1.2
|
|
72
|
-
|
|
73
|
-
[6.1.1]: https://github.com/prebuild/prebuild-install/compare/v6.1.0...v6.1.1
|
|
74
|
-
|
|
75
|
-
[6.1.0]: https://github.com/prebuild/prebuild-install/compare/v6.0.1...v6.1.0
|
|
76
|
-
|
|
77
|
-
[6.0.1]: https://github.com/prebuild/prebuild-install/compare/v6.0.0...v6.0.1
|
|
78
|
-
|
|
79
|
-
[6.0.0]: https://github.com/prebuild/prebuild-install/compare/v5.3.6...v6.0.0
|
|
80
|
-
|
|
81
|
-
[5.3.6]: https://github.com/prebuild/prebuild-install/releases/tag/v5.3.6
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Mathias Buus
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# prebuild-install
|
|
2
|
-
|
|
3
|
-
> **A command line tool to easily install prebuilt binaries for multiple versions of Node.js & Electron on a specific platform.**
|
|
4
|
-
> By default it downloads prebuilt binaries from a GitHub release.
|
|
5
|
-
|
|
6
|
-
[](https://www.npmjs.com/package/prebuild-install)
|
|
7
|
-

|
|
8
|
-
[](https://github.com/prebuild/prebuild-install/actions/workflows/test.yml)
|
|
9
|
-
[](https://david-dm.org/prebuild/prebuild-install)
|
|
10
|
-
[](http://standardjs.com/)
|
|
11
|
-
|
|
12
|
-
## Note
|
|
13
|
-
|
|
14
|
-
**Instead of [`prebuild`](https://github.com/prebuild/prebuild) paired with [`prebuild-install`](https://github.com/prebuild/prebuild-install), we recommend [`prebuildify`](https://github.com/prebuild/prebuildify) paired with [`node-gyp-build`](https://github.com/prebuild/node-gyp-build).**
|
|
15
|
-
|
|
16
|
-
With `prebuildify`, all prebuilt binaries are shipped inside the package that is published to npm, which means there's no need for a separate download step like you find in `prebuild`. The irony of this approach is that it is faster to download all prebuilt binaries for every platform when they are bundled than it is to download a single prebuilt binary as an install script.
|
|
17
|
-
|
|
18
|
-
Upsides:
|
|
19
|
-
|
|
20
|
-
1. No extra download step, making it more reliable and faster to install.
|
|
21
|
-
2. Supports changing runtime versions locally and using the same install between Node.js and Electron. Reinstalling or rebuilding is not necessary, as all prebuilt binaries are in the npm tarball and the correct one is simply picked on runtime.
|
|
22
|
-
3. The `node-gyp-build` runtime dependency is dependency-free and will remain so out of principle, because introducing dependencies would negate the shorter install time.
|
|
23
|
-
4. Prebuilt binaries work even if npm install scripts are disabled.
|
|
24
|
-
5. The npm package checksum covers prebuilt binaries too.
|
|
25
|
-
|
|
26
|
-
Downsides:
|
|
27
|
-
|
|
28
|
-
1. The installed npm package is larger on disk. Using [Node-API](https://nodejs.org/api/n-api.html) alleviates this because Node-API binaries are runtime-agnostic and forward-compatible.
|
|
29
|
-
2. Publishing is mildly more complicated, because `npm publish` must be done after compiling and fetching prebuilt binaries (typically in CI).
|
|
30
|
-
|
|
31
|
-
## Usage
|
|
32
|
-
|
|
33
|
-
Use [`prebuild`](https://github.com/prebuild/prebuild) to create and upload prebuilt binaries. Then change your package.json install script to:
|
|
34
|
-
|
|
35
|
-
```json
|
|
36
|
-
{
|
|
37
|
-
"scripts": {
|
|
38
|
-
"install": "prebuild-install || node-gyp rebuild"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Help
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
prebuild-install [options]
|
|
47
|
-
|
|
48
|
-
--download -d [url] (download prebuilds, no url means github)
|
|
49
|
-
--target -t version (version to install for)
|
|
50
|
-
--runtime -r runtime (Node runtime [node, napi or electron] to build or install for, default is node)
|
|
51
|
-
--path -p path (make a prebuild-install here)
|
|
52
|
-
--token -T gh-token (github token for private repos)
|
|
53
|
-
--arch arch (target CPU architecture, see Node OS module docs, default is current arch)
|
|
54
|
-
--platform platform (target platform, see Node OS module docs, default is current platform)
|
|
55
|
-
--tag-prefix <prefix> (github tag prefix, default is "v")
|
|
56
|
-
--build-from-source (skip prebuild download)
|
|
57
|
-
--verbose (log verbosely)
|
|
58
|
-
--libc (use provided libc rather than system default)
|
|
59
|
-
--debug (set Debug or Release configuration)
|
|
60
|
-
--version (print prebuild-install version and exit)
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
When `prebuild-install` is run via an `npm` script, options `--build-from-source`, `--debug`, `--download`, `--target`, `--runtime`, `--arch` and `--platform` may be passed through via arguments given to the `npm` command.
|
|
64
|
-
|
|
65
|
-
Alternatively you can set environment variables `npm_config_build_from_source=true`, `npm_config_platform`, `npm_config_arch`, `npm_config_target` and `npm_config_runtime`.
|
|
66
|
-
|
|
67
|
-
### Private Repositories
|
|
68
|
-
|
|
69
|
-
`prebuild-install` supports downloading prebuilds from private GitHub repositories using the `-T <github-token>`:
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
$ prebuild-install -T <github-token>
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
If you don't want to use the token on cli you can put it in `~/.prebuild-installrc`:
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
token=<github-token>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Alternatively you can specify it in the `prebuild-install_token` environment variable.
|
|
82
|
-
|
|
83
|
-
Note that using a GitHub token uses the API to resolve the correct release meaning that you are subject to the ([GitHub Rate Limit](https://developer.github.com/v3/rate_limit/)).
|
|
84
|
-
|
|
85
|
-
### Create GitHub Token
|
|
86
|
-
|
|
87
|
-
To create a token:
|
|
88
|
-
|
|
89
|
-
- Go to [this page](https://github.com/settings/tokens)
|
|
90
|
-
- Click the `Generate new token` button
|
|
91
|
-
- Give the token a name and click the `Generate token` button, see below
|
|
92
|
-
|
|
93
|
-

|
|
94
|
-
|
|
95
|
-
The default scopes should be fine.
|
|
96
|
-
|
|
97
|
-
### Custom binaries
|
|
98
|
-
|
|
99
|
-
The end user can override binary download location through environment variables in their .npmrc file.
|
|
100
|
-
The variable needs to meet the mask `% your package name %_binary_host` or `% your package name %_binary_host_mirror`. For example:
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
leveldown_binary_host=http://overriden-host.com/overriden-path
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
Note that the package version subpath and file name will still be appended.
|
|
107
|
-
So if you are installing `leveldown@1.2.3` the resulting url will be:
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
http://overriden-host.com/overriden-path/v1.2.3/leveldown-v1.2.3-node-v57-win32-x64.tar.gz
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
#### Local prebuilds
|
|
114
|
-
|
|
115
|
-
If you want to use prebuilds from your local filesystem, you can use the `% your package name %_local_prebuilds` .npmrc variable to set a path to the folder containing prebuilds. For example:
|
|
116
|
-
|
|
117
|
-
```
|
|
118
|
-
leveldown_local_prebuilds=/path/to/prebuilds
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
This option will look directly in that folder for bundles created with `prebuild`, for example:
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
/path/to/prebuilds/leveldown-v1.2.3-node-v57-win32-x64.tar.gz
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
Non-absolute paths resolve relative to the directory of the package invoking prebuild-install, e.g. for nested dependencies.
|
|
128
|
-
|
|
129
|
-
### Cache
|
|
130
|
-
|
|
131
|
-
All prebuilt binaries are cached to minimize traffic. So first `prebuild-install` picks binaries from the cache and if no binary could be found, it will be downloaded. Depending on the environment, the cache folder is determined in the following order:
|
|
132
|
-
|
|
133
|
-
- `${npm_config_cache}/_prebuilds`
|
|
134
|
-
- `${APP_DATA}/npm-cache/_prebuilds`
|
|
135
|
-
- `${HOME}/.npm/_prebuilds`
|
|
136
|
-
|
|
137
|
-
## License
|
|
138
|
-
|
|
139
|
-
MIT
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var get = require('simple-get')
|
|
2
|
-
var util = require('./util')
|
|
3
|
-
var proxy = require('./proxy')
|
|
4
|
-
|
|
5
|
-
function findAssetId (opts, cb) {
|
|
6
|
-
var downloadUrl = util.getDownloadUrl(opts)
|
|
7
|
-
var apiUrl = util.getApiUrl(opts)
|
|
8
|
-
var log = opts.log || util.noopLogger
|
|
9
|
-
|
|
10
|
-
log.http('request', 'GET ' + apiUrl)
|
|
11
|
-
var reqOpts = proxy({
|
|
12
|
-
url: apiUrl,
|
|
13
|
-
json: true,
|
|
14
|
-
headers: {
|
|
15
|
-
'User-Agent': 'simple-get',
|
|
16
|
-
Authorization: 'token ' + opts.token
|
|
17
|
-
}
|
|
18
|
-
}, opts)
|
|
19
|
-
|
|
20
|
-
var req = get.concat(reqOpts, function (err, res, data) {
|
|
21
|
-
if (err) return cb(err)
|
|
22
|
-
log.http(res.statusCode, apiUrl)
|
|
23
|
-
if (res.statusCode !== 200) return cb(err)
|
|
24
|
-
|
|
25
|
-
// Find asset id in release
|
|
26
|
-
for (var release of data) {
|
|
27
|
-
if (release.tag_name === opts['tag-prefix'] + opts.pkg.version) {
|
|
28
|
-
for (var asset of release.assets) {
|
|
29
|
-
if (asset.browser_download_url === downloadUrl) {
|
|
30
|
-
return cb(null, asset.id)
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
cb(new Error('Could not find GitHub release for version'))
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
req.setTimeout(30 * 1000, function () {
|
|
40
|
-
req.abort()
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
module.exports = findAssetId
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
var path = require('path')
|
|
4
|
-
var fs = require('fs')
|
|
5
|
-
var napi = require('napi-build-utils')
|
|
6
|
-
|
|
7
|
-
var pkg = require(path.resolve('package.json'))
|
|
8
|
-
var rc = require('./rc')(pkg)
|
|
9
|
-
var log = require('./log')(rc, process.env)
|
|
10
|
-
var download = require('./download')
|
|
11
|
-
var asset = require('./asset')
|
|
12
|
-
var util = require('./util')
|
|
13
|
-
|
|
14
|
-
var prebuildClientVersion = require('./package.json').version
|
|
15
|
-
if (rc.version) {
|
|
16
|
-
console.log(prebuildClientVersion)
|
|
17
|
-
process.exit(0)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (rc.path) process.chdir(rc.path)
|
|
21
|
-
|
|
22
|
-
if (rc.runtime === 'electron' && rc.target[0] === '4' && rc.abi === '64') {
|
|
23
|
-
log.error(`Electron version ${rc.target} found - skipping prebuild-install work due to known ABI issue`)
|
|
24
|
-
log.error('More information about this issue can be found at https://github.com/lgeiger/node-abi/issues/54')
|
|
25
|
-
process.exit(1)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (!fs.existsSync('package.json')) {
|
|
29
|
-
log.error('setup', 'No package.json found. Aborting...')
|
|
30
|
-
process.exit(1)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (rc.help) {
|
|
34
|
-
console.error(fs.readFileSync(path.join(__dirname, 'help.txt'), 'utf-8'))
|
|
35
|
-
process.exit(0)
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
log.info('begin', 'Prebuild-install version', prebuildClientVersion)
|
|
39
|
-
|
|
40
|
-
var opts = Object.assign({}, rc, { pkg: pkg, log: log })
|
|
41
|
-
|
|
42
|
-
if (napi.isNapiRuntime(rc.runtime)) napi.logUnsupportedVersion(rc.target, log)
|
|
43
|
-
|
|
44
|
-
var origin = util.packageOrigin(process.env, pkg)
|
|
45
|
-
|
|
46
|
-
if (opts.force) {
|
|
47
|
-
log.warn('install', 'prebuilt binaries enforced with --force!')
|
|
48
|
-
log.warn('install', 'prebuilt binaries may be out of date!')
|
|
49
|
-
} else if (origin && origin.length > 4 && origin.substr(0, 4) === 'git+') {
|
|
50
|
-
log.info('install', 'installing from git repository, skipping download.')
|
|
51
|
-
process.exit(1)
|
|
52
|
-
} else if (opts.buildFromSource) {
|
|
53
|
-
log.info('install', '--build-from-source specified, not attempting download.')
|
|
54
|
-
process.exit(1)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
var startDownload = function (downloadUrl) {
|
|
58
|
-
download(downloadUrl, opts, function (err) {
|
|
59
|
-
if (err) {
|
|
60
|
-
log.warn('install', err.message)
|
|
61
|
-
return process.exit(1)
|
|
62
|
-
}
|
|
63
|
-
log.info('install', 'Successfully installed prebuilt binary!')
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (opts.token) {
|
|
68
|
-
asset(opts, function (err, assetId) {
|
|
69
|
-
if (err) {
|
|
70
|
-
log.warn('install', err.message)
|
|
71
|
-
return process.exit(1)
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
startDownload(util.getAssetUrl(opts, assetId))
|
|
75
|
-
})
|
|
76
|
-
} else {
|
|
77
|
-
startDownload(util.getDownloadUrl(opts))
|
|
78
|
-
}
|