@dev-sergeev/datalab-kit 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +23 -5
- package/THIRD_PARTY_NOTICES.md +6 -2
- package/dist/extension.js +8 -1
- package/dist/recap.d.ts +2 -0
- package/dist/recap.js +31 -0
- package/docs/adr/0002-package-delivery.md +2 -0
- package/node_modules/@pi-plugins/elapsed/LICENSE +21 -0
- package/node_modules/@pi-plugins/elapsed/README.md +45 -0
- package/node_modules/@pi-plugins/elapsed/dist/index.d.mts +8 -0
- package/node_modules/@pi-plugins/elapsed/dist/index.d.mts.map +1 -0
- package/node_modules/@pi-plugins/elapsed/dist/index.mjs +47 -0
- package/node_modules/@pi-plugins/elapsed/dist/index.mjs.map +1 -0
- package/node_modules/@pi-plugins/elapsed/package.json +65 -0
- package/node_modules/@tifan/pi-recap/README.md +61 -0
- package/node_modules/@tifan/pi-recap/package.json +43 -0
- package/node_modules/@tifan/pi-recap/src/index.ts +584 -0
- package/node_modules/@tifan/pi-recap/src/model-picker.ts +233 -0
- package/node_modules/@tifan/pi-recap/src/models.ts +183 -0
- package/node_modules/@tifan/pi-recap/src/sanitize.ts +119 -0
- package/node_modules/@tifan/pi-recap/src/tui.ts +155 -0
- package/node_modules/@zigai/pi-extension-internals/README.md +24 -0
- package/node_modules/@zigai/pi-extension-internals/dist/editor-enhancer-registry.d.ts +21 -0
- package/node_modules/@zigai/pi-extension-internals/dist/editor-enhancer-registry.js +233 -0
- package/node_modules/@zigai/pi-extension-internals/dist/index.d.ts +6 -0
- package/node_modules/@zigai/pi-extension-internals/dist/index.js +3 -0
- package/node_modules/@zigai/pi-extension-internals/dist/linked-method-patch.d.ts +34 -0
- package/node_modules/@zigai/pi-extension-internals/dist/linked-method-patch.js +272 -0
- package/node_modules/@zigai/pi-extension-internals/dist/pi-internal-import.d.ts +11 -0
- package/node_modules/@zigai/pi-extension-internals/dist/pi-internal-import.js +139 -0
- package/node_modules/@zigai/pi-extension-internals/package.json +41 -0
- package/node_modules/@zigai/pi-extension-settings/LICENSE +21 -0
- package/node_modules/@zigai/pi-extension-settings/README.md +36 -0
- package/node_modules/@zigai/pi-extension-settings/dist/artifacts.d.ts +23 -0
- package/node_modules/@zigai/pi-extension-settings/dist/artifacts.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/artifacts.js +75 -0
- package/node_modules/@zigai/pi-extension-settings/dist/artifacts.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.d.ts +3 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.js +5 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli.d.ts +6 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli.js +87 -0
- package/node_modules/@zigai/pi-extension-settings/dist/cli.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.d.ts +2 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.js +2 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition.d.ts +159 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition.js +248 -0
- package/node_modules/@zigai/pi-extension-settings/dist/definition.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/file-system.d.ts +10 -0
- package/node_modules/@zigai/pi-extension-settings/dist/file-system.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/file-system.js +115 -0
- package/node_modules/@zigai/pi-extension-settings/dist/file-system.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/index.d.ts +2 -0
- package/node_modules/@zigai/pi-extension-settings/dist/index.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/index.js +2 -0
- package/node_modules/@zigai/pi-extension-settings/dist/index.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/json-value.d.ts +18 -0
- package/node_modules/@zigai/pi-extension-settings/dist/json-value.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/json-value.js +56 -0
- package/node_modules/@zigai/pi-extension-settings/dist/json-value.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/paths.d.ts +11 -0
- package/node_modules/@zigai/pi-extension-settings/dist/paths.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/paths.js +23 -0
- package/node_modules/@zigai/pi-extension-settings/dist/paths.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.d.ts +5 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.js +21 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi.d.ts +106 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi.js +122 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi.ts +2537 -0
- package/node_modules/@zigai/pi-extension-settings/dist/pi.ts.map +7 -0
- package/node_modules/@zigai/pi-extension-settings/dist/projects.d.ts +10 -0
- package/node_modules/@zigai/pi-extension-settings/dist/projects.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/projects.js +177 -0
- package/node_modules/@zigai/pi-extension-settings/dist/projects.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/runtime.d.ts +40 -0
- package/node_modules/@zigai/pi-extension-settings/dist/runtime.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/runtime.js +158 -0
- package/node_modules/@zigai/pi-extension-settings/dist/runtime.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/runtime.ts +158 -0
- package/node_modules/@zigai/pi-extension-settings/dist/runtime.ts.map +7 -0
- package/node_modules/@zigai/pi-extension-settings/dist/schema-document.d.ts +19 -0
- package/node_modules/@zigai/pi-extension-settings/dist/schema-document.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/schema-document.js +168 -0
- package/node_modules/@zigai/pi-extension-settings/dist/schema-document.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.d.ts +9 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.js +242 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.d.ts +59 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.js +98 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.d.ts +80 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.js +144 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.d.ts +5 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.js +30 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.d.ts +10 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.js +16 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.d.ts +54 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.js +202 -0
- package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.d.ts +5 -0
- package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.d.ts.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.js +9 -0
- package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.js.map +1 -0
- package/node_modules/@zigai/pi-extension-settings/docs/generation.md +71 -0
- package/node_modules/@zigai/pi-extension-settings/docs/manual-setup.md +98 -0
- package/node_modules/@zigai/pi-extension-settings/docs/runtime.md +100 -0
- package/node_modules/@zigai/pi-extension-settings/docs/ui-controls.md +31 -0
- package/node_modules/@zigai/pi-extension-settings/package.json +97 -0
- package/node_modules/@zigai/pi-mention-anything/README.md +113 -0
- package/node_modules/@zigai/pi-mention-anything/config.schema.json +313 -0
- package/node_modules/@zigai/pi-mention-anything/docs/command-protocol.md +106 -0
- package/node_modules/@zigai/pi-mention-anything/docs/providers.md +128 -0
- package/node_modules/@zigai/pi-mention-anything/examples/query-command.mjs +96 -0
- package/node_modules/@zigai/pi-mention-anything/examples/recursive-tree.ts +28 -0
- package/node_modules/@zigai/pi-mention-anything/examples/static.ts +28 -0
- package/node_modules/@zigai/pi-mention-anything/examples/tmux.ts +90 -0
- package/node_modules/@zigai/pi-mention-anything/examples/tree-settings.json +25 -0
- package/node_modules/@zigai/pi-mention-anything/package.json +58 -0
- package/node_modules/@zigai/pi-mention-anything/src/api.ts +75 -0
- package/node_modules/@zigai/pi-mention-anything/src/autocomplete.ts +231 -0
- package/node_modules/@zigai/pi-mention-anything/src/chain-autocomplete.ts +596 -0
- package/node_modules/@zigai/pi-mention-anything/src/chain-syntax.ts +345 -0
- package/node_modules/@zigai/pi-mention-anything/src/command-provider.ts +291 -0
- package/node_modules/@zigai/pi-mention-anything/src/configured-source.ts +66 -0
- package/node_modules/@zigai/pi-mention-anything/src/editor.ts +180 -0
- package/node_modules/@zigai/pi-mention-anything/src/expand-mentions.ts +162 -0
- package/node_modules/@zigai/pi-mention-anything/src/index.ts +54 -0
- package/node_modules/@zigai/pi-mention-anything/src/initial-suggestions.ts +190 -0
- package/node_modules/@zigai/pi-mention-anything/src/list-provider.ts +71 -0
- package/node_modules/@zigai/pi-mention-anything/src/mention-hub.ts +307 -0
- package/node_modules/@zigai/pi-mention-anything/src/mention-resolution.ts +374 -0
- package/node_modules/@zigai/pi-mention-anything/src/mention-syntax.ts +105 -0
- package/node_modules/@zigai/pi-mention-anything/src/register-mention.ts +89 -0
- package/node_modules/@zigai/pi-mention-anything/src/rendering.ts +53 -0
- package/node_modules/@zigai/pi-mention-anything/src/selected-items.ts +21 -0
- package/node_modules/@zigai/pi-mention-anything/src/selection-history.ts +135 -0
- package/node_modules/@zigai/pi-mention-anything/src/settings-input.ts +317 -0
- package/node_modules/@zigai/pi-mention-anything/src/settings.prevalidated.ts +57 -0
- package/node_modules/@zigai/pi-mention-anything/src/settings.ts +52 -0
- package/node_modules/@zigai/pi-mention-anything/src/source-contract.ts +174 -0
- package/node_modules/@zigai/pi-mention-anything/src/source-controller.ts +1070 -0
- package/node_modules/@zigai/pi-mention-anything/src/source-runtime.ts +99 -0
- package/node_modules/@zigai/pi-mention-skill/README.md +60 -0
- package/node_modules/@zigai/pi-mention-skill/config.schema.json +81 -0
- package/node_modules/@zigai/pi-mention-skill/package.json +56 -0
- package/node_modules/@zigai/pi-mention-skill/src/index.ts +60 -0
- package/node_modules/@zigai/pi-mention-skill/src/settings-input.ts +74 -0
- package/node_modules/@zigai/pi-mention-skill/src/settings.prevalidated.ts +18 -0
- package/node_modules/@zigai/pi-mention-skill/src/settings.ts +54 -0
- package/node_modules/@zigai/pi-mention-skill/src/skill-commands.ts +18 -0
- package/node_modules/@zigai/pi-mention-skill/src/skill-content.ts +60 -0
- package/node_modules/@zigai/pi-mention-skill/src/skill-provider.ts +105 -0
- package/node_modules/@zigai/pi-mention-skill/src/slash-skill-filter.ts +29 -0
- package/node_modules/argparse/LICENSE +21 -0
- package/node_modules/argparse/README.md +257 -0
- package/node_modules/argparse/index.js +3 -0
- package/node_modules/argparse/lib/action/append/constant.js +47 -0
- package/node_modules/argparse/lib/action/append.js +53 -0
- package/node_modules/argparse/lib/action/count.js +40 -0
- package/node_modules/argparse/lib/action/help.js +47 -0
- package/node_modules/argparse/lib/action/store/constant.js +43 -0
- package/node_modules/argparse/lib/action/store/false.js +27 -0
- package/node_modules/argparse/lib/action/store/true.js +26 -0
- package/node_modules/argparse/lib/action/store.js +50 -0
- package/node_modules/argparse/lib/action/subparsers.js +149 -0
- package/node_modules/argparse/lib/action/version.js +47 -0
- package/node_modules/argparse/lib/action.js +146 -0
- package/node_modules/argparse/lib/action_container.js +482 -0
- package/node_modules/argparse/lib/argparse.js +14 -0
- package/node_modules/argparse/lib/argument/error.js +50 -0
- package/node_modules/argparse/lib/argument/exclusive.js +54 -0
- package/node_modules/argparse/lib/argument/group.js +75 -0
- package/node_modules/argparse/lib/argument_parser.js +1161 -0
- package/node_modules/argparse/lib/const.js +21 -0
- package/node_modules/argparse/lib/help/added_formatters.js +87 -0
- package/node_modules/argparse/lib/help/formatter.js +795 -0
- package/node_modules/argparse/lib/namespace.js +76 -0
- package/node_modules/argparse/lib/utils.js +57 -0
- package/node_modules/argparse/package.json +34 -0
- package/node_modules/esprima/LICENSE.BSD +21 -0
- package/node_modules/esprima/README.md +46 -0
- package/node_modules/esprima/bin/esparse.js +139 -0
- package/node_modules/esprima/bin/esvalidate.js +236 -0
- package/node_modules/esprima/dist/esprima.js +6709 -0
- package/node_modules/esprima/package.json +112 -0
- package/node_modules/extend-shallow/LICENSE +21 -0
- package/node_modules/extend-shallow/README.md +61 -0
- package/node_modules/extend-shallow/index.js +33 -0
- package/node_modules/extend-shallow/package.json +56 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +53 -0
- package/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/gray-matter/LICENSE +21 -0
- package/node_modules/gray-matter/README.md +565 -0
- package/node_modules/gray-matter/gray-matter.d.ts +114 -0
- package/node_modules/gray-matter/index.js +228 -0
- package/node_modules/gray-matter/lib/defaults.js +18 -0
- package/node_modules/gray-matter/lib/engine.js +30 -0
- package/node_modules/gray-matter/lib/engines.js +54 -0
- package/node_modules/gray-matter/lib/excerpt.js +32 -0
- package/node_modules/gray-matter/lib/parse.js +13 -0
- package/node_modules/gray-matter/lib/stringify.js +56 -0
- package/node_modules/gray-matter/lib/to-file.js +43 -0
- package/node_modules/gray-matter/lib/utils.js +66 -0
- package/node_modules/gray-matter/package.json +127 -0
- package/node_modules/is-extendable/LICENSE +21 -0
- package/node_modules/is-extendable/README.md +72 -0
- package/node_modules/is-extendable/index.js +13 -0
- package/node_modules/is-extendable/package.json +51 -0
- package/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/js-yaml/README.md +302 -0
- package/node_modules/js-yaml/bin/js-yaml.js +132 -0
- package/node_modules/js-yaml/dist/js-yaml.js +4024 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/node_modules/js-yaml/index.js +7 -0
- package/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/node_modules/js-yaml/lib/js-yaml/loader.js +1679 -0
- package/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/node_modules/js-yaml/package.json +52 -0
- package/node_modules/kind-of/LICENSE +21 -0
- package/node_modules/kind-of/README.md +367 -0
- package/node_modules/kind-of/index.js +129 -0
- package/node_modules/kind-of/package.json +88 -0
- package/node_modules/pi-toggle-skills/README.md +213 -0
- package/node_modules/pi-toggle-skills/package.json +60 -0
- package/node_modules/pi-toggle-skills/src/index.ts +112 -0
- package/node_modules/pi-toggle-skills/src/skill-discovery.ts +258 -0
- package/node_modules/pi-toggle-skills/src/skill-selector.ts +435 -0
- package/node_modules/pi-toggle-skills/toggle-skills.ts +316 -0
- package/node_modules/pi-toggle-skills/vitest.config.ts +15 -0
- package/node_modules/proper-lockfile/LICENSE +21 -0
- package/node_modules/proper-lockfile/README.md +183 -0
- package/node_modules/proper-lockfile/index.js +40 -0
- package/node_modules/proper-lockfile/lib/adapter.js +85 -0
- package/node_modules/proper-lockfile/lib/lockfile.js +342 -0
- package/node_modules/proper-lockfile/lib/mtime-precision.js +55 -0
- package/node_modules/proper-lockfile/node_modules/retry/.npmignore +3 -0
- package/node_modules/proper-lockfile/node_modules/retry/.travis.yml +15 -0
- package/node_modules/proper-lockfile/node_modules/retry/License +21 -0
- package/node_modules/proper-lockfile/node_modules/retry/Makefile +18 -0
- package/node_modules/proper-lockfile/node_modules/retry/README.md +227 -0
- package/node_modules/proper-lockfile/node_modules/retry/equation.gif +0 -0
- package/node_modules/proper-lockfile/node_modules/retry/example/dns.js +31 -0
- package/node_modules/proper-lockfile/node_modules/retry/example/stop.js +40 -0
- package/node_modules/proper-lockfile/node_modules/retry/index.js +1 -0
- package/node_modules/proper-lockfile/node_modules/retry/lib/retry.js +100 -0
- package/node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js +158 -0
- package/node_modules/proper-lockfile/node_modules/retry/package.json +32 -0
- package/node_modules/proper-lockfile/node_modules/retry/test/common.js +10 -0
- package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-forever.js +24 -0
- package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-retry-operation.js +258 -0
- package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
- package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-timeouts.js +69 -0
- package/node_modules/proper-lockfile/package.json +71 -0
- package/node_modules/section-matter/LICENSE +21 -0
- package/node_modules/section-matter/README.md +236 -0
- package/node_modules/section-matter/index.js +136 -0
- package/node_modules/section-matter/package.json +55 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/sprintf-js/.npmignore +1 -0
- package/node_modules/sprintf-js/LICENSE +24 -0
- package/node_modules/sprintf-js/README.md +88 -0
- package/node_modules/sprintf-js/bower.json +14 -0
- package/node_modules/sprintf-js/demo/angular.html +20 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
- package/node_modules/sprintf-js/gruntfile.js +36 -0
- package/node_modules/sprintf-js/package.json +22 -0
- package/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
- package/node_modules/sprintf-js/src/sprintf.js +208 -0
- package/node_modules/sprintf-js/test/test.js +82 -0
- package/node_modules/strip-bom-string/LICENSE +21 -0
- package/node_modules/strip-bom-string/README.md +66 -0
- package/node_modules/strip-bom-string/index.js +15 -0
- package/node_modules/strip-bom-string/package.json +60 -0
- package/package.json +13 -4
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "esprima",
|
|
3
|
+
"description": "ECMAScript parsing infrastructure for multipurpose analysis",
|
|
4
|
+
"homepage": "http://esprima.org",
|
|
5
|
+
"main": "dist/esprima.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"esparse": "./bin/esparse.js",
|
|
8
|
+
"esvalidate": "./bin/esvalidate.js"
|
|
9
|
+
},
|
|
10
|
+
"version": "4.0.1",
|
|
11
|
+
"files": [
|
|
12
|
+
"bin",
|
|
13
|
+
"dist/esprima.js"
|
|
14
|
+
],
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=4"
|
|
17
|
+
},
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Ariya Hidayat",
|
|
20
|
+
"email": "ariya.hidayat@gmail.com"
|
|
21
|
+
},
|
|
22
|
+
"maintainers": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Ariya Hidayat",
|
|
25
|
+
"email": "ariya.hidayat@gmail.com",
|
|
26
|
+
"web": "http://ariya.ofilabs.com"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/jquery/esprima.git"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/jquery/esprima/issues"
|
|
35
|
+
},
|
|
36
|
+
"license": "BSD-2-Clause",
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"codecov.io": "~0.1.6",
|
|
39
|
+
"escomplex-js": "1.2.0",
|
|
40
|
+
"everything.js": "~1.0.3",
|
|
41
|
+
"glob": "~7.1.0",
|
|
42
|
+
"istanbul": "~0.4.0",
|
|
43
|
+
"json-diff": "~0.3.1",
|
|
44
|
+
"karma": "~1.3.0",
|
|
45
|
+
"karma-chrome-launcher": "~2.0.0",
|
|
46
|
+
"karma-detect-browsers": "~2.2.3",
|
|
47
|
+
"karma-edge-launcher": "~0.2.0",
|
|
48
|
+
"karma-firefox-launcher": "~1.0.0",
|
|
49
|
+
"karma-ie-launcher": "~1.0.0",
|
|
50
|
+
"karma-mocha": "~1.3.0",
|
|
51
|
+
"karma-safari-launcher": "~1.0.0",
|
|
52
|
+
"karma-safaritechpreview-launcher": "~0.0.4",
|
|
53
|
+
"karma-sauce-launcher": "~1.1.0",
|
|
54
|
+
"lodash": "~3.10.1",
|
|
55
|
+
"mocha": "~3.2.0",
|
|
56
|
+
"node-tick-processor": "~0.0.2",
|
|
57
|
+
"regenerate": "~1.3.2",
|
|
58
|
+
"temp": "~0.8.3",
|
|
59
|
+
"tslint": "~5.1.0",
|
|
60
|
+
"typescript": "~2.3.2",
|
|
61
|
+
"typescript-formatter": "~5.1.3",
|
|
62
|
+
"unicode-8.0.0": "~0.7.0",
|
|
63
|
+
"webpack": "~1.14.0"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"ast",
|
|
67
|
+
"ecmascript",
|
|
68
|
+
"esprima",
|
|
69
|
+
"javascript",
|
|
70
|
+
"parser",
|
|
71
|
+
"syntax"
|
|
72
|
+
],
|
|
73
|
+
"scripts": {
|
|
74
|
+
"check-version": "node test/check-version.js",
|
|
75
|
+
"tslint": "tslint src/*.ts",
|
|
76
|
+
"code-style": "tsfmt --verify src/*.ts && tsfmt --verify test/*.js",
|
|
77
|
+
"format-code": "tsfmt -r src/*.ts && tsfmt -r test/*.js",
|
|
78
|
+
"complexity": "node test/check-complexity.js",
|
|
79
|
+
"static-analysis": "npm run check-version && npm run tslint && npm run code-style && npm run complexity",
|
|
80
|
+
"hostile-env-tests": "node test/hostile-environment-tests.js",
|
|
81
|
+
"unit-tests": "node test/unit-tests.js",
|
|
82
|
+
"api-tests": "mocha -R dot test/api-tests.js",
|
|
83
|
+
"grammar-tests": "node test/grammar-tests.js",
|
|
84
|
+
"regression-tests": "node test/regression-tests.js",
|
|
85
|
+
"all-tests": "npm run verify-line-ending && npm run generate-fixtures && npm run unit-tests && npm run api-tests && npm run grammar-tests && npm run regression-tests && npm run hostile-env-tests",
|
|
86
|
+
"verify-line-ending": "node test/verify-line-ending.js",
|
|
87
|
+
"generate-fixtures": "node tools/generate-fixtures.js",
|
|
88
|
+
"browser-tests": "npm run compile && npm run generate-fixtures && cd test && karma start --single-run",
|
|
89
|
+
"saucelabs-evergreen": "cd test && karma start saucelabs-evergreen.conf.js",
|
|
90
|
+
"saucelabs-safari": "cd test && karma start saucelabs-safari.conf.js",
|
|
91
|
+
"saucelabs-ie": "cd test && karma start saucelabs-ie.conf.js",
|
|
92
|
+
"saucelabs": "npm run saucelabs-evergreen && npm run saucelabs-ie && npm run saucelabs-safari",
|
|
93
|
+
"analyze-coverage": "istanbul cover test/unit-tests.js",
|
|
94
|
+
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100",
|
|
95
|
+
"dynamic-analysis": "npm run analyze-coverage && npm run check-coverage",
|
|
96
|
+
"compile": "tsc -p src/ && webpack && node tools/fixupbundle.js",
|
|
97
|
+
"test": "npm run compile && npm run all-tests && npm run static-analysis && npm run dynamic-analysis",
|
|
98
|
+
"prepublish": "npm run compile",
|
|
99
|
+
"profile": "node --prof test/profile.js && mv isolate*.log v8.log && node-tick-processor",
|
|
100
|
+
"benchmark-parser": "node -expose_gc test/benchmark-parser.js",
|
|
101
|
+
"benchmark-tokenizer": "node --expose_gc test/benchmark-tokenizer.js",
|
|
102
|
+
"benchmark": "npm run benchmark-parser && npm run benchmark-tokenizer",
|
|
103
|
+
"codecov": "istanbul report cobertura && codecov < ./coverage/cobertura-coverage.xml",
|
|
104
|
+
"downstream": "node test/downstream.js",
|
|
105
|
+
"travis": "npm test",
|
|
106
|
+
"circleci": "npm test && npm run codecov && npm run downstream",
|
|
107
|
+
"appveyor": "npm run compile && npm run all-tests && npm run browser-tests",
|
|
108
|
+
"droneio": "npm run compile && npm run all-tests && npm run saucelabs",
|
|
109
|
+
"generate-regex": "node tools/generate-identifier-regex.js",
|
|
110
|
+
"generate-xhtml-entities": "node tools/generate-xhtml-entities.js"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2015, Jon Schlinkert.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# extend-shallow [](http://badge.fury.io/js/extend-shallow) [](https://travis-ci.org/jonschlinkert/extend-shallow)
|
|
2
|
+
|
|
3
|
+
> Extend an object with the properties of additional objects. node.js/javascript util.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Install with [npm](https://www.npmjs.com/)
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
$ npm i extend-shallow --save
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var extend = require('extend-shallow');
|
|
17
|
+
|
|
18
|
+
extend({a: 'b'}, {c: 'd'})
|
|
19
|
+
//=> {a: 'b', c: 'd'}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Pass an empty object to shallow clone:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
var obj = {};
|
|
26
|
+
extend(obj, {a: 'b'}, {c: 'd'})
|
|
27
|
+
//=> {a: 'b', c: 'd'}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Related
|
|
31
|
+
|
|
32
|
+
* [extend-shallow](https://github.com/jonschlinkert/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util.
|
|
33
|
+
* [for-own](https://github.com/jonschlinkert/for-own): Iterate over the own enumerable properties of an object, and return an object with properties… [more](https://github.com/jonschlinkert/for-own)
|
|
34
|
+
* [for-in](https://github.com/jonschlinkert/for-in): Iterate over the own and inherited enumerable properties of an objecte, and return an object… [more](https://github.com/jonschlinkert/for-in)
|
|
35
|
+
* [is-plain-object](https://github.com/jonschlinkert/is-plain-object): Returns true if an object was created by the `Object` constructor.
|
|
36
|
+
* [isobject](https://github.com/jonschlinkert/isobject): Returns true if the value is an object and not an array or null.
|
|
37
|
+
* [kind-of](https://github.com/jonschlinkert/kind-of): Get the native type of a value.
|
|
38
|
+
|
|
39
|
+
## Running tests
|
|
40
|
+
|
|
41
|
+
Install dev dependencies:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
$ npm i -d && npm test
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Author
|
|
48
|
+
|
|
49
|
+
**Jon Schlinkert**
|
|
50
|
+
|
|
51
|
+
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
52
|
+
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
Copyright © 2015 Jon Schlinkert
|
|
57
|
+
Released under the MIT license.
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 29, 2015._
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var isObject = require('is-extendable');
|
|
4
|
+
|
|
5
|
+
module.exports = function extend(o/*, objects*/) {
|
|
6
|
+
if (!isObject(o)) { o = {}; }
|
|
7
|
+
|
|
8
|
+
var len = arguments.length;
|
|
9
|
+
for (var i = 1; i < len; i++) {
|
|
10
|
+
var obj = arguments[i];
|
|
11
|
+
|
|
12
|
+
if (isObject(obj)) {
|
|
13
|
+
assign(o, obj);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return o;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function assign(a, b) {
|
|
20
|
+
for (var key in b) {
|
|
21
|
+
if (hasOwn(b, key)) {
|
|
22
|
+
a[key] = b[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Returns true if the given `key` is an own property of `obj`.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
function hasOwn(obj, key) {
|
|
32
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
33
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "extend-shallow",
|
|
3
|
+
"description": "Extend an object with the properties of additional objects. node.js/javascript util.",
|
|
4
|
+
"version": "2.0.1",
|
|
5
|
+
"homepage": "https://github.com/jonschlinkert/extend-shallow",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"repository": "jonschlinkert/extend-shallow",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/jonschlinkert/extend-shallow/issues"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"files": [
|
|
13
|
+
"index.js"
|
|
14
|
+
],
|
|
15
|
+
"main": "index.js",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=0.10.0"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "mocha"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"is-extendable": "^0.1.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"array-slice": "^0.2.3",
|
|
27
|
+
"benchmarked": "^0.1.4",
|
|
28
|
+
"chalk": "^1.0.0",
|
|
29
|
+
"for-own": "^0.1.3",
|
|
30
|
+
"glob": "^5.0.12",
|
|
31
|
+
"is-plain-object": "^2.0.1",
|
|
32
|
+
"kind-of": "^2.0.0",
|
|
33
|
+
"minimist": "^1.1.1",
|
|
34
|
+
"mocha": "^2.2.5",
|
|
35
|
+
"should": "^7.0.1"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"assign",
|
|
39
|
+
"extend",
|
|
40
|
+
"javascript",
|
|
41
|
+
"js",
|
|
42
|
+
"keys",
|
|
43
|
+
"merge",
|
|
44
|
+
"obj",
|
|
45
|
+
"object",
|
|
46
|
+
"prop",
|
|
47
|
+
"properties",
|
|
48
|
+
"property",
|
|
49
|
+
"props",
|
|
50
|
+
"shallow",
|
|
51
|
+
"util",
|
|
52
|
+
"utility",
|
|
53
|
+
"utils",
|
|
54
|
+
"value"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# graceful-fs
|
|
2
|
+
|
|
3
|
+
graceful-fs functions as a drop-in replacement for the fs module,
|
|
4
|
+
making various improvements.
|
|
5
|
+
|
|
6
|
+
The improvements are meant to normalize behavior across different
|
|
7
|
+
platforms and environments, and to make filesystem access more
|
|
8
|
+
resilient to errors.
|
|
9
|
+
|
|
10
|
+
## Improvements over [fs module](https://nodejs.org/api/fs.html)
|
|
11
|
+
|
|
12
|
+
* Queues up `open` and `readdir` calls, and retries them once
|
|
13
|
+
something closes if there is an EMFILE error from too many file
|
|
14
|
+
descriptors.
|
|
15
|
+
* fixes `lchmod` for Node versions prior to 0.6.2.
|
|
16
|
+
* implements `fs.lutimes` if possible. Otherwise it becomes a noop.
|
|
17
|
+
* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or
|
|
18
|
+
`lchown` if the user isn't root.
|
|
19
|
+
* makes `lchmod` and `lchown` become noops, if not available.
|
|
20
|
+
* retries reading a file if `read` results in EAGAIN error.
|
|
21
|
+
|
|
22
|
+
On Windows, it retries renaming a file for up to one second if `EACCESS`
|
|
23
|
+
or `EPERM` error occurs, likely because antivirus software has locked
|
|
24
|
+
the directory.
|
|
25
|
+
|
|
26
|
+
## USAGE
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
// use just like fs
|
|
30
|
+
var fs = require('graceful-fs')
|
|
31
|
+
|
|
32
|
+
// now go and do stuff with it...
|
|
33
|
+
fs.readFile('some-file-or-whatever', (err, data) => {
|
|
34
|
+
// Do stuff here.
|
|
35
|
+
})
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Sync methods
|
|
39
|
+
|
|
40
|
+
This module cannot intercept or handle `EMFILE` or `ENFILE` errors from sync
|
|
41
|
+
methods. If you use sync methods which open file descriptors then you are
|
|
42
|
+
responsible for dealing with any errors.
|
|
43
|
+
|
|
44
|
+
This is a known limitation, not a bug.
|
|
45
|
+
|
|
46
|
+
## Global Patching
|
|
47
|
+
|
|
48
|
+
If you want to patch the global fs module (or any other fs-like
|
|
49
|
+
module) you can do this:
|
|
50
|
+
|
|
51
|
+
```javascript
|
|
52
|
+
// Make sure to read the caveat below.
|
|
53
|
+
var realFs = require('fs')
|
|
54
|
+
var gracefulFs = require('graceful-fs')
|
|
55
|
+
gracefulFs.gracefulify(realFs)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
This should only ever be done at the top-level application layer, in
|
|
59
|
+
order to delay on EMFILE errors from any fs-using dependencies. You
|
|
60
|
+
should **not** do this in a library, because it can cause unexpected
|
|
61
|
+
delays in other parts of the program.
|
|
62
|
+
|
|
63
|
+
## Changes
|
|
64
|
+
|
|
65
|
+
This module is fairly stable at this point, and used by a lot of
|
|
66
|
+
things. That being said, because it implements a subtle behavior
|
|
67
|
+
change in a core part of the node API, even modest changes can be
|
|
68
|
+
extremely breaking, and the versioning is thus biased towards
|
|
69
|
+
bumping the major when in doubt.
|
|
70
|
+
|
|
71
|
+
The main change between major versions has been switching between
|
|
72
|
+
providing a fully-patched `fs` module vs monkey-patching the node core
|
|
73
|
+
builtin, and the approach by which a non-monkey-patched `fs` was
|
|
74
|
+
created.
|
|
75
|
+
|
|
76
|
+
The goal is to trade `EMFILE` errors for slower fs operations. So, if
|
|
77
|
+
you try to open a zillion files, rather than crashing, `open`
|
|
78
|
+
operations will be queued up and wait for something else to `close`.
|
|
79
|
+
|
|
80
|
+
There are advantages to each approach. Monkey-patching the fs means
|
|
81
|
+
that no `EMFILE` errors can possibly occur anywhere in your
|
|
82
|
+
application, because everything is using the same core `fs` module,
|
|
83
|
+
which is patched. However, it can also obviously cause undesirable
|
|
84
|
+
side-effects, especially if the module is loaded multiple times.
|
|
85
|
+
|
|
86
|
+
Implementing a separate-but-identical patched `fs` module is more
|
|
87
|
+
surgical (and doesn't run the risk of patching multiple times), but
|
|
88
|
+
also imposes the challenge of keeping in sync with the core module.
|
|
89
|
+
|
|
90
|
+
The current approach loads the `fs` module, and then creates a
|
|
91
|
+
lookalike object that has all the same methods, except a few that are
|
|
92
|
+
patched. It is safe to use in all versions of Node from 0.8 through
|
|
93
|
+
7.0.
|
|
94
|
+
|
|
95
|
+
### v4
|
|
96
|
+
|
|
97
|
+
* Do not monkey-patch the fs module. This module may now be used as a
|
|
98
|
+
drop-in dep, and users can opt into monkey-patching the fs builtin
|
|
99
|
+
if their app requires it.
|
|
100
|
+
|
|
101
|
+
### v3
|
|
102
|
+
|
|
103
|
+
* Monkey-patch fs, because the eval approach no longer works on recent
|
|
104
|
+
node.
|
|
105
|
+
* fixed possible type-error throw if rename fails on windows
|
|
106
|
+
* verify that we *never* get EMFILE errors
|
|
107
|
+
* Ignore ENOSYS from chmod/chown
|
|
108
|
+
* clarify that graceful-fs must be used as a drop-in
|
|
109
|
+
|
|
110
|
+
### v2.1.0
|
|
111
|
+
|
|
112
|
+
* Use eval rather than monkey-patching fs.
|
|
113
|
+
* readdir: Always sort the results
|
|
114
|
+
* win32: requeue a file if error has an OK status
|
|
115
|
+
|
|
116
|
+
### v2.0
|
|
117
|
+
|
|
118
|
+
* A return to monkey patching
|
|
119
|
+
* wrap process.cwd
|
|
120
|
+
|
|
121
|
+
### v1.1
|
|
122
|
+
|
|
123
|
+
* wrap readFile
|
|
124
|
+
* Wrap fs.writeFile.
|
|
125
|
+
* readdir protection
|
|
126
|
+
* Don't clobber the fs builtin
|
|
127
|
+
* Handle fs.read EAGAIN errors by trying again
|
|
128
|
+
* Expose the curOpen counter
|
|
129
|
+
* No-op lchown/lchmod if not implemented
|
|
130
|
+
* fs.rename patch only for win32
|
|
131
|
+
* Patch fs.rename to handle AV software on Windows
|
|
132
|
+
* Close #4 Chown should not fail on einval or eperm if non-root
|
|
133
|
+
* Fix isaacs/fstream#1 Only wrap fs one time
|
|
134
|
+
* Fix #3 Start at 1024 max files, then back off on EMFILE
|
|
135
|
+
* lutimes that doens't blow up on Linux
|
|
136
|
+
* A full on-rewrite using a queue instead of just swallowing the EMFILE error
|
|
137
|
+
* Wrap Read/Write streams as well
|
|
138
|
+
|
|
139
|
+
### 1.0
|
|
140
|
+
|
|
141
|
+
* Update engines for node 0.6
|
|
142
|
+
* Be lstat-graceful on Windows
|
|
143
|
+
* first
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
module.exports = clone
|
|
4
|
+
|
|
5
|
+
var getPrototypeOf = Object.getPrototypeOf || function (obj) {
|
|
6
|
+
return obj.__proto__
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function clone (obj) {
|
|
10
|
+
if (obj === null || typeof obj !== 'object')
|
|
11
|
+
return obj
|
|
12
|
+
|
|
13
|
+
if (obj instanceof Object)
|
|
14
|
+
var copy = { __proto__: getPrototypeOf(obj) }
|
|
15
|
+
else
|
|
16
|
+
var copy = Object.create(null)
|
|
17
|
+
|
|
18
|
+
Object.getOwnPropertyNames(obj).forEach(function (key) {
|
|
19
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
return copy
|
|
23
|
+
}
|