@ontos-ai/knowhere-claw 0.2.0 → 0.2.2
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/dist/__tests__/channel-route.test.d.ts +1 -0
- package/dist/__tests__/ingest-tool.test.d.ts +1 -0
- package/dist/__tests__/kg-service-test-helper.d.ts +2 -0
- package/dist/__tests__/kg-service.test.d.ts +1 -0
- package/dist/__tests__/read-result-file-tool.test.d.ts +1 -0
- package/dist/__tests__/tracker-progress.test.d.ts +1 -0
- package/dist/_virtual/_rolldown/runtime.js +1 -35
- package/dist/channel-delivery.d.ts +21 -0
- package/dist/client.d.ts +33 -0
- package/dist/client.js +1 -1
- package/dist/config.d.ts +13 -0
- package/dist/connect-builder.d.ts +48 -0
- package/dist/connect-builder.js +1 -2
- package/dist/error-message.d.ts +1 -0
- package/dist/graph-builder.d.ts +75 -0
- package/dist/graph-builder.js +9 -5
- package/dist/index.d.ts +9 -0
- package/dist/kg-service.d.ts +38 -0
- package/dist/kg-service.js +39 -33
- package/dist/parser.d.ts +16 -0
- package/dist/parser.js +1 -1
- package/dist/session.d.ts +11 -0
- package/dist/store.d.ts +79 -0
- package/dist/text.d.ts +10 -0
- package/dist/tools.d.ts +10 -0
- package/dist/tracker-progress.d.ts +10 -0
- package/dist/types.d.ts +320 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -3
- package/dist/node_modules/.pnpm/@knowhere-ai_sdk@0.1.1/node_modules/@knowhere-ai/sdk/dist/index.js +0 -717
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -212
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -35
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.js +0 -2609
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -142
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -103
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -199
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/package.js +0 -67
- package/dist/node_modules/.pnpm/abbrev@1.1.1/node_modules/abbrev/abbrev.js +0 -59
- package/dist/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js +0 -11
- package/dist/node_modules/.pnpm/aproba@2.1.0/node_modules/aproba/index.js +0 -119
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/index.js +0 -13
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-base.js +0 -16
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-group.js +0 -98
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -37
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/adapters.js +0 -83
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/fetch.js +0 -170
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/xhr.js +0 -106
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js +0 -57
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js +0 -90
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js +0 -20
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/Axios.js +0 -174
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosError.js +0 -70
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosHeaders.js +0 -204
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js +0 -60
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/dispatchRequest.js +0 -52
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/mergeConfig.js +0 -81
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/settle.js +0 -18
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/transformData.js +0 -25
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/index.js +0 -107
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -50
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/bind.js +0 -15
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/buildURL.js +0 -40
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/composeSignals.js +0 -39
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/cookies.js +0 -31
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/formDataToJSON.js +0 -67
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js +0 -38
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js +0 -36
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js +0 -36
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js +0 -29
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js +0 -38
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js +0 -151
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/trackStream.js +0 -69
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/validator.js +0 -76
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js +0 -22
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/common/utils.js +0 -46
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js +0 -698
- package/dist/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -53
- package/dist/node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js +0 -132
- package/dist/node_modules/.pnpm/color-support@1.1.3/node_modules/color-support/browser.js +0 -18
- package/dist/node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js +0 -19
- package/dist/node_modules/.pnpm/console-control-strings@1.1.0/node_modules/console-control-strings/index.js +0 -104
- package/dist/node_modules/.pnpm/delegates@1.0.0/node_modules/delegates/index.js +0 -104
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js +0 -221
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/elf.js +0 -26
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/filesystem.js +0 -48
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js +0 -24
- package/dist/node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js +0 -10
- package/dist/node_modules/.pnpm/fflate@0.8.2/node_modules/fflate/esm/browser.js +0 -426
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js +0 -120
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js +0 -100
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js +0 -43
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js +0 -53
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js +0 -27
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js +0 -56
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -89
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -35
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js +0 -81
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js +0 -113
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/index.js +0 -29
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js +0 -22
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js +0 -20
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -33
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js +0 -17
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js +0 -56
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js +0 -49
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js +0 -30
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js +0 -18
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js +0 -27
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js +0 -131
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js +0 -34
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js +0 -51
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js +0 -171
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/base-theme.js +0 -21
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/error.js +0 -27
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/has-color.js +0 -9
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/index.js +0 -224
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/plumbing.js +0 -48
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/process.js +0 -8
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/progress-bar.js +0 -46
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/render-template.js +0 -155
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-immediate.js +0 -14
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-interval.js +0 -8
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/spin.js +0 -10
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/template-item.js +0 -58
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/theme-set.js +0 -99
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/themes.js +0 -67
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/wide-truncate.js +0 -22
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js +0 -162
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js +0 -451
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js +0 -280
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js +0 -20
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js +0 -362
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js +0 -92
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js +0 -255
- package/dist/node_modules/.pnpm/has-unicode@2.0.1/node_modules/has-unicode/index.js +0 -14
- package/dist/node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js +0 -45
- package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js +0 -27
- package/dist/node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js +0 -14
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js +0 -68
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js +0 -19
- package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +0 -3110
- package/dist/node_modules/.pnpm/minimatch@3.1.5/node_modules/minimatch/minimatch.js +0 -578
- package/dist/node_modules/.pnpm/nodejieba@2.6.0/node_modules/nodejieba/index.js +0 -46
- package/dist/node_modules/.pnpm/nopt@5.0.0/node_modules/nopt/lib/nopt.js +0 -330
- package/dist/node_modules/.pnpm/npmlog@5.0.1/node_modules/npmlog/log.js +0 -305
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/.pnpm/once@1.4.0/node_modules/once/once.js +0 -44
- package/dist/node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js +0 -19
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js +0 -88
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js +0 -75
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_passthrough.js +0 -19
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js +0 -666
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js +0 -89
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js +0 -423
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -172
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -243
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -77
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -87
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -10
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -80
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js +0 -21
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -8
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable-browser.js +0 -23
- package/dist/node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js +0 -229
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +0 -79
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +0 -282
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +0 -186
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +0 -34
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +0 -99
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +0 -8
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +0 -36
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +0 -84
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +0 -31
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +0 -31
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +0 -45
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +0 -64
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +0 -35
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +0 -102
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +0 -17
- package/dist/node_modules/.pnpm/set-blocking@2.0.0/node_modules/set-blocking/index.js +0 -12
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js +0 -130
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js +0 -16
- package/dist/node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js +0 -30
- package/dist/node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js +0 -10
- package/dist/node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js +0 -26
- package/dist/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js +0 -59
- package/dist/node_modules/.pnpm/wide-align@1.1.5/node_modules/wide-align/align.js +0 -52
- package/dist/node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js +0 -26
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_log } from "../../../../../../npmlog@5.0.1/node_modules/npmlog/log.js";
|
|
3
|
-
import { require_rimraf } from "../../../../../../rimraf@3.0.2/node_modules/rimraf/rimraf.js";
|
|
4
|
-
//#region node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js
|
|
5
|
-
var require_napi = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
const fs = __require("fs");
|
|
7
|
-
module.exports = exports;
|
|
8
|
-
const versionArray = process.version.substr(1).replace(/-.*$/, "").split(".").map((item) => {
|
|
9
|
-
return +item;
|
|
10
|
-
});
|
|
11
|
-
const napi_multiple_commands = [
|
|
12
|
-
"build",
|
|
13
|
-
"clean",
|
|
14
|
-
"configure",
|
|
15
|
-
"package",
|
|
16
|
-
"publish",
|
|
17
|
-
"reveal",
|
|
18
|
-
"testbinary",
|
|
19
|
-
"testpackage",
|
|
20
|
-
"unpublish"
|
|
21
|
-
];
|
|
22
|
-
const napi_build_version_tag = "napi_build_version=";
|
|
23
|
-
module.exports.get_napi_version = function() {
|
|
24
|
-
let version = process.versions.napi;
|
|
25
|
-
if (!version) {
|
|
26
|
-
if (versionArray[0] === 9 && versionArray[1] >= 3) version = 2;
|
|
27
|
-
else if (versionArray[0] === 8) version = 1;
|
|
28
|
-
}
|
|
29
|
-
return version;
|
|
30
|
-
};
|
|
31
|
-
module.exports.get_napi_version_as_string = function(target) {
|
|
32
|
-
const version = module.exports.get_napi_version(target);
|
|
33
|
-
return version ? "" + version : "";
|
|
34
|
-
};
|
|
35
|
-
module.exports.validate_package_json = function(package_json, opts) {
|
|
36
|
-
const binary = package_json.binary;
|
|
37
|
-
const module_path_ok = pathOK(binary.module_path);
|
|
38
|
-
const remote_path_ok = pathOK(binary.remote_path);
|
|
39
|
-
const package_name_ok = pathOK(binary.package_name);
|
|
40
|
-
const napi_build_versions = module.exports.get_napi_build_versions(package_json, opts, true);
|
|
41
|
-
const napi_build_versions_raw = module.exports.get_napi_build_versions_raw(package_json);
|
|
42
|
-
if (napi_build_versions) napi_build_versions.forEach((napi_build_version) => {
|
|
43
|
-
if (!(parseInt(napi_build_version, 10) === napi_build_version && napi_build_version > 0)) throw new Error("All values specified in napi_versions must be positive integers.");
|
|
44
|
-
});
|
|
45
|
-
if (napi_build_versions && (!module_path_ok || !remote_path_ok && !package_name_ok)) throw new Error("When napi_versions is specified; module_path and either remote_path or package_name must contain the substitution string '{napi_build_version}`.");
|
|
46
|
-
if ((module_path_ok || remote_path_ok || package_name_ok) && !napi_build_versions_raw) throw new Error("When the substitution string '{napi_build_version}` is specified in module_path, remote_path, or package_name; napi_versions must also be specified.");
|
|
47
|
-
if (napi_build_versions && !module.exports.get_best_napi_build_version(package_json, opts) && module.exports.build_napi_only(package_json)) throw new Error("The Node-API version of this Node instance is " + module.exports.get_napi_version(opts ? opts.target : void 0) + ". This module supports Node-API version(s) " + module.exports.get_napi_build_versions_raw(package_json) + ". This Node instance cannot run this module.");
|
|
48
|
-
if (napi_build_versions_raw && !napi_build_versions && module.exports.build_napi_only(package_json)) throw new Error("The Node-API version of this Node instance is " + module.exports.get_napi_version(opts ? opts.target : void 0) + ". This module supports Node-API version(s) " + module.exports.get_napi_build_versions_raw(package_json) + ". This Node instance cannot run this module.");
|
|
49
|
-
};
|
|
50
|
-
function pathOK(path) {
|
|
51
|
-
return path && (path.indexOf("{napi_build_version}") !== -1 || path.indexOf("{node_napi_label}") !== -1);
|
|
52
|
-
}
|
|
53
|
-
module.exports.expand_commands = function(package_json, opts, commands) {
|
|
54
|
-
const expanded_commands = [];
|
|
55
|
-
const napi_build_versions = module.exports.get_napi_build_versions(package_json, opts);
|
|
56
|
-
commands.forEach((command) => {
|
|
57
|
-
if (napi_build_versions && command.name === "install") {
|
|
58
|
-
const napi_build_version = module.exports.get_best_napi_build_version(package_json, opts);
|
|
59
|
-
const args = napi_build_version ? [napi_build_version_tag + napi_build_version] : [];
|
|
60
|
-
expanded_commands.push({
|
|
61
|
-
name: command.name,
|
|
62
|
-
args
|
|
63
|
-
});
|
|
64
|
-
} else if (napi_build_versions && napi_multiple_commands.indexOf(command.name) !== -1) napi_build_versions.forEach((napi_build_version) => {
|
|
65
|
-
const args = command.args.slice();
|
|
66
|
-
args.push(napi_build_version_tag + napi_build_version);
|
|
67
|
-
expanded_commands.push({
|
|
68
|
-
name: command.name,
|
|
69
|
-
args
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
else expanded_commands.push(command);
|
|
73
|
-
});
|
|
74
|
-
return expanded_commands;
|
|
75
|
-
};
|
|
76
|
-
module.exports.get_napi_build_versions = function(package_json, opts, warnings) {
|
|
77
|
-
const log = require_log();
|
|
78
|
-
let napi_build_versions = [];
|
|
79
|
-
const supported_napi_version = module.exports.get_napi_version(opts ? opts.target : void 0);
|
|
80
|
-
if (package_json.binary && package_json.binary.napi_versions) package_json.binary.napi_versions.forEach((napi_version) => {
|
|
81
|
-
const duplicated = napi_build_versions.indexOf(napi_version) !== -1;
|
|
82
|
-
if (!duplicated && supported_napi_version && napi_version <= supported_napi_version) napi_build_versions.push(napi_version);
|
|
83
|
-
else if (warnings && !duplicated && supported_napi_version) log.info("This Node instance does not support builds for Node-API version", napi_version);
|
|
84
|
-
});
|
|
85
|
-
if (opts && opts["build-latest-napi-version-only"]) {
|
|
86
|
-
let latest_version = 0;
|
|
87
|
-
napi_build_versions.forEach((napi_version) => {
|
|
88
|
-
if (napi_version > latest_version) latest_version = napi_version;
|
|
89
|
-
});
|
|
90
|
-
napi_build_versions = latest_version ? [latest_version] : [];
|
|
91
|
-
}
|
|
92
|
-
return napi_build_versions.length ? napi_build_versions : void 0;
|
|
93
|
-
};
|
|
94
|
-
module.exports.get_napi_build_versions_raw = function(package_json) {
|
|
95
|
-
const napi_build_versions = [];
|
|
96
|
-
if (package_json.binary && package_json.binary.napi_versions) package_json.binary.napi_versions.forEach((napi_version) => {
|
|
97
|
-
if (napi_build_versions.indexOf(napi_version) === -1) napi_build_versions.push(napi_version);
|
|
98
|
-
});
|
|
99
|
-
return napi_build_versions.length ? napi_build_versions : void 0;
|
|
100
|
-
};
|
|
101
|
-
module.exports.get_command_arg = function(napi_build_version) {
|
|
102
|
-
return napi_build_version_tag + napi_build_version;
|
|
103
|
-
};
|
|
104
|
-
module.exports.get_napi_build_version_from_command_args = function(command_args) {
|
|
105
|
-
for (let i = 0; i < command_args.length; i++) {
|
|
106
|
-
const arg = command_args[i];
|
|
107
|
-
if (arg.indexOf(napi_build_version_tag) === 0) return parseInt(arg.substr(19), 10);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
module.exports.swap_build_dir_out = function(napi_build_version) {
|
|
111
|
-
if (napi_build_version) {
|
|
112
|
-
require_rimraf().sync(module.exports.get_build_dir(napi_build_version));
|
|
113
|
-
fs.renameSync("build", module.exports.get_build_dir(napi_build_version));
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
module.exports.swap_build_dir_in = function(napi_build_version) {
|
|
117
|
-
if (napi_build_version) {
|
|
118
|
-
require_rimraf().sync("build");
|
|
119
|
-
fs.renameSync(module.exports.get_build_dir(napi_build_version), "build");
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
module.exports.get_build_dir = function(napi_build_version) {
|
|
123
|
-
return "build-tmp-napi-v" + napi_build_version;
|
|
124
|
-
};
|
|
125
|
-
module.exports.get_best_napi_build_version = function(package_json, opts) {
|
|
126
|
-
let best_napi_build_version = 0;
|
|
127
|
-
const napi_build_versions = module.exports.get_napi_build_versions(package_json, opts);
|
|
128
|
-
if (napi_build_versions) {
|
|
129
|
-
const our_napi_version = module.exports.get_napi_version(opts ? opts.target : void 0);
|
|
130
|
-
napi_build_versions.forEach((napi_build_version) => {
|
|
131
|
-
if (napi_build_version > best_napi_build_version && napi_build_version <= our_napi_version) best_napi_build_version = napi_build_version;
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
return best_napi_build_version === 0 ? void 0 : best_napi_build_version;
|
|
135
|
-
};
|
|
136
|
-
module.exports.build_napi_only = function(package_json) {
|
|
137
|
-
return package_json.binary && package_json.binary.package_name && package_json.binary.package_name.indexOf("{node_napi_label}") === -1;
|
|
138
|
-
};
|
|
139
|
-
}));
|
|
140
|
-
//#endregion
|
|
141
|
-
export default require_napi();
|
|
142
|
-
export { require_napi };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js
|
|
3
|
-
var require_s3_setup = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = exports;
|
|
5
|
-
const url = __require("url");
|
|
6
|
-
const fs = __require("fs");
|
|
7
|
-
const path = __require("path");
|
|
8
|
-
module.exports.detect = function(opts, config) {
|
|
9
|
-
const to = opts.hosted_path;
|
|
10
|
-
const uri = url.parse(to);
|
|
11
|
-
config.prefix = !uri.pathname || uri.pathname === "/" ? "" : uri.pathname.replace("/", "");
|
|
12
|
-
if (opts.bucket && opts.region) {
|
|
13
|
-
config.bucket = opts.bucket;
|
|
14
|
-
config.region = opts.region;
|
|
15
|
-
config.endpoint = opts.host;
|
|
16
|
-
config.s3ForcePathStyle = opts.s3ForcePathStyle;
|
|
17
|
-
} else {
|
|
18
|
-
const parts = uri.hostname.split(".s3");
|
|
19
|
-
const bucket = parts[0];
|
|
20
|
-
if (!bucket) return;
|
|
21
|
-
if (!config.bucket) config.bucket = bucket;
|
|
22
|
-
if (!config.region) {
|
|
23
|
-
const region = parts[1].slice(1).split(".")[0];
|
|
24
|
-
if (region === "amazonaws") config.region = "us-east-1";
|
|
25
|
-
else config.region = region;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
module.exports.get_s3 = function(config) {
|
|
30
|
-
if (process.env.node_pre_gyp_mock_s3) {
|
|
31
|
-
const AWSMock = __require("mock-aws-s3");
|
|
32
|
-
const os = __require("os");
|
|
33
|
-
AWSMock.config.basePath = `${os.tmpdir()}/mock`;
|
|
34
|
-
const s3 = AWSMock.S3();
|
|
35
|
-
const wcb = (fn) => (err, ...args) => {
|
|
36
|
-
if (err && err.code === "ENOENT") err.code = "NotFound";
|
|
37
|
-
return fn(err, ...args);
|
|
38
|
-
};
|
|
39
|
-
return {
|
|
40
|
-
listObjects(params, callback) {
|
|
41
|
-
return s3.listObjects(params, wcb(callback));
|
|
42
|
-
},
|
|
43
|
-
headObject(params, callback) {
|
|
44
|
-
return s3.headObject(params, wcb(callback));
|
|
45
|
-
},
|
|
46
|
-
deleteObject(params, callback) {
|
|
47
|
-
return s3.deleteObject(params, wcb(callback));
|
|
48
|
-
},
|
|
49
|
-
putObject(params, callback) {
|
|
50
|
-
return s3.putObject(params, wcb(callback));
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
const AWS = __require("aws-sdk");
|
|
55
|
-
AWS.config.update(config);
|
|
56
|
-
const s3 = new AWS.S3();
|
|
57
|
-
return {
|
|
58
|
-
listObjects(params, callback) {
|
|
59
|
-
return s3.listObjects(params, callback);
|
|
60
|
-
},
|
|
61
|
-
headObject(params, callback) {
|
|
62
|
-
return s3.headObject(params, callback);
|
|
63
|
-
},
|
|
64
|
-
deleteObject(params, callback) {
|
|
65
|
-
return s3.deleteObject(params, callback);
|
|
66
|
-
},
|
|
67
|
-
putObject(params, callback) {
|
|
68
|
-
return s3.putObject(params, callback);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
module.exports.get_mockS3Http = function() {
|
|
73
|
-
let mock_s3 = false;
|
|
74
|
-
if (!process.env.node_pre_gyp_mock_s3) return () => mock_s3;
|
|
75
|
-
const nock = __require("nock");
|
|
76
|
-
const host = "https://mapbox-node-pre-gyp-public-testing-bucket.s3.us-east-1.amazonaws.com";
|
|
77
|
-
const mockDir = process.env.node_pre_gyp_mock_s3 + "/mapbox-node-pre-gyp-public-testing-bucket";
|
|
78
|
-
const mock_http = () => {
|
|
79
|
-
function get(uri, requestBody) {
|
|
80
|
-
const filepath = path.join(mockDir, uri.replace("%2B", "+"));
|
|
81
|
-
try {
|
|
82
|
-
fs.accessSync(filepath, fs.constants.R_OK);
|
|
83
|
-
} catch (e) {
|
|
84
|
-
return [404, "not found\n"];
|
|
85
|
-
}
|
|
86
|
-
return [200, fs.createReadStream(filepath)];
|
|
87
|
-
}
|
|
88
|
-
return nock(host).persist().get(() => mock_s3).reply(get);
|
|
89
|
-
};
|
|
90
|
-
mock_http(nock, host, mockDir);
|
|
91
|
-
const mockS3Http = (action) => {
|
|
92
|
-
const previous = mock_s3;
|
|
93
|
-
if (action === "off") mock_s3 = false;
|
|
94
|
-
else if (action === "on") mock_s3 = true;
|
|
95
|
-
else if (action !== "get") throw new Error(`illegal action for setMockHttp ${action}`);
|
|
96
|
-
return previous;
|
|
97
|
-
};
|
|
98
|
-
return mockS3Http;
|
|
99
|
-
};
|
|
100
|
-
}));
|
|
101
|
-
//#endregion
|
|
102
|
-
export default require_s3_setup();
|
|
103
|
-
export { require_s3_setup };
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_napi } from "./napi.js";
|
|
3
|
-
import { require_semver } from "../../../../../../semver@7.7.4/node_modules/semver/index.js";
|
|
4
|
-
import { require_detect_libc } from "../../../../../../detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js";
|
|
5
|
-
import { require_abi_crosswalk } from "./abi_crosswalk.js";
|
|
6
|
-
//#region node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js
|
|
7
|
-
var require_versioning = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8
|
-
module.exports = exports;
|
|
9
|
-
const path = __require("path");
|
|
10
|
-
const semver = require_semver();
|
|
11
|
-
const url = __require("url");
|
|
12
|
-
const detect_libc = require_detect_libc();
|
|
13
|
-
const napi = require_napi();
|
|
14
|
-
let abi_crosswalk;
|
|
15
|
-
if (process.env.NODE_PRE_GYP_ABI_CROSSWALK) abi_crosswalk = __require(process.env.NODE_PRE_GYP_ABI_CROSSWALK);
|
|
16
|
-
else abi_crosswalk = require_abi_crosswalk();
|
|
17
|
-
const major_versions = {};
|
|
18
|
-
Object.keys(abi_crosswalk).forEach((v) => {
|
|
19
|
-
const major = v.split(".")[0];
|
|
20
|
-
if (!major_versions[major]) major_versions[major] = v;
|
|
21
|
-
});
|
|
22
|
-
function get_electron_abi(runtime, target_version) {
|
|
23
|
-
if (!runtime) throw new Error("get_electron_abi requires valid runtime arg");
|
|
24
|
-
if (typeof target_version === "undefined") throw new Error("Empty target version is not supported if electron is the target.");
|
|
25
|
-
const sem_ver = semver.parse(target_version);
|
|
26
|
-
return runtime + "-v" + sem_ver.major + "." + sem_ver.minor;
|
|
27
|
-
}
|
|
28
|
-
module.exports.get_electron_abi = get_electron_abi;
|
|
29
|
-
function get_node_webkit_abi(runtime, target_version) {
|
|
30
|
-
if (!runtime) throw new Error("get_node_webkit_abi requires valid runtime arg");
|
|
31
|
-
if (typeof target_version === "undefined") throw new Error("Empty target version is not supported if node-webkit is the target.");
|
|
32
|
-
return runtime + "-v" + target_version;
|
|
33
|
-
}
|
|
34
|
-
module.exports.get_node_webkit_abi = get_node_webkit_abi;
|
|
35
|
-
function get_node_abi(runtime, versions) {
|
|
36
|
-
if (!runtime) throw new Error("get_node_abi requires valid runtime arg");
|
|
37
|
-
if (!versions) throw new Error("get_node_abi requires valid process.versions object");
|
|
38
|
-
const sem_ver = semver.parse(versions.node);
|
|
39
|
-
if (sem_ver.major === 0 && sem_ver.minor % 2) return runtime + "-v" + versions.node;
|
|
40
|
-
else return versions.modules ? runtime + "-v" + +versions.modules : "v8-" + versions.v8.split(".").slice(0, 2).join(".");
|
|
41
|
-
}
|
|
42
|
-
module.exports.get_node_abi = get_node_abi;
|
|
43
|
-
function get_runtime_abi(runtime, target_version) {
|
|
44
|
-
if (!runtime) throw new Error("get_runtime_abi requires valid runtime arg");
|
|
45
|
-
if (runtime === "node-webkit") return get_node_webkit_abi(runtime, target_version || process.versions["node-webkit"]);
|
|
46
|
-
else if (runtime === "electron") return get_electron_abi(runtime, target_version || process.versions.electron);
|
|
47
|
-
else {
|
|
48
|
-
if (runtime !== "node") throw new Error("Unknown Runtime: '" + runtime + "'");
|
|
49
|
-
if (!target_version) return get_node_abi(runtime, process.versions);
|
|
50
|
-
else {
|
|
51
|
-
let cross_obj;
|
|
52
|
-
if (abi_crosswalk[target_version]) cross_obj = abi_crosswalk[target_version];
|
|
53
|
-
else {
|
|
54
|
-
const target_parts = target_version.split(".").map((i) => {
|
|
55
|
-
return +i;
|
|
56
|
-
});
|
|
57
|
-
if (target_parts.length !== 3) throw new Error("Unknown target version: " + target_version);
|
|
58
|
-
const major = target_parts[0];
|
|
59
|
-
let minor = target_parts[1];
|
|
60
|
-
let patch = target_parts[2];
|
|
61
|
-
if (major === 1) while (true) {
|
|
62
|
-
if (minor > 0) --minor;
|
|
63
|
-
if (patch > 0) --patch;
|
|
64
|
-
const new_iojs_target = "" + major + "." + minor + "." + patch;
|
|
65
|
-
if (abi_crosswalk[new_iojs_target]) {
|
|
66
|
-
cross_obj = abi_crosswalk[new_iojs_target];
|
|
67
|
-
console.log("Warning: node-pre-gyp could not find exact match for " + target_version);
|
|
68
|
-
console.log("Warning: but node-pre-gyp successfully choose " + new_iojs_target + " as ABI compatible target");
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
if (minor === 0 && patch === 0) break;
|
|
72
|
-
}
|
|
73
|
-
else if (major >= 2) {
|
|
74
|
-
if (major_versions[major]) {
|
|
75
|
-
cross_obj = abi_crosswalk[major_versions[major]];
|
|
76
|
-
console.log("Warning: node-pre-gyp could not find exact match for " + target_version);
|
|
77
|
-
console.log("Warning: but node-pre-gyp successfully choose " + major_versions[major] + " as ABI compatible target");
|
|
78
|
-
}
|
|
79
|
-
} else if (major === 0) {
|
|
80
|
-
if (target_parts[1] % 2 === 0) while (--patch > 0) {
|
|
81
|
-
const new_node_target = "" + major + "." + minor + "." + patch;
|
|
82
|
-
if (abi_crosswalk[new_node_target]) {
|
|
83
|
-
cross_obj = abi_crosswalk[new_node_target];
|
|
84
|
-
console.log("Warning: node-pre-gyp could not find exact match for " + target_version);
|
|
85
|
-
console.log("Warning: but node-pre-gyp successfully choose " + new_node_target + " as ABI compatible target");
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (!cross_obj) throw new Error("Unsupported target version: " + target_version);
|
|
92
|
-
return get_node_abi(runtime, {
|
|
93
|
-
node: target_version,
|
|
94
|
-
v8: cross_obj.v8 + ".0",
|
|
95
|
-
modules: cross_obj.node_abi > 1 ? cross_obj.node_abi : void 0
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
module.exports.get_runtime_abi = get_runtime_abi;
|
|
101
|
-
const required_parameters = [
|
|
102
|
-
"module_name",
|
|
103
|
-
"module_path",
|
|
104
|
-
"host"
|
|
105
|
-
];
|
|
106
|
-
function validate_config(package_json, opts) {
|
|
107
|
-
const msg = package_json.name + " package.json is not node-pre-gyp ready:\n";
|
|
108
|
-
const missing = [];
|
|
109
|
-
if (!package_json.main) missing.push("main");
|
|
110
|
-
if (!package_json.version) missing.push("version");
|
|
111
|
-
if (!package_json.name) missing.push("name");
|
|
112
|
-
if (!package_json.binary) missing.push("binary");
|
|
113
|
-
const o = package_json.binary;
|
|
114
|
-
if (o) required_parameters.forEach((p) => {
|
|
115
|
-
if (!o[p] || typeof o[p] !== "string") missing.push("binary." + p);
|
|
116
|
-
});
|
|
117
|
-
if (missing.length >= 1) throw new Error(msg + "package.json must declare these properties: \n" + missing.join("\n"));
|
|
118
|
-
if (o) {
|
|
119
|
-
const protocol = url.parse(o.host).protocol;
|
|
120
|
-
if (protocol === "http:") throw new Error("'host' protocol (" + protocol + ") is invalid - only 'https:' is accepted");
|
|
121
|
-
}
|
|
122
|
-
napi.validate_package_json(package_json, opts);
|
|
123
|
-
}
|
|
124
|
-
module.exports.validate_config = validate_config;
|
|
125
|
-
function eval_template(template, opts) {
|
|
126
|
-
Object.keys(opts).forEach((key) => {
|
|
127
|
-
const pattern = "{" + key + "}";
|
|
128
|
-
while (template.indexOf(pattern) > -1) template = template.replace(pattern, opts[key]);
|
|
129
|
-
});
|
|
130
|
-
return template;
|
|
131
|
-
}
|
|
132
|
-
function fix_slashes(pathname) {
|
|
133
|
-
if (pathname.slice(-1) !== "/") return pathname + "/";
|
|
134
|
-
return pathname;
|
|
135
|
-
}
|
|
136
|
-
function drop_double_slashes(pathname) {
|
|
137
|
-
return pathname.replace(/\/\//g, "/");
|
|
138
|
-
}
|
|
139
|
-
function get_process_runtime(versions) {
|
|
140
|
-
let runtime = "node";
|
|
141
|
-
if (versions["node-webkit"]) runtime = "node-webkit";
|
|
142
|
-
else if (versions.electron) runtime = "electron";
|
|
143
|
-
return runtime;
|
|
144
|
-
}
|
|
145
|
-
module.exports.get_process_runtime = get_process_runtime;
|
|
146
|
-
const default_package_name = "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz";
|
|
147
|
-
const default_remote_path = "";
|
|
148
|
-
module.exports.evaluate = function(package_json, options, napi_build_version) {
|
|
149
|
-
options = options || {};
|
|
150
|
-
validate_config(package_json, options);
|
|
151
|
-
const v = package_json.version;
|
|
152
|
-
const module_version = semver.parse(v);
|
|
153
|
-
const runtime = options.runtime || get_process_runtime(process.versions);
|
|
154
|
-
const opts = {
|
|
155
|
-
name: package_json.name,
|
|
156
|
-
configuration: options.debug ? "Debug" : "Release",
|
|
157
|
-
debug: options.debug,
|
|
158
|
-
module_name: package_json.binary.module_name,
|
|
159
|
-
version: module_version.version,
|
|
160
|
-
prerelease: module_version.prerelease.length ? module_version.prerelease.join(".") : "",
|
|
161
|
-
build: module_version.build.length ? module_version.build.join(".") : "",
|
|
162
|
-
major: module_version.major,
|
|
163
|
-
minor: module_version.minor,
|
|
164
|
-
patch: module_version.patch,
|
|
165
|
-
runtime,
|
|
166
|
-
node_abi: get_runtime_abi(runtime, options.target),
|
|
167
|
-
node_abi_napi: napi.get_napi_version(options.target) ? "napi" : get_runtime_abi(runtime, options.target),
|
|
168
|
-
napi_version: napi.get_napi_version(options.target),
|
|
169
|
-
napi_build_version: napi_build_version || "",
|
|
170
|
-
node_napi_label: napi_build_version ? "napi-v" + napi_build_version : get_runtime_abi(runtime, options.target),
|
|
171
|
-
target: options.target || "",
|
|
172
|
-
platform: options.target_platform || process.platform,
|
|
173
|
-
target_platform: options.target_platform || process.platform,
|
|
174
|
-
arch: options.target_arch || process.arch,
|
|
175
|
-
target_arch: options.target_arch || process.arch,
|
|
176
|
-
libc: options.target_libc || detect_libc.familySync() || "unknown",
|
|
177
|
-
module_main: package_json.main,
|
|
178
|
-
toolset: options.toolset || "",
|
|
179
|
-
bucket: package_json.binary.bucket,
|
|
180
|
-
region: package_json.binary.region,
|
|
181
|
-
s3ForcePathStyle: package_json.binary.s3ForcePathStyle || false
|
|
182
|
-
};
|
|
183
|
-
const validModuleName = opts.module_name.replace("-", "_");
|
|
184
|
-
opts.host = fix_slashes(eval_template(process.env["npm_config_" + validModuleName + "_binary_host_mirror"] || package_json.binary.host, opts));
|
|
185
|
-
opts.module_path = eval_template(package_json.binary.module_path, opts);
|
|
186
|
-
if (options.module_root) opts.module_path = path.join(options.module_root, opts.module_path);
|
|
187
|
-
else opts.module_path = path.resolve(opts.module_path);
|
|
188
|
-
opts.module = path.join(opts.module_path, opts.module_name + ".node");
|
|
189
|
-
opts.remote_path = package_json.binary.remote_path ? drop_double_slashes(fix_slashes(eval_template(package_json.binary.remote_path, opts))) : default_remote_path;
|
|
190
|
-
opts.package_name = eval_template(package_json.binary.package_name ? package_json.binary.package_name : default_package_name, opts);
|
|
191
|
-
opts.staged_tarball = path.join("build/stage", opts.remote_path, opts.package_name);
|
|
192
|
-
opts.hosted_path = url.resolve(opts.host, opts.remote_path);
|
|
193
|
-
opts.hosted_tarball = url.resolve(opts.hosted_path, opts.package_name);
|
|
194
|
-
return opts;
|
|
195
|
-
};
|
|
196
|
-
}));
|
|
197
|
-
//#endregion
|
|
198
|
-
export default require_versioning();
|
|
199
|
-
export { require_versioning };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/package.json
|
|
3
|
-
var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = {
|
|
5
|
-
"name": "@mapbox/node-pre-gyp",
|
|
6
|
-
"description": "Node.js native addon binary install tool",
|
|
7
|
-
"version": "1.0.11",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"native",
|
|
10
|
-
"addon",
|
|
11
|
-
"module",
|
|
12
|
-
"c",
|
|
13
|
-
"c++",
|
|
14
|
-
"bindings",
|
|
15
|
-
"binary"
|
|
16
|
-
],
|
|
17
|
-
"license": "BSD-3-Clause",
|
|
18
|
-
"author": "Dane Springmeyer <dane@mapbox.com>",
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git://github.com/mapbox/node-pre-gyp.git"
|
|
22
|
-
},
|
|
23
|
-
"bin": "./bin/node-pre-gyp",
|
|
24
|
-
"main": "./lib/node-pre-gyp.js",
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"detect-libc": "^2.0.0",
|
|
27
|
-
"https-proxy-agent": "^5.0.0",
|
|
28
|
-
"make-dir": "^3.1.0",
|
|
29
|
-
"node-fetch": "^2.6.7",
|
|
30
|
-
"nopt": "^5.0.0",
|
|
31
|
-
"npmlog": "^5.0.1",
|
|
32
|
-
"rimraf": "^3.0.2",
|
|
33
|
-
"semver": "^7.3.5",
|
|
34
|
-
"tar": "^6.1.11"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@mapbox/cloudfriend": "^5.1.0",
|
|
38
|
-
"@mapbox/eslint-config-mapbox": "^3.0.0",
|
|
39
|
-
"aws-sdk": "^2.1087.0",
|
|
40
|
-
"codecov": "^3.8.3",
|
|
41
|
-
"eslint": "^7.32.0",
|
|
42
|
-
"eslint-plugin-node": "^11.1.0",
|
|
43
|
-
"mock-aws-s3": "^4.0.2",
|
|
44
|
-
"nock": "^12.0.3",
|
|
45
|
-
"node-addon-api": "^4.3.0",
|
|
46
|
-
"nyc": "^15.1.0",
|
|
47
|
-
"tape": "^5.5.2",
|
|
48
|
-
"tar-fs": "^2.1.1"
|
|
49
|
-
},
|
|
50
|
-
"nyc": {
|
|
51
|
-
"all": true,
|
|
52
|
-
"skip-full": false,
|
|
53
|
-
"exclude": ["test/**"]
|
|
54
|
-
},
|
|
55
|
-
"scripts": {
|
|
56
|
-
"coverage": "nyc --all --include index.js --include lib/ npm test",
|
|
57
|
-
"upload-coverage": "nyc report --reporter json && codecov --clear --flags=unit --file=./coverage/coverage-final.json",
|
|
58
|
-
"lint": "eslint bin/node-pre-gyp lib/*js lib/util/*js test/*js scripts/*js",
|
|
59
|
-
"fix": "npm run lint -- --fix",
|
|
60
|
-
"update-crosswalk": "node scripts/abi_crosswalk.js",
|
|
61
|
-
"test": "tape test/*test.js"
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}));
|
|
65
|
-
//#endregion
|
|
66
|
-
export default require_package();
|
|
67
|
-
export { require_package };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/abbrev@1.1.1/node_modules/abbrev/abbrev.js
|
|
3
|
-
var require_abbrev = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = exports = abbrev.abbrev = abbrev;
|
|
5
|
-
abbrev.monkeyPatch = monkeyPatch;
|
|
6
|
-
function monkeyPatch() {
|
|
7
|
-
Object.defineProperty(Array.prototype, "abbrev", {
|
|
8
|
-
value: function() {
|
|
9
|
-
return abbrev(this);
|
|
10
|
-
},
|
|
11
|
-
enumerable: false,
|
|
12
|
-
configurable: true,
|
|
13
|
-
writable: true
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(Object.prototype, "abbrev", {
|
|
16
|
-
value: function() {
|
|
17
|
-
return abbrev(Object.keys(this));
|
|
18
|
-
},
|
|
19
|
-
enumerable: false,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function abbrev(list) {
|
|
25
|
-
if (arguments.length !== 1 || !Array.isArray(list)) list = Array.prototype.slice.call(arguments, 0);
|
|
26
|
-
for (var i = 0, l = list.length, args = []; i < l; i++) args[i] = typeof list[i] === "string" ? list[i] : String(list[i]);
|
|
27
|
-
args = args.sort(lexSort);
|
|
28
|
-
var abbrevs = {}, prev = "";
|
|
29
|
-
for (var i = 0, l = args.length; i < l; i++) {
|
|
30
|
-
var current = args[i], next = args[i + 1] || "", nextMatches = true, prevMatches = true;
|
|
31
|
-
if (current === next) continue;
|
|
32
|
-
for (var j = 0, cl = current.length; j < cl; j++) {
|
|
33
|
-
var curChar = current.charAt(j);
|
|
34
|
-
nextMatches = nextMatches && curChar === next.charAt(j);
|
|
35
|
-
prevMatches = prevMatches && curChar === prev.charAt(j);
|
|
36
|
-
if (!nextMatches && !prevMatches) {
|
|
37
|
-
j++;
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
prev = current;
|
|
42
|
-
if (j === cl) {
|
|
43
|
-
abbrevs[current] = current;
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
for (var a = current.substr(0, j); j <= cl; j++) {
|
|
47
|
-
abbrevs[a] = current;
|
|
48
|
-
a += current.charAt(j);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return abbrevs;
|
|
52
|
-
}
|
|
53
|
-
function lexSort(a, b) {
|
|
54
|
-
return a === b ? 0 : a > b ? 1 : -1;
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
57
|
-
//#endregion
|
|
58
|
-
export default require_abbrev();
|
|
59
|
-
export { require_abbrev };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
|
|
3
|
-
var require_ansi_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = ({ onlyFirst = false } = {}) => {
|
|
5
|
-
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
|
|
6
|
-
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
7
|
-
};
|
|
8
|
-
}));
|
|
9
|
-
//#endregion
|
|
10
|
-
export default require_ansi_regex();
|
|
11
|
-
export { require_ansi_regex };
|