@dev-sergeev/datalab-kit 0.1.2 → 0.1.4
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 +14 -0
- package/README.md +23 -5
- package/THIRD_PARTY_NOTICES.md +6 -2
- package/docs/adr/0001-user-settings-priority.md +2 -0
- package/docs/adr/0002-package-delivery.md +8 -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 +586 -0
- package/node_modules/@tifan/pi-recap/src/model-picker.ts +234 -0
- package/node_modules/@tifan/pi-recap/src/models.ts +180 -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/node-addon-api/common 2.gypi +21 -0
- package/node_modules/node-addon-api/except 2.gypi +25 -0
- package/node_modules/node-addon-api/napi 2.h +3463 -0
- package/node_modules/node-addon-api/napi-inl 2.h +7250 -0
- package/node_modules/node-addon-api/napi-inl.deprecated 2.h +186 -0
- package/node_modules/node-addon-api/node_addon_api 2.gyp +42 -0
- package/node_modules/node-addon-api/node_api 2.gyp +9 -0
- package/node_modules/node-addon-api/noexcept 2.gypi +26 -0
- package/node_modules/node-addon-api/nothing 2.c +0 -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 2.ts +316 -0
- package/node_modules/pi-toggle-skills/toggle-skills.ts +316 -0
- package/node_modules/pi-toggle-skills/vitest.config 2.ts +15 -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/.npmignore 2 +1 -0
- package/node_modules/sprintf-js/LICENSE +24 -0
- package/node_modules/sprintf-js/LICENSE 2 +24 -0
- package/node_modules/sprintf-js/README 2.md +88 -0
- package/node_modules/sprintf-js/README.md +88 -0
- package/node_modules/sprintf-js/bower 2.json +14 -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 2.js +36 -0
- package/node_modules/sprintf-js/gruntfile.js +36 -0
- package/node_modules/sprintf-js/package 2.json +22 -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/node_modules/tree-sitter-bash/tree-sitter-bash 2.wasm +0 -0
- package/node_modules/typebox/license 2 +23 -0
- package/node_modules/typebox/package 2.json +87 -0
- package/node_modules/typebox/readme 2.md +370 -0
- package/node_modules/zod/compile 2.cjs +96 -0
- package/node_modules/zod/compile 2.js +52 -0
- package/node_modules/zod/index 2.cjs +52 -0
- package/node_modules/zod/index 2.js +7 -0
- package/package.json +13 -4
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
(function(window) {
|
|
2
|
+
var re = {
|
|
3
|
+
not_string: /[^s]/,
|
|
4
|
+
number: /[diefg]/,
|
|
5
|
+
json: /[j]/,
|
|
6
|
+
not_json: /[^j]/,
|
|
7
|
+
text: /^[^\x25]+/,
|
|
8
|
+
modulo: /^\x25{2}/,
|
|
9
|
+
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,
|
|
10
|
+
key: /^([a-z_][a-z_\d]*)/i,
|
|
11
|
+
key_access: /^\.([a-z_][a-z_\d]*)/i,
|
|
12
|
+
index_access: /^\[(\d+)\]/,
|
|
13
|
+
sign: /^[\+\-]/
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function sprintf() {
|
|
17
|
+
var key = arguments[0], cache = sprintf.cache
|
|
18
|
+
if (!(cache[key] && cache.hasOwnProperty(key))) {
|
|
19
|
+
cache[key] = sprintf.parse(key)
|
|
20
|
+
}
|
|
21
|
+
return sprintf.format.call(null, cache[key], arguments)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
sprintf.format = function(parse_tree, argv) {
|
|
25
|
+
var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i, k, match, pad, pad_character, pad_length, is_positive = true, sign = ""
|
|
26
|
+
for (i = 0; i < tree_length; i++) {
|
|
27
|
+
node_type = get_type(parse_tree[i])
|
|
28
|
+
if (node_type === "string") {
|
|
29
|
+
output[output.length] = parse_tree[i]
|
|
30
|
+
}
|
|
31
|
+
else if (node_type === "array") {
|
|
32
|
+
match = parse_tree[i] // convenience purposes only
|
|
33
|
+
if (match[2]) { // keyword argument
|
|
34
|
+
arg = argv[cursor]
|
|
35
|
+
for (k = 0; k < match[2].length; k++) {
|
|
36
|
+
if (!arg.hasOwnProperty(match[2][k])) {
|
|
37
|
+
throw new Error(sprintf("[sprintf] property '%s' does not exist", match[2][k]))
|
|
38
|
+
}
|
|
39
|
+
arg = arg[match[2][k]]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else if (match[1]) { // positional argument (explicit)
|
|
43
|
+
arg = argv[match[1]]
|
|
44
|
+
}
|
|
45
|
+
else { // positional argument (implicit)
|
|
46
|
+
arg = argv[cursor++]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (get_type(arg) == "function") {
|
|
50
|
+
arg = arg()
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (re.not_string.test(match[8]) && re.not_json.test(match[8]) && (get_type(arg) != "number" && isNaN(arg))) {
|
|
54
|
+
throw new TypeError(sprintf("[sprintf] expecting number but found %s", get_type(arg)))
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (re.number.test(match[8])) {
|
|
58
|
+
is_positive = arg >= 0
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
switch (match[8]) {
|
|
62
|
+
case "b":
|
|
63
|
+
arg = arg.toString(2)
|
|
64
|
+
break
|
|
65
|
+
case "c":
|
|
66
|
+
arg = String.fromCharCode(arg)
|
|
67
|
+
break
|
|
68
|
+
case "d":
|
|
69
|
+
case "i":
|
|
70
|
+
arg = parseInt(arg, 10)
|
|
71
|
+
break
|
|
72
|
+
case "j":
|
|
73
|
+
arg = JSON.stringify(arg, null, match[6] ? parseInt(match[6]) : 0)
|
|
74
|
+
break
|
|
75
|
+
case "e":
|
|
76
|
+
arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential()
|
|
77
|
+
break
|
|
78
|
+
case "f":
|
|
79
|
+
arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg)
|
|
80
|
+
break
|
|
81
|
+
case "g":
|
|
82
|
+
arg = match[7] ? parseFloat(arg).toPrecision(match[7]) : parseFloat(arg)
|
|
83
|
+
break
|
|
84
|
+
case "o":
|
|
85
|
+
arg = arg.toString(8)
|
|
86
|
+
break
|
|
87
|
+
case "s":
|
|
88
|
+
arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg)
|
|
89
|
+
break
|
|
90
|
+
case "u":
|
|
91
|
+
arg = arg >>> 0
|
|
92
|
+
break
|
|
93
|
+
case "x":
|
|
94
|
+
arg = arg.toString(16)
|
|
95
|
+
break
|
|
96
|
+
case "X":
|
|
97
|
+
arg = arg.toString(16).toUpperCase()
|
|
98
|
+
break
|
|
99
|
+
}
|
|
100
|
+
if (re.json.test(match[8])) {
|
|
101
|
+
output[output.length] = arg
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
if (re.number.test(match[8]) && (!is_positive || match[3])) {
|
|
105
|
+
sign = is_positive ? "+" : "-"
|
|
106
|
+
arg = arg.toString().replace(re.sign, "")
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
sign = ""
|
|
110
|
+
}
|
|
111
|
+
pad_character = match[4] ? match[4] === "0" ? "0" : match[4].charAt(1) : " "
|
|
112
|
+
pad_length = match[6] - (sign + arg).length
|
|
113
|
+
pad = match[6] ? (pad_length > 0 ? str_repeat(pad_character, pad_length) : "") : ""
|
|
114
|
+
output[output.length] = match[5] ? sign + arg + pad : (pad_character === "0" ? sign + pad + arg : pad + sign + arg)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return output.join("")
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
sprintf.cache = {}
|
|
122
|
+
|
|
123
|
+
sprintf.parse = function(fmt) {
|
|
124
|
+
var _fmt = fmt, match = [], parse_tree = [], arg_names = 0
|
|
125
|
+
while (_fmt) {
|
|
126
|
+
if ((match = re.text.exec(_fmt)) !== null) {
|
|
127
|
+
parse_tree[parse_tree.length] = match[0]
|
|
128
|
+
}
|
|
129
|
+
else if ((match = re.modulo.exec(_fmt)) !== null) {
|
|
130
|
+
parse_tree[parse_tree.length] = "%"
|
|
131
|
+
}
|
|
132
|
+
else if ((match = re.placeholder.exec(_fmt)) !== null) {
|
|
133
|
+
if (match[2]) {
|
|
134
|
+
arg_names |= 1
|
|
135
|
+
var field_list = [], replacement_field = match[2], field_match = []
|
|
136
|
+
if ((field_match = re.key.exec(replacement_field)) !== null) {
|
|
137
|
+
field_list[field_list.length] = field_match[1]
|
|
138
|
+
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
139
|
+
if ((field_match = re.key_access.exec(replacement_field)) !== null) {
|
|
140
|
+
field_list[field_list.length] = field_match[1]
|
|
141
|
+
}
|
|
142
|
+
else if ((field_match = re.index_access.exec(replacement_field)) !== null) {
|
|
143
|
+
field_list[field_list.length] = field_match[1]
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
throw new SyntaxError("[sprintf] failed to parse named argument key")
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
throw new SyntaxError("[sprintf] failed to parse named argument key")
|
|
152
|
+
}
|
|
153
|
+
match[2] = field_list
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
arg_names |= 2
|
|
157
|
+
}
|
|
158
|
+
if (arg_names === 3) {
|
|
159
|
+
throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported")
|
|
160
|
+
}
|
|
161
|
+
parse_tree[parse_tree.length] = match
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
throw new SyntaxError("[sprintf] unexpected placeholder")
|
|
165
|
+
}
|
|
166
|
+
_fmt = _fmt.substring(match[0].length)
|
|
167
|
+
}
|
|
168
|
+
return parse_tree
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var vsprintf = function(fmt, argv, _argv) {
|
|
172
|
+
_argv = (argv || []).slice(0)
|
|
173
|
+
_argv.splice(0, 0, fmt)
|
|
174
|
+
return sprintf.apply(null, _argv)
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* helpers
|
|
179
|
+
*/
|
|
180
|
+
function get_type(variable) {
|
|
181
|
+
return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase()
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function str_repeat(input, multiplier) {
|
|
185
|
+
return Array(multiplier + 1).join(input)
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* export to either browser or node.js
|
|
190
|
+
*/
|
|
191
|
+
if (typeof exports !== "undefined") {
|
|
192
|
+
exports.sprintf = sprintf
|
|
193
|
+
exports.vsprintf = vsprintf
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
window.sprintf = sprintf
|
|
197
|
+
window.vsprintf = vsprintf
|
|
198
|
+
|
|
199
|
+
if (typeof define === "function" && define.amd) {
|
|
200
|
+
define(function() {
|
|
201
|
+
return {
|
|
202
|
+
sprintf: sprintf,
|
|
203
|
+
vsprintf: vsprintf
|
|
204
|
+
}
|
|
205
|
+
})
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
})(typeof window === "undefined" ? this : window);
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
var assert = require("assert"),
|
|
2
|
+
sprintfjs = require("../src/sprintf.js"),
|
|
3
|
+
sprintf = sprintfjs.sprintf,
|
|
4
|
+
vsprintf = sprintfjs.vsprintf
|
|
5
|
+
|
|
6
|
+
describe("sprintfjs", function() {
|
|
7
|
+
var pi = 3.141592653589793
|
|
8
|
+
|
|
9
|
+
it("should return formated strings for simple placeholders", function() {
|
|
10
|
+
assert.equal("%", sprintf("%%"))
|
|
11
|
+
assert.equal("10", sprintf("%b", 2))
|
|
12
|
+
assert.equal("A", sprintf("%c", 65))
|
|
13
|
+
assert.equal("2", sprintf("%d", 2))
|
|
14
|
+
assert.equal("2", sprintf("%i", 2))
|
|
15
|
+
assert.equal("2", sprintf("%d", "2"))
|
|
16
|
+
assert.equal("2", sprintf("%i", "2"))
|
|
17
|
+
assert.equal('{"foo":"bar"}', sprintf("%j", {foo: "bar"}))
|
|
18
|
+
assert.equal('["foo","bar"]', sprintf("%j", ["foo", "bar"]))
|
|
19
|
+
assert.equal("2e+0", sprintf("%e", 2))
|
|
20
|
+
assert.equal("2", sprintf("%u", 2))
|
|
21
|
+
assert.equal("4294967294", sprintf("%u", -2))
|
|
22
|
+
assert.equal("2.2", sprintf("%f", 2.2))
|
|
23
|
+
assert.equal("3.141592653589793", sprintf("%g", pi))
|
|
24
|
+
assert.equal("10", sprintf("%o", 8))
|
|
25
|
+
assert.equal("%s", sprintf("%s", "%s"))
|
|
26
|
+
assert.equal("ff", sprintf("%x", 255))
|
|
27
|
+
assert.equal("FF", sprintf("%X", 255))
|
|
28
|
+
assert.equal("Polly wants a cracker", sprintf("%2$s %3$s a %1$s", "cracker", "Polly", "wants"))
|
|
29
|
+
assert.equal("Hello world!", sprintf("Hello %(who)s!", {"who": "world"}))
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
it("should return formated strings for complex placeholders", function() {
|
|
33
|
+
// sign
|
|
34
|
+
assert.equal("2", sprintf("%d", 2))
|
|
35
|
+
assert.equal("-2", sprintf("%d", -2))
|
|
36
|
+
assert.equal("+2", sprintf("%+d", 2))
|
|
37
|
+
assert.equal("-2", sprintf("%+d", -2))
|
|
38
|
+
assert.equal("2", sprintf("%i", 2))
|
|
39
|
+
assert.equal("-2", sprintf("%i", -2))
|
|
40
|
+
assert.equal("+2", sprintf("%+i", 2))
|
|
41
|
+
assert.equal("-2", sprintf("%+i", -2))
|
|
42
|
+
assert.equal("2.2", sprintf("%f", 2.2))
|
|
43
|
+
assert.equal("-2.2", sprintf("%f", -2.2))
|
|
44
|
+
assert.equal("+2.2", sprintf("%+f", 2.2))
|
|
45
|
+
assert.equal("-2.2", sprintf("%+f", -2.2))
|
|
46
|
+
assert.equal("-2.3", sprintf("%+.1f", -2.34))
|
|
47
|
+
assert.equal("-0.0", sprintf("%+.1f", -0.01))
|
|
48
|
+
assert.equal("3.14159", sprintf("%.6g", pi))
|
|
49
|
+
assert.equal("3.14", sprintf("%.3g", pi))
|
|
50
|
+
assert.equal("3", sprintf("%.1g", pi))
|
|
51
|
+
assert.equal("-000000123", sprintf("%+010d", -123))
|
|
52
|
+
assert.equal("______-123", sprintf("%+'_10d", -123))
|
|
53
|
+
assert.equal("-234.34 123.2", sprintf("%f %f", -234.34, 123.2))
|
|
54
|
+
|
|
55
|
+
// padding
|
|
56
|
+
assert.equal("-0002", sprintf("%05d", -2))
|
|
57
|
+
assert.equal("-0002", sprintf("%05i", -2))
|
|
58
|
+
assert.equal(" <", sprintf("%5s", "<"))
|
|
59
|
+
assert.equal("0000<", sprintf("%05s", "<"))
|
|
60
|
+
assert.equal("____<", sprintf("%'_5s", "<"))
|
|
61
|
+
assert.equal("> ", sprintf("%-5s", ">"))
|
|
62
|
+
assert.equal(">0000", sprintf("%0-5s", ">"))
|
|
63
|
+
assert.equal(">____", sprintf("%'_-5s", ">"))
|
|
64
|
+
assert.equal("xxxxxx", sprintf("%5s", "xxxxxx"))
|
|
65
|
+
assert.equal("1234", sprintf("%02u", 1234))
|
|
66
|
+
assert.equal(" -10.235", sprintf("%8.3f", -10.23456))
|
|
67
|
+
assert.equal("-12.34 xxx", sprintf("%f %s", -12.34, "xxx"))
|
|
68
|
+
assert.equal('{\n "foo": "bar"\n}', sprintf("%2j", {foo: "bar"}))
|
|
69
|
+
assert.equal('[\n "foo",\n "bar"\n]', sprintf("%2j", ["foo", "bar"]))
|
|
70
|
+
|
|
71
|
+
// precision
|
|
72
|
+
assert.equal("2.3", sprintf("%.1f", 2.345))
|
|
73
|
+
assert.equal("xxxxx", sprintf("%5.5s", "xxxxxx"))
|
|
74
|
+
assert.equal(" x", sprintf("%5.1s", "xxxxxx"))
|
|
75
|
+
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
it("should return formated strings for callbacks", function() {
|
|
79
|
+
assert.equal("foobar", sprintf("%s", function() { return "foobar" }))
|
|
80
|
+
assert.equal(Date.now(), sprintf("%s", Date.now)) // should pass...
|
|
81
|
+
})
|
|
82
|
+
})
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015, 2017, 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,66 @@
|
|
|
1
|
+
# strip-bom-string [](https://www.npmjs.com/package/strip-bom-string) [](https://npmjs.org/package/strip-bom-string) [](https://npmjs.org/package/strip-bom-string) [](https://travis-ci.org/jonschlinkert/strip-bom-string)
|
|
2
|
+
|
|
3
|
+
> Strip a byte order mark (BOM) from a string.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Install with [npm](https://www.npmjs.com/):
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
$ npm install --save strip-bom-string
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var strip = require('strip-bom-string');
|
|
17
|
+
strip('\ufefffoo');
|
|
18
|
+
//=> 'foo'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## About
|
|
22
|
+
|
|
23
|
+
### Related projects
|
|
24
|
+
|
|
25
|
+
* [cr](https://www.npmjs.com/package/cr): Strip windows carriage returns, or convert carriage returns to newlines. | [homepage](https://github.com/jonschlinkert/cr "Strip windows carriage returns, or convert carriage returns to newlines.")
|
|
26
|
+
* [has-bom](https://www.npmjs.com/package/has-bom): Returns true if a buffer or string has a byte order mark (BOM) | [homepage](https://github.com/jonschlinkert/has-bom "Returns true if a buffer or string has a byte order mark (BOM)")
|
|
27
|
+
* [read-file](https://www.npmjs.com/package/read-file): Thin wrapper around fs.readFile and fs.readFileSync that also strips byte order marks when `utf8` encoding… [more](https://github.com/jonschlinkert/read-file) | [homepage](https://github.com/jonschlinkert/read-file "Thin wrapper around fs.readFile and fs.readFileSync that also strips byte order marks when `utf8` encoding is chosen. Also optionally replaces windows newlines with unix newlines.")
|
|
28
|
+
* [strip-bom-buffer](https://www.npmjs.com/package/strip-bom-buffer): Strip a byte order mark (BOM) from a buffer. | [homepage](https://github.com/jonschlinkert/strip-bom-buffer "Strip a byte order mark (BOM) from a buffer.")
|
|
29
|
+
|
|
30
|
+
### Contributing
|
|
31
|
+
|
|
32
|
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
|
33
|
+
|
|
34
|
+
### Building docs
|
|
35
|
+
|
|
36
|
+
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
|
37
|
+
|
|
38
|
+
To generate the readme, run the following command:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Running tests
|
|
45
|
+
|
|
46
|
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
$ npm install && npm test
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Author
|
|
53
|
+
|
|
54
|
+
**Jon Schlinkert**
|
|
55
|
+
|
|
56
|
+
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
57
|
+
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
|
|
58
|
+
|
|
59
|
+
### License
|
|
60
|
+
|
|
61
|
+
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
|
62
|
+
Released under the [MIT License](LICENSE).
|
|
63
|
+
|
|
64
|
+
***
|
|
65
|
+
|
|
66
|
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 29, 2017._
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
module.exports = function(str) {
|
|
11
|
+
if (typeof str === 'string' && str.charAt(0) === '\ufeff') {
|
|
12
|
+
return str.slice(1);
|
|
13
|
+
}
|
|
14
|
+
return str;
|
|
15
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "strip-bom-string",
|
|
3
|
+
"description": "Strip a byte order mark (BOM) from a string.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"homepage": "https://github.com/jonschlinkert/strip-bom-string",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"repository": "jonschlinkert/strip-bom-string",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/jonschlinkert/strip-bom-string/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
|
+
"devDependencies": {
|
|
23
|
+
"gulp-format-md": "^0.1.11",
|
|
24
|
+
"mocha": "^3.2.0"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"bom",
|
|
28
|
+
"byte",
|
|
29
|
+
"byte-order-mark",
|
|
30
|
+
"file",
|
|
31
|
+
"fs",
|
|
32
|
+
"mark",
|
|
33
|
+
"nl",
|
|
34
|
+
"normalize",
|
|
35
|
+
"order",
|
|
36
|
+
"string",
|
|
37
|
+
"strip"
|
|
38
|
+
],
|
|
39
|
+
"verb": {
|
|
40
|
+
"related": {
|
|
41
|
+
"list": [
|
|
42
|
+
"cr",
|
|
43
|
+
"has-bom",
|
|
44
|
+
"read-file",
|
|
45
|
+
"strip-bom-buffer"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"toc": false,
|
|
49
|
+
"layout": "default",
|
|
50
|
+
"tasks": [
|
|
51
|
+
"readme"
|
|
52
|
+
],
|
|
53
|
+
"plugins": [
|
|
54
|
+
"gulp-format-md"
|
|
55
|
+
],
|
|
56
|
+
"lint": {
|
|
57
|
+
"reflinks": true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
TypeBox
|
|
2
|
+
|
|
3
|
+
The MIT License (MIT)
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2017-2026 Haydn Paterson
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typebox",
|
|
3
|
+
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
|
|
4
|
+
"version": "1.3.7",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"typescript",
|
|
7
|
+
"jsonschema"
|
|
8
|
+
],
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "sinclairzx81",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/sinclairzx81/typebox"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"types": "./build/index.d.mts",
|
|
17
|
+
"module": "./build/index.mjs",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./schema": {
|
|
20
|
+
"import": "./build/schema/index.mjs",
|
|
21
|
+
"default": "./build/schema/index.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./system": {
|
|
24
|
+
"import": "./build/system/index.mjs",
|
|
25
|
+
"default": "./build/system/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./compile": {
|
|
28
|
+
"import": "./build/compile/index.mjs",
|
|
29
|
+
"default": "./build/compile/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./value": {
|
|
32
|
+
"import": "./build/value/index.mjs",
|
|
33
|
+
"default": "./build/value/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./type": {
|
|
36
|
+
"import": "./build/type/index.mjs",
|
|
37
|
+
"default": "./build/type/index.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./error": {
|
|
40
|
+
"import": "./build/error/index.mjs",
|
|
41
|
+
"default": "./build/error/index.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./format": {
|
|
44
|
+
"import": "./build/format/index.mjs",
|
|
45
|
+
"default": "./build/format/index.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./guard": {
|
|
48
|
+
"import": "./build/guard/index.mjs",
|
|
49
|
+
"default": "./build/guard/index.mjs"
|
|
50
|
+
},
|
|
51
|
+
".": {
|
|
52
|
+
"import": "./build/index.mjs",
|
|
53
|
+
"default": "./build/index.mjs"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"typesVersions": {
|
|
57
|
+
"*": {
|
|
58
|
+
"schema": [
|
|
59
|
+
"./build/schema/index.d.mts"
|
|
60
|
+
],
|
|
61
|
+
"system": [
|
|
62
|
+
"./build/system/index.d.mts"
|
|
63
|
+
],
|
|
64
|
+
"compile": [
|
|
65
|
+
"./build/compile/index.d.mts"
|
|
66
|
+
],
|
|
67
|
+
"value": [
|
|
68
|
+
"./build/value/index.d.mts"
|
|
69
|
+
],
|
|
70
|
+
"type": [
|
|
71
|
+
"./build/type/index.d.mts"
|
|
72
|
+
],
|
|
73
|
+
"error": [
|
|
74
|
+
"./build/error/index.d.mts"
|
|
75
|
+
],
|
|
76
|
+
"format": [
|
|
77
|
+
"./build/format/index.d.mts"
|
|
78
|
+
],
|
|
79
|
+
"guard": [
|
|
80
|
+
"./build/guard/index.d.mts"
|
|
81
|
+
],
|
|
82
|
+
".": [
|
|
83
|
+
"./build/index.d.mts"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|