@proteinjs/reflection-build 1.4.0 → 1.4.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/test/examples/source-repository/a/generated/index.js +1 -1
- package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
- package/dist/test/examples/source-repository/b/generated/index.js +1 -1
- package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
- package/package.json +4 -5
- package/test/examples/source-repository/a/dist/generated/index.js +1 -1
- package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
- package/test/examples/source-repository/a/generated/index.ts +33 -38
- package/test/examples/source-repository/a/node_modules/.package-lock.json +63 -6
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.eslintrc.js +20 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierignore +4 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierrc +8 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/CHANGELOG.md +58 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.d.ts +5 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js +18 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js.map +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +19 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +555 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +3 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js +5 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +45 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +176 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +11 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +9 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +13 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +19 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.d.ts +221 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js +234 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js.map +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/index.ts +5 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/jest.config.js +9 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/package.json +42 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +702 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/Loadable.ts +2 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepository.ts +250 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +15 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +14 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/types.ts +236 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/tsconfig.json +19 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/CHANGELOG.md +44 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/Fs.d.ts +1 -0
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/Fs.js +52 -17
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/Fs.js.map +1 -1
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.d.ts +4 -4
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js +8 -20
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js.map +1 -1
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/package.json +2 -2
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/src/Fs.ts +47 -18
- package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/src/PackageUtil.ts +4 -8
- package/test/examples/source-repository/a/node_modules/bindings/LICENSE.md +22 -0
- package/test/examples/source-repository/a/node_modules/bindings/README.md +98 -0
- package/test/examples/source-repository/a/node_modules/bindings/bindings.js +221 -0
- package/test/examples/source-repository/a/node_modules/bindings/package.json +28 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/.travis.yml +30 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/History.md +21 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/LICENSE +20 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/README.md +74 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.d.ts +2 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.js +66 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/package.json +32 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/test.js +24 -0
- package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/tests.json +13 -0
- package/test/examples/source-repository/a/node_modules/fsevents/LICENSE +22 -0
- package/test/examples/source-repository/a/node_modules/fsevents/README.md +89 -0
- package/test/examples/source-repository/a/node_modules/fsevents/fsevents.d.ts +46 -0
- package/test/examples/source-repository/a/node_modules/fsevents/fsevents.js +83 -0
- package/test/examples/source-repository/a/node_modules/fsevents/fsevents.node +0 -0
- package/test/examples/source-repository/a/node_modules/fsevents/package.json +62 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +103 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
- package/{LICENSE → test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/LICENSE} +6 -5
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/Readme.md +78 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +21 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +53 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +352 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +79 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +6 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +191 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +766 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +88 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +106 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/install.js +13 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/package.json +34 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +43 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +110 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +44 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +27 -0
- package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +71 -0
- package/test/examples/source-repository/a/node_modules/nan/CHANGELOG.md +557 -0
- package/test/examples/source-repository/a/node_modules/nan/CMakeLists.txt +138 -0
- package/test/examples/source-repository/a/node_modules/nan/LICENSE.md +9 -0
- package/test/examples/source-repository/a/node_modules/nan/README.md +456 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/asyncworker.md +146 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/buffers.md +54 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/callback.md +76 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/converters.md +41 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/errors.md +226 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/json.md +62 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/maybe_types.md +583 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/methods.md +672 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/new.md +147 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/node_misc.md +123 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/object_wrappers.md +263 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/persistent.md +296 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/scopes.md +73 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/script.md +58 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/string_bytes.md +62 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/v8_internals.md +199 -0
- package/test/examples/source-repository/a/node_modules/nan/doc/v8_misc.md +85 -0
- package/test/examples/source-repository/a/node_modules/nan/include_dirs.js +1 -0
- package/test/examples/source-repository/a/node_modules/nan/nan.h +2958 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_callbacks.h +92 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_12_inl.h +520 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_converters.h +72 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_converters_43_inl.h +68 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_define_own_property_helper.h +29 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_implementation_12_inl.h +430 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_json.h +166 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_maybe_43_inl.h +356 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_new.h +340 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_object_wrap.h +156 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_persistent_12_inl.h +132 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_private.h +73 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_scriptorigin.h +76 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_string_bytes.h +305 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_typedarray_contents.h +96 -0
- package/test/examples/source-repository/a/node_modules/nan/nan_weak.h +437 -0
- package/test/examples/source-repository/a/node_modules/nan/package.json +38 -0
- package/test/examples/source-repository/a/node_modules/nan/tools/1to2.js +412 -0
- package/test/examples/source-repository/a/node_modules/nan/tools/README.md +14 -0
- package/test/examples/source-repository/a/node_modules/nan/tools/package.json +19 -0
- package/test/examples/source-repository/a/package-lock.json +12 -8
- package/test/examples/source-repository/a/package.json +3 -3
- package/test/examples/source-repository/b/dist/generated/index.js +1 -1
- package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
- package/test/examples/source-repository/b/generated/index.ts +11 -10
- package/test/examples/source-repository/b/node_modules/.package-lock.json +61 -4
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.eslintrc.js +20 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierignore +4 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierrc +8 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/CHANGELOG.md +58 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.d.ts +5 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js +18 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js.map +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +19 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +555 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +3 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js +5 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +45 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +176 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +11 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +9 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +13 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +19 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.d.ts +221 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js +234 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js.map +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/index.ts +5 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/jest.config.js +9 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/package.json +42 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +702 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/Loadable.ts +2 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepository.ts +250 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +15 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +14 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/types.ts +236 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/tsconfig.json +19 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/CHANGELOG.md +44 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/Fs.d.ts +1 -0
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/Fs.js +52 -17
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/Fs.js.map +1 -1
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.d.ts +4 -4
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js +8 -20
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js.map +1 -1
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/package.json +2 -2
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/src/Fs.ts +47 -18
- package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/src/PackageUtil.ts +4 -8
- package/test/examples/source-repository/b/node_modules/bindings/LICENSE.md +22 -0
- package/test/examples/source-repository/b/node_modules/bindings/README.md +98 -0
- package/test/examples/source-repository/b/node_modules/bindings/bindings.js +221 -0
- package/test/examples/source-repository/b/node_modules/bindings/package.json +28 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/.travis.yml +30 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/History.md +21 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/LICENSE +20 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/README.md +74 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.d.ts +2 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.js +66 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/package.json +32 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/test.js +24 -0
- package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/tests.json +13 -0
- package/test/examples/source-repository/b/node_modules/fsevents/LICENSE +22 -0
- package/test/examples/source-repository/b/node_modules/fsevents/README.md +89 -0
- package/test/examples/source-repository/b/node_modules/fsevents/fsevents.d.ts +46 -0
- package/test/examples/source-repository/b/node_modules/fsevents/fsevents.js +83 -0
- package/test/examples/source-repository/b/node_modules/fsevents/fsevents.node +0 -0
- package/test/examples/source-repository/b/node_modules/fsevents/package.json +62 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +103 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/LICENSE +22 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/Readme.md +78 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +21 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +53 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +352 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +79 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +6 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +191 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +766 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +88 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +106 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/install.js +13 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/package.json +34 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +43 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +110 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +44 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +27 -0
- package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +71 -0
- package/test/examples/source-repository/b/node_modules/nan/CHANGELOG.md +557 -0
- package/test/examples/source-repository/b/node_modules/nan/CMakeLists.txt +138 -0
- package/test/examples/source-repository/b/node_modules/nan/LICENSE.md +9 -0
- package/test/examples/source-repository/b/node_modules/nan/README.md +456 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/asyncworker.md +146 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/buffers.md +54 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/callback.md +76 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/converters.md +41 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/errors.md +226 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/json.md +62 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/maybe_types.md +583 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/methods.md +672 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/new.md +147 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/node_misc.md +123 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/object_wrappers.md +263 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/persistent.md +296 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/scopes.md +73 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/script.md +58 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/string_bytes.md +62 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/v8_internals.md +199 -0
- package/test/examples/source-repository/b/node_modules/nan/doc/v8_misc.md +85 -0
- package/test/examples/source-repository/b/node_modules/nan/include_dirs.js +1 -0
- package/test/examples/source-repository/b/node_modules/nan/nan.h +2958 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_callbacks.h +92 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_12_inl.h +520 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_converters.h +72 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_converters_43_inl.h +68 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_define_own_property_helper.h +29 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_implementation_12_inl.h +430 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_json.h +166 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_maybe_43_inl.h +356 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_new.h +340 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_object_wrap.h +156 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_persistent_12_inl.h +132 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_private.h +73 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_scriptorigin.h +76 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_string_bytes.h +305 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_typedarray_contents.h +96 -0
- package/test/examples/source-repository/b/node_modules/nan/nan_weak.h +437 -0
- package/test/examples/source-repository/b/node_modules/nan/package.json +38 -0
- package/test/examples/source-repository/b/node_modules/nan/tools/1to2.js +412 -0
- package/test/examples/source-repository/b/node_modules/nan/tools/README.md +14 -0
- package/test/examples/source-repository/b/node_modules/nan/tools/package.json +19 -0
- package/test/examples/source-repository/b/package-lock.json +10 -6
- package/test/examples/source-repository/b/package.json +3 -3
|
@@ -165,6 +165,41 @@ var Fs = /** @class */ (function () {
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
+
Fs.deleteFiles = function (paths) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
170
|
+
var _i, paths_1, p, fp, stat;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0:
|
|
174
|
+
_i = 0, paths_1 = paths;
|
|
175
|
+
_a.label = 1;
|
|
176
|
+
case 1:
|
|
177
|
+
if (!(_i < paths_1.length)) return [3 /*break*/, 6];
|
|
178
|
+
p = paths_1[_i];
|
|
179
|
+
fp = "".concat(p);
|
|
180
|
+
return [4 /*yield*/, fs_extra_1.default.exists(fp)];
|
|
181
|
+
case 2:
|
|
182
|
+
if (!(_a.sent())) {
|
|
183
|
+
throw new Error("File does not exist at path: ".concat(fp));
|
|
184
|
+
}
|
|
185
|
+
return [4 /*yield*/, fs_extra_1.default.lstat(fp)];
|
|
186
|
+
case 3:
|
|
187
|
+
stat = _a.sent();
|
|
188
|
+
if (stat.isDirectory()) {
|
|
189
|
+
throw new Error("Path is a directory, not a file: ".concat(fp));
|
|
190
|
+
}
|
|
191
|
+
return [4 /*yield*/, promises_1.default.unlink(fp)];
|
|
192
|
+
case 4:
|
|
193
|
+
_a.sent();
|
|
194
|
+
_a.label = 5;
|
|
195
|
+
case 5:
|
|
196
|
+
_i++;
|
|
197
|
+
return [3 /*break*/, 1];
|
|
198
|
+
case 6: return [2 /*return*/];
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
};
|
|
168
203
|
/** Produces a join only if the relative path does not escape the base path */
|
|
169
204
|
Fs.baseContainedJoin = function (basePath, relativePath) {
|
|
170
205
|
if (relativePath.includes('..')) {
|
|
@@ -306,7 +341,7 @@ var Fs = /** @class */ (function () {
|
|
|
306
341
|
*/
|
|
307
342
|
Fs.grep = function (params) {
|
|
308
343
|
return __awaiter(this, void 0, void 0, function () {
|
|
309
|
-
var _a, pattern, dir, maxResults, maxColumns, cwd, args, shEscape, cols, grepCmd, pipeline, res, res
|
|
344
|
+
var _a, pattern, dir, maxResults, maxColumns, cwd, args, shEscape, cols, grepCmd, pipeline, res, res;
|
|
310
345
|
return __generator(this, function (_b) {
|
|
311
346
|
switch (_b.label) {
|
|
312
347
|
case 0:
|
|
@@ -328,6 +363,7 @@ var Fs = /** @class */ (function () {
|
|
|
328
363
|
'--exclude-dir=generated',
|
|
329
364
|
'--exclude-dir=protein',
|
|
330
365
|
'--exclude=CHANGELOG.md',
|
|
366
|
+
'--exclude=package-lock.json',
|
|
331
367
|
];
|
|
332
368
|
if (typeof maxResults === 'number' && maxResults > 0) {
|
|
333
369
|
args.push('-m', String(maxResults));
|
|
@@ -336,28 +372,27 @@ var Fs = /** @class */ (function () {
|
|
|
336
372
|
args.push('-e', pattern, '.');
|
|
337
373
|
shEscape = function (s) { return "'".concat(String(s).replace(/'/g, "'\\''"), "'"); };
|
|
338
374
|
cols = typeof maxColumns === 'number' ? maxColumns : 500;
|
|
339
|
-
|
|
340
|
-
case 1:
|
|
341
|
-
_b.trys.push([1, 6, , 7]);
|
|
342
|
-
if (!(cols > 0)) return [3 /*break*/, 3];
|
|
375
|
+
if (!(cols > 0)) return [3 /*break*/, 2];
|
|
343
376
|
grepCmd = __spreadArray(['grep'], args, true).map(shEscape).join(' ');
|
|
344
377
|
pipeline = "set -o pipefail; ".concat(grepCmd, " | cut -c1-").concat(cols);
|
|
345
|
-
return [4 /*yield*/, (0, cmd_1.cmd)('bash', ['-lc', pipeline], { cwd: cwd }
|
|
346
|
-
|
|
378
|
+
return [4 /*yield*/, (0, cmd_1.cmd)('bash', ['-lc', pipeline], { cwd: cwd }, {
|
|
379
|
+
omitLogs: {
|
|
380
|
+
stdout: { omit: true },
|
|
381
|
+
stderr: { omit: true },
|
|
382
|
+
},
|
|
383
|
+
})];
|
|
384
|
+
case 1:
|
|
347
385
|
res = _b.sent();
|
|
348
386
|
return [2 /*return*/, res]; // { code: 0, stdout, stderr: '' } on success
|
|
349
|
-
case
|
|
350
|
-
|
|
387
|
+
case 2: return [4 /*yield*/, (0, cmd_1.cmd)('grep', args, { cwd: cwd }, {
|
|
388
|
+
omitLogs: {
|
|
389
|
+
stdout: { omit: true },
|
|
390
|
+
stderr: { omit: true },
|
|
391
|
+
},
|
|
392
|
+
})];
|
|
393
|
+
case 3:
|
|
351
394
|
res = _b.sent();
|
|
352
395
|
return [2 /*return*/, res];
|
|
353
|
-
case 5: return [3 /*break*/, 7];
|
|
354
|
-
case 6:
|
|
355
|
-
e_1 = _b.sent();
|
|
356
|
-
code = typeof (e_1 === null || e_1 === void 0 ? void 0 : e_1.code) === 'number' ? e_1.code : -1;
|
|
357
|
-
stdout = typeof (e_1 === null || e_1 === void 0 ? void 0 : e_1.stdout) === 'string' ? e_1.stdout : '';
|
|
358
|
-
stderr = typeof (e_1 === null || e_1 === void 0 ? void 0 : e_1.stderr) === 'string' ? e_1.stderr : String(e_1);
|
|
359
|
-
return [2 /*return*/, { code: code, stdout: stdout, stderr: stderr }];
|
|
360
|
-
case 7: return [2 /*return*/];
|
|
361
396
|
}
|
|
362
397
|
});
|
|
363
398
|
});
|
package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/Fs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fs.js","sourceRoot":"","sources":["../../src/Fs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAwB;AACxB,sDAA+B;AAC/B,yDAA6B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CACF,EAAA;;wBAVK,GAAG,GAAG,SAUX;wBACD,sBAAO,GAAG,EAAC;;;;KAEd;IACH,SAAC;AAAD,CAAC,AA5ND,IA4NC;AA5NY,gBAAE"}
|
|
@@ -32,20 +32,20 @@ export declare class PackageUtil {
|
|
|
32
32
|
* @param packages packages to install
|
|
33
33
|
* @param cwdPath directory to execute the command from
|
|
34
34
|
*/
|
|
35
|
-
static installPackages(packages: Package[], cwdPath?: string): Promise<
|
|
35
|
+
static installPackages(packages: Package[], cwdPath?: string): Promise<import("./cmd").CmdResult | undefined>;
|
|
36
36
|
/**
|
|
37
37
|
* Remove package dependencies
|
|
38
38
|
*
|
|
39
39
|
* @param packageNames
|
|
40
40
|
* @param cwdPath
|
|
41
41
|
*/
|
|
42
|
-
static uninstallPackages(packageNames: string[], cwdPath?: string): Promise<
|
|
43
|
-
static runPackageScript(name: string, cwdPath?: string): Promise<
|
|
42
|
+
static uninstallPackages(packageNames: string[], cwdPath?: string): Promise<import("./cmd").CmdResult>;
|
|
43
|
+
static runPackageScript(name: string, cwdPath?: string): Promise<import("./cmd").CmdResult>;
|
|
44
44
|
/**
|
|
45
45
|
* Install package in directory
|
|
46
46
|
* @param cwd directory of package
|
|
47
47
|
*/
|
|
48
|
-
static npmInstall(cwd: string): Promise<
|
|
48
|
+
static npmInstall(cwd: string): Promise<import("./cmd").CmdResult>;
|
|
49
49
|
/**
|
|
50
50
|
* Get typescript declarations for ts files by path
|
|
51
51
|
* @param params
|
package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js
CHANGED
|
@@ -88,7 +88,7 @@ var PackageUtil = /** @class */ (function () {
|
|
|
88
88
|
*/
|
|
89
89
|
PackageUtil.installPackages = function (packages, cwdPath) {
|
|
90
90
|
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
-
var _i, packages_1, backage, name_1, version, exactVersion, development, resolvedExactVersion, resolvedDevelopment, args,
|
|
91
|
+
var _i, packages_1, backage, name_1, version, exactVersion, development, resolvedExactVersion, resolvedDevelopment, args, envVars;
|
|
92
92
|
return __generator(this, function (_a) {
|
|
93
93
|
switch (_a.label) {
|
|
94
94
|
case 0:
|
|
@@ -105,15 +105,12 @@ var PackageUtil = /** @class */ (function () {
|
|
|
105
105
|
"".concat(resolvedDevelopment ? "-D" : resolvedExactVersion ? '--save-exact' : "-S"),
|
|
106
106
|
"".concat(name_1).concat(version ? "@".concat(version) : ''),
|
|
107
107
|
];
|
|
108
|
-
command = 'npm ' + args.join(' ');
|
|
109
108
|
envVars = void 0;
|
|
110
109
|
if (cwdPath) {
|
|
111
110
|
envVars = { cwd: cwdPath };
|
|
112
111
|
}
|
|
113
112
|
return [4 /*yield*/, (0, cmd_1.cmd)('npm', args, envVars)];
|
|
114
|
-
case 2:
|
|
115
|
-
_a.sent();
|
|
116
|
-
_a.label = 3;
|
|
113
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
117
114
|
case 3:
|
|
118
115
|
_i++;
|
|
119
116
|
return [3 /*break*/, 1];
|
|
@@ -130,39 +127,33 @@ var PackageUtil = /** @class */ (function () {
|
|
|
130
127
|
*/
|
|
131
128
|
PackageUtil.uninstallPackages = function (packageNames, cwdPath) {
|
|
132
129
|
return __awaiter(this, void 0, void 0, function () {
|
|
133
|
-
var packageNamesStr, args,
|
|
130
|
+
var packageNamesStr, args, envVars;
|
|
134
131
|
return __generator(this, function (_a) {
|
|
135
132
|
switch (_a.label) {
|
|
136
133
|
case 0:
|
|
137
134
|
packageNamesStr = packageNames.join(' ');
|
|
138
135
|
args = ['uninstall', packageNamesStr];
|
|
139
|
-
command = 'npm ' + args.join(' ');
|
|
140
136
|
if (cwdPath) {
|
|
141
137
|
envVars = { cwd: cwdPath };
|
|
142
138
|
}
|
|
143
139
|
return [4 /*yield*/, (0, cmd_1.cmd)('npm', args, envVars)];
|
|
144
|
-
case 1:
|
|
145
|
-
_a.sent();
|
|
146
|
-
return [2 /*return*/];
|
|
140
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
147
141
|
}
|
|
148
142
|
});
|
|
149
143
|
});
|
|
150
144
|
};
|
|
151
145
|
PackageUtil.runPackageScript = function (name, cwdPath) {
|
|
152
146
|
return __awaiter(this, void 0, void 0, function () {
|
|
153
|
-
var args,
|
|
147
|
+
var args, envVars;
|
|
154
148
|
return __generator(this, function (_a) {
|
|
155
149
|
switch (_a.label) {
|
|
156
150
|
case 0:
|
|
157
151
|
args = ['run', name];
|
|
158
|
-
command = 'npm ' + args.join(' ');
|
|
159
152
|
if (cwdPath) {
|
|
160
153
|
envVars = { cwd: cwdPath };
|
|
161
154
|
}
|
|
162
155
|
return [4 /*yield*/, (0, cmd_1.cmd)('npm', args, envVars)];
|
|
163
|
-
case 1:
|
|
164
|
-
_a.sent();
|
|
165
|
-
return [2 /*return*/];
|
|
156
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
166
157
|
}
|
|
167
158
|
});
|
|
168
159
|
});
|
|
@@ -173,19 +164,16 @@ var PackageUtil = /** @class */ (function () {
|
|
|
173
164
|
*/
|
|
174
165
|
PackageUtil.npmInstall = function (cwd) {
|
|
175
166
|
return __awaiter(this, void 0, void 0, function () {
|
|
176
|
-
var args,
|
|
167
|
+
var args, envVars;
|
|
177
168
|
return __generator(this, function (_a) {
|
|
178
169
|
switch (_a.label) {
|
|
179
170
|
case 0:
|
|
180
171
|
args = ['i'];
|
|
181
|
-
command = 'npm ' + args.join(' ');
|
|
182
172
|
if (cwd) {
|
|
183
173
|
envVars = { cwd: cwd };
|
|
184
174
|
}
|
|
185
175
|
return [4 /*yield*/, (0, cmd_1.cmd)('npm', args, envVars)];
|
|
186
|
-
case 1:
|
|
187
|
-
_a.sent();
|
|
188
|
-
return [2 /*return*/];
|
|
176
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
189
177
|
}
|
|
190
178
|
});
|
|
191
179
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageUtil.js","sourceRoot":"","sources":["../../src/PackageUtil.ts"],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.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Util libs for node",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"jest": "^29.6.4",
|
|
43
43
|
"ts-jest": "^29.1.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "7fdb12bebc967129f00dda88f87f5100f079d93e"
|
|
46
46
|
}
|
|
@@ -68,6 +68,22 @@ export class Fs {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
static async deleteFiles(paths: string[]) {
|
|
72
|
+
for (const p of paths) {
|
|
73
|
+
const fp = `${p}`;
|
|
74
|
+
if (!(await fsExtra.exists(fp))) {
|
|
75
|
+
throw new Error(`File does not exist at path: ${fp}`);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const stat = await fsExtra.lstat(fp);
|
|
79
|
+
if (stat.isDirectory()) {
|
|
80
|
+
throw new Error(`Path is a directory, not a file: ${fp}`);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
await fs.unlink(fp);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
71
87
|
/** Produces a join only if the relative path does not escape the base path */
|
|
72
88
|
static baseContainedJoin(basePath: string, relativePath: string) {
|
|
73
89
|
if (relativePath.includes('..')) {
|
|
@@ -183,6 +199,7 @@ export class Fs {
|
|
|
183
199
|
'--exclude-dir=generated',
|
|
184
200
|
'--exclude-dir=protein',
|
|
185
201
|
'--exclude=CHANGELOG.md',
|
|
202
|
+
'--exclude=package-lock.json',
|
|
186
203
|
];
|
|
187
204
|
|
|
188
205
|
if (typeof maxResults === 'number' && maxResults > 0) {
|
|
@@ -197,24 +214,36 @@ export class Fs {
|
|
|
197
214
|
|
|
198
215
|
const cols = typeof maxColumns === 'number' ? maxColumns : 500;
|
|
199
216
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
if (cols > 0) {
|
|
218
|
+
// Truncate with cut; preserve grep's exit code using pipefail
|
|
219
|
+
const grepCmd = ['grep', ...args].map(shEscape).join(' ');
|
|
220
|
+
const pipeline = `set -o pipefail; ${grepCmd} | cut -c1-${cols}`;
|
|
221
|
+
const res = await cmd(
|
|
222
|
+
'bash',
|
|
223
|
+
['-lc', pipeline],
|
|
224
|
+
{ cwd },
|
|
225
|
+
{
|
|
226
|
+
omitLogs: {
|
|
227
|
+
stdout: { omit: true },
|
|
228
|
+
stderr: { omit: true },
|
|
229
|
+
},
|
|
230
|
+
}
|
|
231
|
+
);
|
|
232
|
+
return res; // { code: 0, stdout, stderr: '' } on success
|
|
233
|
+
} else {
|
|
234
|
+
// No truncation requested
|
|
235
|
+
const res = await cmd(
|
|
236
|
+
'grep',
|
|
237
|
+
args,
|
|
238
|
+
{ cwd },
|
|
239
|
+
{
|
|
240
|
+
omitLogs: {
|
|
241
|
+
stdout: { omit: true },
|
|
242
|
+
stderr: { omit: true },
|
|
243
|
+
},
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
return res;
|
|
218
247
|
}
|
|
219
248
|
}
|
|
220
249
|
}
|
package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/src/PackageUtil.ts
CHANGED
|
@@ -50,12 +50,11 @@ export class PackageUtil {
|
|
|
50
50
|
`${resolvedDevelopment ? `-D` : resolvedExactVersion ? '--save-exact' : `-S`}`,
|
|
51
51
|
`${name}${version ? `@${version}` : ''}`,
|
|
52
52
|
];
|
|
53
|
-
const command = 'npm ' + args.join(' ');
|
|
54
53
|
let envVars;
|
|
55
54
|
if (cwdPath) {
|
|
56
55
|
envVars = { cwd: cwdPath };
|
|
57
56
|
}
|
|
58
|
-
await cmd('npm', args, envVars);
|
|
57
|
+
return await cmd('npm', args, envVars);
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|
|
@@ -68,22 +67,20 @@ export class PackageUtil {
|
|
|
68
67
|
static async uninstallPackages(packageNames: string[], cwdPath?: string) {
|
|
69
68
|
const packageNamesStr = packageNames.join(' ');
|
|
70
69
|
const args = ['uninstall', packageNamesStr];
|
|
71
|
-
const command = 'npm ' + args.join(' ');
|
|
72
70
|
let envVars;
|
|
73
71
|
if (cwdPath) {
|
|
74
72
|
envVars = { cwd: cwdPath };
|
|
75
73
|
}
|
|
76
|
-
await cmd('npm', args, envVars);
|
|
74
|
+
return await cmd('npm', args, envVars);
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
static async runPackageScript(name: string, cwdPath?: string) {
|
|
80
78
|
const args = ['run', name];
|
|
81
|
-
const command = 'npm ' + args.join(' ');
|
|
82
79
|
let envVars;
|
|
83
80
|
if (cwdPath) {
|
|
84
81
|
envVars = { cwd: cwdPath };
|
|
85
82
|
}
|
|
86
|
-
await cmd('npm', args, envVars);
|
|
83
|
+
return await cmd('npm', args, envVars);
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
/**
|
|
@@ -92,12 +89,11 @@ export class PackageUtil {
|
|
|
92
89
|
*/
|
|
93
90
|
static async npmInstall(cwd: string) {
|
|
94
91
|
const args = ['i'];
|
|
95
|
-
const command = 'npm ' + args.join(' ');
|
|
96
92
|
let envVars;
|
|
97
93
|
if (cwd) {
|
|
98
94
|
envVars = { cwd: cwd };
|
|
99
95
|
}
|
|
100
|
-
await cmd('npm', args, envVars);
|
|
96
|
+
return await cmd('npm', args, envVars);
|
|
101
97
|
}
|
|
102
98
|
|
|
103
99
|
/**
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
node-bindings
|
|
2
|
+
=============
|
|
3
|
+
### Helper module for loading your native module's `.node` file
|
|
4
|
+
|
|
5
|
+
This is a helper module for authors of Node.js native addon modules.
|
|
6
|
+
It is basically the "swiss army knife" of `require()`ing your native module's
|
|
7
|
+
`.node` file.
|
|
8
|
+
|
|
9
|
+
Throughout the course of Node's native addon history, addons have ended up being
|
|
10
|
+
compiled in a variety of different places, depending on which build tool and which
|
|
11
|
+
version of node was used. To make matters worse, now the `gyp` build tool can
|
|
12
|
+
produce either a __Release__ or __Debug__ build, each being built into different
|
|
13
|
+
locations.
|
|
14
|
+
|
|
15
|
+
This module checks _all_ the possible locations that a native addon would be built
|
|
16
|
+
at, and returns the first one that loads successfully.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Installation
|
|
20
|
+
------------
|
|
21
|
+
|
|
22
|
+
Install with `npm`:
|
|
23
|
+
|
|
24
|
+
``` bash
|
|
25
|
+
$ npm install --save bindings
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or add it to the `"dependencies"` section of your `package.json` file.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Example
|
|
32
|
+
-------
|
|
33
|
+
|
|
34
|
+
`require()`ing the proper bindings file for the current node version, platform
|
|
35
|
+
and architecture is as simple as:
|
|
36
|
+
|
|
37
|
+
``` js
|
|
38
|
+
var bindings = require('bindings')('binding.node')
|
|
39
|
+
|
|
40
|
+
// Use your bindings defined in your C files
|
|
41
|
+
bindings.your_c_function()
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
Nice Error Output
|
|
46
|
+
-----------------
|
|
47
|
+
|
|
48
|
+
When the `.node` file could not be loaded, `node-bindings` throws an Error with
|
|
49
|
+
a nice error message telling you exactly what was tried. You can also check the
|
|
50
|
+
`err.tries` Array property.
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
Error: Could not load the bindings file. Tried:
|
|
54
|
+
→ /Users/nrajlich/ref/build/binding.node
|
|
55
|
+
→ /Users/nrajlich/ref/build/Debug/binding.node
|
|
56
|
+
→ /Users/nrajlich/ref/build/Release/binding.node
|
|
57
|
+
→ /Users/nrajlich/ref/out/Debug/binding.node
|
|
58
|
+
→ /Users/nrajlich/ref/Debug/binding.node
|
|
59
|
+
→ /Users/nrajlich/ref/out/Release/binding.node
|
|
60
|
+
→ /Users/nrajlich/ref/Release/binding.node
|
|
61
|
+
→ /Users/nrajlich/ref/build/default/binding.node
|
|
62
|
+
→ /Users/nrajlich/ref/compiled/0.8.2/darwin/x64/binding.node
|
|
63
|
+
at bindings (/Users/nrajlich/ref/node_modules/bindings/bindings.js:84:13)
|
|
64
|
+
at Object.<anonymous> (/Users/nrajlich/ref/lib/ref.js:5:47)
|
|
65
|
+
at Module._compile (module.js:449:26)
|
|
66
|
+
at Object.Module._extensions..js (module.js:467:10)
|
|
67
|
+
at Module.load (module.js:356:32)
|
|
68
|
+
at Function.Module._load (module.js:312:12)
|
|
69
|
+
...
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The searching for the `.node` file will originate from the first directory in which has a `package.json` file is found.
|
|
73
|
+
|
|
74
|
+
License
|
|
75
|
+
-------
|
|
76
|
+
|
|
77
|
+
(The MIT License)
|
|
78
|
+
|
|
79
|
+
Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>
|
|
80
|
+
|
|
81
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
82
|
+
a copy of this software and associated documentation files (the
|
|
83
|
+
'Software'), to deal in the Software without restriction, including
|
|
84
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
85
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
86
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
87
|
+
the following conditions:
|
|
88
|
+
|
|
89
|
+
The above copyright notice and this permission notice shall be
|
|
90
|
+
included in all copies or substantial portions of the Software.
|
|
91
|
+
|
|
92
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
93
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
94
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
95
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
96
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
97
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
98
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|