@unbrained/pm-cli 2026.12.1 → 2026.12.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/.claude-plugin/marketplace.json +1 -1
- package/dist/cli/commander-usage.js +4 -4
- package/dist/cli/expected-revisions.js +1 -1
- package/dist/cli/extension-command-help.js +4 -4
- package/dist/cli/main.js +5 -5
- package/dist/cli/runtime/invocation-rewrites.js +1 -1
- package/dist/cli/runtime-field-commands.js +2 -0
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-3ESBFEQC.js +2 -0
- package/dist/cli-bundle/chunks/chunk-46AZP5QW.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-OBPO6V7H.js → chunk-5WTBF4M4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3KEMIPKG.js → chunk-6TOZQ5BQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YYFY33T.js → chunk-AHVOEE7F.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-CQHB3ZZH.js +2 -0
- package/dist/cli-bundle/chunks/chunk-DZPOS3YT.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-OKEJ4U2I.js → chunk-E5ADC3HT.js} +65 -65
- package/dist/cli-bundle/chunks/{chunk-SY5C3U32.js → chunk-E5HO7HWP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3HKPVOAN.js → chunk-EDJ3KR2H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XME6GIFQ.js → chunk-FWQNWPIV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CWPR234D.js → chunk-H4U3LEOD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MZZ4ZJ5Z.js → chunk-HNMED75Y.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-U7RBJGLF.js → chunk-HPCMM74Q.js} +22 -22
- package/dist/cli-bundle/chunks/{chunk-WSEIEDEK.js → chunk-ITM4AMVM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6K7HWZ7.js → chunk-IW4A3I4N.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YQMQOUO.js → chunk-JJ73G5UT.js} +52 -52
- package/dist/cli-bundle/chunks/chunk-L4HMFRHB.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-YSVOXCYH.js → chunk-LTQWPQ7H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6GLSAJY.js → chunk-MRT3ADO4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZL6J6JYT.js → chunk-PBMLIV74.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NA6D75V5.js → chunk-PJMGWJKU.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-Q2HMDV56.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-OXC5KBIQ.js → chunk-RRBNCL63.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CBUC4X7Q.js → chunk-TDOF7BKO.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-UXEZXGAD.js +113 -0
- package/dist/cli-bundle/chunks/{chunk-PCDTWL6V.js → chunk-W7HA65EO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I4SPJQQI.js → chunk-XGNUDSCG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AHV3CSQG.js → chunk-XKJ5NWQ7.js} +2 -2
- package/dist/cli-bundle/chunks/{field-option-collisions-BBGTV7AD.js → field-option-collisions-DXKTKW6J.js} +2 -2
- package/dist/cli-bundle/chunks/item-revision-DXEF4XBU.js +2 -0
- package/dist/cli-bundle/chunks/item-transaction-EANA7V4W.js +2 -0
- package/dist/cli-bundle/chunks/{linked-resource-value-list-E2DX52LY.js → linked-resource-value-list-5JRGUDUB.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-actor-NHN33ITJ.js → mutation-actor-S5G7FMNG.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-admission-PGKJTCG6.js → mutation-admission-HQVNPOXV.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-7S5QWDTI.js → register-list-query-SQF5PSJ4.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-2F6JUBST.js → register-mutation-4AQ4CEBL.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-ET3UKPYK.js → register-operations-76P7OM4P.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-I63QTFCU.js → register-setup-T6OEOZK3.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-4ZCF74G4.js → stage-KUICZHSF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4SCFAWAW.js → chunk-3LHBKFPD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4DDXERKN.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-JPZGC3W4.js → chunk-4YU75CWI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TXTPAFHJ.js → chunk-5JQVPQMN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KNBGHCIP.js → chunk-5Z4DXYBZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-7DOP5HEZ.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-TR22GU7M.js → chunk-AX4RBJ7B.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7A6SEZEY.js → chunk-BEHQCHQV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-BUIF6CMZ.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-E2IWEJL5.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-GBU7GKNJ.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-EQCQTYKO.js → chunk-K35KTBDZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-VQIC3UZB.js → chunk-KNST4PGF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-P2H3GTJK.js → chunk-L2XJB5PK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-L6NOGC4N.js +100 -0
- package/dist/cli-bundle/focused-chunks/{chunk-VK3IE3TS.js → chunk-LWIIDPAV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6IY5CVGJ.js → chunk-M54BMYG4.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6BKT6XQN.js → chunk-NEK7RX3N.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BHNBPCHP.js → chunk-OKGWIW6C.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-2DGKVXFT.js → chunk-RFDSSOTZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-SSX5YBDC.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-OG57ESZK.js → chunk-TIEQVIFN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SQ72CVUH.js → chunk-VEUBDQDP.js} +54 -54
- package/dist/cli-bundle/focused-chunks/{chunk-2UWKU2BQ.js → chunk-WDHNPNHX.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{field-option-collisions-2C6DLUC4.js → field-option-collisions-32X7FP3H.js} +2 -2
- package/dist/cli-bundle/focused-chunks/item-revision-GUYSVVQD.js +2 -0
- package/dist/cli-bundle/focused-chunks/{item-transaction-2K4SFLJ7.js → item-transaction-MLKHZPL7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-actor-DJMZUIZI.js → mutation-actor-RDZJTRW2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-SDWQVVHN.js → mutation-admission-IQB6XL75.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-QBZIK3T5.js → stage-AA7LORZ2.js} +2 -2
- package/dist/cli-bundle/main.js +27 -27
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +63 -63
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +9 -9
- package/dist/core/extensions/loader.d.ts +8 -0
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/item/actionability.js +1 -1
- package/dist/core/output/output.js +16 -16
- package/dist/mcp/server.js +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -1
- package/dist/sdk/cli-contracts/enum-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/extension/install-sources.d.ts +2 -2
- package/dist/sdk/extension/install-sources.js +5 -5
- package/dist/sdk/lifecycle/expect-hash-admission.d.ts +27 -8
- package/dist/sdk/lifecycle/expect-hash-admission.js +1 -1
- package/dist/sdk/lifecycle/item-revision.d.ts +12 -4
- package/dist/sdk/lifecycle/item-revision.js +1 -1
- package/dist/sdk/output-projection.d.ts +1 -1
- package/dist/sdk/output-projection.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/read-output/surfaces.js +1 -1
- package/dist/sdk/runtime/schema.js +1 -1
- package/dist/sdk/runtime-input.d.ts +6 -0
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +1 -1
- package/dist/sdk/runtime.js +1 -1
- package/docs/COMMANDS.md +23 -5
- package/docs/EXTENSIONS.md +1 -1
- package/docs/SDK.md +15 -2
- package/marketplace.json +1 -1
- package/node_modules/tar/README.md +1792 -1147
- package/node_modules/tar/dist/commonjs/bytes.d.ts +21 -0
- package/node_modules/tar/dist/commonjs/bytes.js +83 -0
- package/node_modules/tar/dist/commonjs/codec.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/codec.js +35 -0
- package/node_modules/tar/dist/commonjs/concat.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/concat.js +20 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +39 -2
- package/node_modules/tar/dist/commonjs/create.js +150 -64
- package/node_modules/tar/dist/commonjs/dealias.d.ts +79 -0
- package/node_modules/tar/dist/commonjs/dealias.js +50 -0
- package/node_modules/tar/dist/commonjs/delete.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/delete.js +121 -0
- package/node_modules/tar/dist/commonjs/entries.d.ts +82 -0
- package/node_modules/tar/dist/commonjs/entries.js +398 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +14 -2
- package/node_modules/tar/dist/commonjs/extract.js +40 -81
- package/node_modules/tar/dist/commonjs/fs.d.ts +201 -0
- package/node_modules/tar/dist/commonjs/fs.js +5 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +4 -4
- package/node_modules/tar/dist/commonjs/header.js +71 -53
- package/node_modules/tar/dist/commonjs/index.d.ts +25 -18
- package/node_modules/tar/dist/commonjs/index.js +46 -18
- package/node_modules/tar/dist/commonjs/index.min.js +2 -3
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/commonjs/large-numbers.js +4 -4
- package/node_modules/tar/dist/commonjs/list.d.ts +23 -6
- package/node_modules/tar/dist/commonjs/list.js +99 -138
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/commonjs/mkdir.js +121 -159
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +284 -513
- package/node_modules/tar/dist/commonjs/options.js +20 -61
- package/node_modules/tar/dist/commonjs/pack.d.ts +150 -96
- package/node_modules/tar/dist/commonjs/pack.js +752 -445
- package/node_modules/tar/dist/commonjs/parser.d.ts +98 -0
- package/node_modules/tar/dist/commonjs/parser.js +452 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/commonjs/path-reservations.js +110 -140
- package/node_modules/tar/dist/commonjs/path.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/path.js +90 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +3 -1
- package/node_modules/tar/dist/commonjs/pax.js +67 -36
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/commonjs/read-entry.js +251 -97
- package/node_modules/tar/dist/commonjs/read-file.d.ts +22 -0
- package/node_modules/tar/dist/commonjs/read-file.js +104 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +45 -1
- package/node_modules/tar/dist/commonjs/replace.js +164 -211
- package/node_modules/tar/dist/commonjs/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/commonjs/server/codecs.js +252 -0
- package/node_modules/tar/dist/commonjs/server/index.d.ts +115 -0
- package/node_modules/tar/dist/commonjs/server/index.js +166 -0
- package/node_modules/tar/dist/commonjs/server/index.min.js +3 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/commonjs/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/to-stream.js +22 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +4 -3
- package/node_modules/tar/dist/commonjs/types.js +4 -3
- package/node_modules/tar/dist/commonjs/unpack.d.ts +143 -89
- package/node_modules/tar/dist/commonjs/unpack.js +780 -725
- package/node_modules/tar/dist/commonjs/update.d.ts +11 -1
- package/node_modules/tar/dist/commonjs/update.js +37 -28
- package/node_modules/tar/dist/commonjs/warn.d.ts +27 -0
- package/node_modules/tar/dist/commonjs/warn.js +36 -0
- package/node_modules/tar/dist/commonjs/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/commonjs/win32-path.js +67 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/commonjs/write-entry.js +108 -672
- package/node_modules/tar/dist/commonjs/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/commonjs/write-flag.js +29 -0
- package/node_modules/tar/dist/esm/bytes.d.ts +21 -0
- package/node_modules/tar/dist/esm/bytes.js +72 -0
- package/node_modules/tar/dist/esm/codec.d.ts +53 -0
- package/node_modules/tar/dist/esm/codec.js +32 -0
- package/node_modules/tar/dist/esm/concat.d.ts +3 -0
- package/node_modules/tar/dist/esm/concat.js +16 -0
- package/node_modules/tar/dist/esm/create.d.ts +39 -2
- package/node_modules/tar/dist/esm/create.js +144 -61
- package/node_modules/tar/dist/esm/dealias.d.ts +79 -0
- package/node_modules/tar/dist/esm/dealias.js +46 -0
- package/node_modules/tar/dist/esm/delete.d.ts +19 -0
- package/node_modules/tar/dist/esm/delete.js +117 -0
- package/node_modules/tar/dist/esm/entries.d.ts +82 -0
- package/node_modules/tar/dist/esm/entries.js +388 -0
- package/node_modules/tar/dist/esm/extract.d.ts +14 -2
- package/node_modules/tar/dist/esm/extract.js +37 -44
- package/node_modules/tar/dist/esm/fs.d.ts +201 -0
- package/node_modules/tar/dist/esm/fs.js +4 -0
- package/node_modules/tar/dist/esm/header.d.ts +4 -4
- package/node_modules/tar/dist/esm/header.js +71 -53
- package/node_modules/tar/dist/esm/index.d.ts +25 -18
- package/node_modules/tar/dist/esm/index.js +23 -18
- package/node_modules/tar/dist/esm/index.min.js +2 -3
- package/node_modules/tar/dist/esm/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/esm/large-numbers.js +4 -4
- package/node_modules/tar/dist/esm/list.d.ts +23 -6
- package/node_modules/tar/dist/esm/list.js +96 -101
- package/node_modules/tar/dist/esm/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/esm/mkdir.js +119 -154
- package/node_modules/tar/dist/esm/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/esm/options.d.ts +284 -513
- package/node_modules/tar/dist/esm/options.js +17 -51
- package/node_modules/tar/dist/esm/pack.d.ts +150 -96
- package/node_modules/tar/dist/esm/pack.js +750 -441
- package/node_modules/tar/dist/esm/parser.d.ts +98 -0
- package/node_modules/tar/dist/esm/parser.js +448 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/esm/path-reservations.js +110 -140
- package/node_modules/tar/dist/esm/path.d.ts +19 -0
- package/node_modules/tar/dist/esm/path.js +80 -0
- package/node_modules/tar/dist/esm/pax.d.ts +3 -1
- package/node_modules/tar/dist/esm/pax.js +66 -35
- package/node_modules/tar/dist/esm/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/esm/read-entry.js +248 -96
- package/node_modules/tar/dist/esm/read-file.d.ts +22 -0
- package/node_modules/tar/dist/esm/read-file.js +99 -0
- package/node_modules/tar/dist/esm/replace.d.ts +45 -1
- package/node_modules/tar/dist/esm/replace.js +160 -207
- package/node_modules/tar/dist/esm/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/esm/server/codecs.js +214 -0
- package/node_modules/tar/dist/esm/server/index.d.ts +115 -0
- package/node_modules/tar/dist/esm/server/index.js +102 -0
- package/node_modules/tar/dist/esm/server/index.min.js +3 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/esm/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/esm/to-stream.js +18 -0
- package/node_modules/tar/dist/esm/types.d.ts +4 -3
- package/node_modules/tar/dist/esm/types.js +4 -3
- package/node_modules/tar/dist/esm/unpack.d.ts +143 -89
- package/node_modules/tar/dist/esm/unpack.js +776 -719
- package/node_modules/tar/dist/esm/update.d.ts +11 -1
- package/node_modules/tar/dist/esm/update.js +35 -28
- package/node_modules/tar/dist/esm/warn.d.ts +27 -0
- package/node_modules/tar/dist/esm/warn.js +31 -0
- package/node_modules/tar/dist/esm/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/esm/win32-path.js +60 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/esm/write-entry.js +107 -633
- package/node_modules/tar/dist/esm/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/esm/write-flag.js +25 -0
- package/node_modules/tar/package.json +68 -224
- package/package.json +2 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-A5ZEMOVR.js +0 -2
- package/dist/cli-bundle/chunks/chunk-AJLU6KLW.js +0 -2
- package/dist/cli-bundle/chunks/chunk-C6WM6ZN4.js +0 -9
- package/dist/cli-bundle/chunks/chunk-HZZLSBIJ.js +0 -2
- package/dist/cli-bundle/chunks/chunk-L2ZSSMYY.js +0 -2
- package/dist/cli-bundle/chunks/chunk-NRQCBUYD.js +0 -113
- package/dist/cli-bundle/chunks/chunk-QDV7S2QS.js +0 -2
- package/dist/cli-bundle/chunks/item-revision-3LENTXYF.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-66RDV7PH.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HTDYNY4L.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-N64AC5G6.js +0 -100
- package/dist/cli-bundle/focused-chunks/chunk-PT7RT3T6.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-QZRYGYTI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-SQMOF65W.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-T3ILWAEV.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-W4JMV7GF.js +0 -3
- package/dist/cli-bundle/focused-chunks/item-revision-723XCQPS.js +0 -2
- package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
- package/node_modules/@isaacs/fs-minipass/README.md +0 -71
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/package.json +0 -72
- package/node_modules/chownr/LICENSE.md +0 -63
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
- package/node_modules/chownr/dist/commonjs/index.js +0 -93
- package/node_modules/chownr/dist/commonjs/package.json +0 -3
- package/node_modules/chownr/dist/esm/index.d.ts +0 -3
- package/node_modules/chownr/dist/esm/index.js +0 -85
- package/node_modules/chownr/dist/esm/package.json +0 -3
- package/node_modules/chownr/package.json +0 -69
- package/node_modules/minipass/LICENSE.md +0 -55
- package/node_modules/minipass/README.md +0 -825
- package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
- package/node_modules/minipass/dist/commonjs/index.js +0 -1038
- package/node_modules/minipass/dist/commonjs/package.json +0 -3
- package/node_modules/minipass/dist/esm/index.d.ts +0 -545
- package/node_modules/minipass/dist/esm/index.js +0 -1020
- package/node_modules/minipass/dist/esm/package.json +0 -3
- package/node_modules/minipass/package.json +0 -77
- package/node_modules/minizlib/LICENSE +0 -26
- package/node_modules/minizlib/README.md +0 -64
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
- package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
- package/node_modules/minizlib/dist/commonjs/index.js +0 -416
- package/node_modules/minizlib/dist/commonjs/package.json +0 -3
- package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/esm/constants.js +0 -117
- package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
- package/node_modules/minizlib/dist/esm/index.js +0 -363
- package/node_modules/minizlib/dist/esm/package.json +0 -3
- package/node_modules/minizlib/package.json +0 -80
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
- package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
- package/node_modules/tar/dist/commonjs/make-command.js +0 -52
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
- package/node_modules/tar/dist/commonjs/parse.d.ts +0 -92
- package/node_modules/tar/dist/commonjs/parse.js +0 -655
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
- package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
- package/node_modules/tar/dist/esm/make-command.js +0 -48
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
- package/node_modules/tar/dist/esm/parse.d.ts +0 -92
- package/node_modules/tar/dist/esm/parse.js +0 -651
- package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/esm/process-umask.js +0 -3
- package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/esm/warn-method.js +0 -27
- package/node_modules/yallist/LICENSE.md +0 -63
- package/node_modules/yallist/README.md +0 -205
- package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
- package/node_modules/yallist/dist/commonjs/index.js +0 -384
- package/node_modules/yallist/dist/commonjs/package.json +0 -3
- package/node_modules/yallist/dist/esm/index.d.ts +0 -39
- package/node_modules/yallist/dist/esm/index.js +0 -379
- package/node_modules/yallist/dist/esm/package.json +0 -3
- package/node_modules/yallist/package.json +0 -68
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const warnMethod = (self, code, message, data = {}) => {
|
|
2
|
-
if (self.file) {
|
|
3
|
-
data.file = self.file;
|
|
4
|
-
}
|
|
5
|
-
if (self.cwd) {
|
|
6
|
-
data.cwd = self.cwd;
|
|
7
|
-
}
|
|
8
|
-
data.code =
|
|
9
|
-
(message instanceof Error &&
|
|
10
|
-
message.code) ||
|
|
11
|
-
code;
|
|
12
|
-
data.tarCode = code;
|
|
13
|
-
if (!self.strict && data.recoverable !== false) {
|
|
14
|
-
if (message instanceof Error) {
|
|
15
|
-
data = Object.assign(message, data);
|
|
16
|
-
message = message.message;
|
|
17
|
-
}
|
|
18
|
-
self.emit('warn', code, message, data);
|
|
19
|
-
}
|
|
20
|
-
else if (message instanceof Error) {
|
|
21
|
-
self.emit('error', Object.assign(message, data));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
self.emit('error', Object.assign(new Error(`${code}: ${message}`), data));
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=warn-method.js.map
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
All packages under `src/` are licensed according to the terms in
|
|
2
|
-
their respective `LICENSE` or `LICENSE.md` files.
|
|
3
|
-
|
|
4
|
-
The remainder of this project is licensed under the Blue Oak
|
|
5
|
-
Model License, as follows:
|
|
6
|
-
|
|
7
|
-
-----
|
|
8
|
-
|
|
9
|
-
# Blue Oak Model License
|
|
10
|
-
|
|
11
|
-
Version 1.0.0
|
|
12
|
-
|
|
13
|
-
## Purpose
|
|
14
|
-
|
|
15
|
-
This license gives everyone as much permission to work with
|
|
16
|
-
this software as possible, while protecting contributors
|
|
17
|
-
from liability.
|
|
18
|
-
|
|
19
|
-
## Acceptance
|
|
20
|
-
|
|
21
|
-
In order to receive this license, you must agree to its
|
|
22
|
-
rules. The rules of this license are both obligations
|
|
23
|
-
under that agreement and conditions to your license.
|
|
24
|
-
You must not do anything with this software that triggers
|
|
25
|
-
a rule that you cannot or will not follow.
|
|
26
|
-
|
|
27
|
-
## Copyright
|
|
28
|
-
|
|
29
|
-
Each contributor licenses you to do everything with this
|
|
30
|
-
software that would otherwise infringe that contributor's
|
|
31
|
-
copyright in it.
|
|
32
|
-
|
|
33
|
-
## Notices
|
|
34
|
-
|
|
35
|
-
You must ensure that everyone who gets a copy of
|
|
36
|
-
any part of this software from you, with or without
|
|
37
|
-
changes, also gets the text of this license or a link to
|
|
38
|
-
<https://blueoakcouncil.org/license/1.0.0>.
|
|
39
|
-
|
|
40
|
-
## Excuse
|
|
41
|
-
|
|
42
|
-
If anyone notifies you in writing that you have not
|
|
43
|
-
complied with [Notices](#notices), you can keep your
|
|
44
|
-
license by taking all practical steps to comply within 30
|
|
45
|
-
days after the notice. If you do not do so, your license
|
|
46
|
-
ends immediately.
|
|
47
|
-
|
|
48
|
-
## Patent
|
|
49
|
-
|
|
50
|
-
Each contributor licenses you to do everything with this
|
|
51
|
-
software that would otherwise infringe any patent claims
|
|
52
|
-
they can license or become able to license.
|
|
53
|
-
|
|
54
|
-
## Reliability
|
|
55
|
-
|
|
56
|
-
No contributor can revoke this license.
|
|
57
|
-
|
|
58
|
-
## No Liability
|
|
59
|
-
|
|
60
|
-
***As far as the law allows, this software comes as is,
|
|
61
|
-
without any warranty or condition, and no contributor
|
|
62
|
-
will be liable to anyone for any damages related to this
|
|
63
|
-
software or this license, under any kind of legal claim.***
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
# yallist
|
|
2
|
-
|
|
3
|
-
Yet Another Linked List
|
|
4
|
-
|
|
5
|
-
There are many doubly-linked list implementations like it, but this
|
|
6
|
-
one is mine.
|
|
7
|
-
|
|
8
|
-
For when an array would be too big, and a Map can't be iterated in
|
|
9
|
-
reverse order.
|
|
10
|
-
|
|
11
|
-
## basic usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import { Yallist } from 'yallist'
|
|
15
|
-
var myList = new Yallist([1, 2, 3])
|
|
16
|
-
myList.push('foo')
|
|
17
|
-
myList.unshift('bar')
|
|
18
|
-
// of course pop() and shift() are there, too
|
|
19
|
-
console.log(myList.toArray()) // ['bar', 1, 2, 3, 'foo']
|
|
20
|
-
myList.forEach(function (k) {
|
|
21
|
-
// walk the list head to tail
|
|
22
|
-
})
|
|
23
|
-
myList.forEachReverse(function (k, index, list) {
|
|
24
|
-
// walk the list tail to head
|
|
25
|
-
})
|
|
26
|
-
var myDoubledList = myList.map(function (k) {
|
|
27
|
-
return k + k
|
|
28
|
-
})
|
|
29
|
-
// now myDoubledList contains ['barbar', 2, 4, 6, 'foofoo']
|
|
30
|
-
// mapReverse is also a thing
|
|
31
|
-
var myDoubledListReverse = myList.mapReverse(function (k) {
|
|
32
|
-
return k + k
|
|
33
|
-
}) // ['foofoo', 6, 4, 2, 'barbar']
|
|
34
|
-
|
|
35
|
-
var reduced = myList.reduce(function (set, entry) {
|
|
36
|
-
set += entry
|
|
37
|
-
return set
|
|
38
|
-
}, 'start')
|
|
39
|
-
console.log(reduced) // 'startfoo123bar'
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## api
|
|
43
|
-
|
|
44
|
-
The whole API is considered "public".
|
|
45
|
-
|
|
46
|
-
Functions with the same name as an Array method work more or less the
|
|
47
|
-
same way.
|
|
48
|
-
|
|
49
|
-
There's reverse versions of most things because that's the point.
|
|
50
|
-
|
|
51
|
-
### Yallist
|
|
52
|
-
|
|
53
|
-
Default export, the class that holds and manages a list.
|
|
54
|
-
|
|
55
|
-
Call it with either a forEach-able (like an array) or a set of
|
|
56
|
-
arguments, to initialize the list.
|
|
57
|
-
|
|
58
|
-
The Array-ish methods all act like you'd expect. No magic length,
|
|
59
|
-
though, so if you change that it won't automatically prune or add
|
|
60
|
-
empty spots.
|
|
61
|
-
|
|
62
|
-
### Yallist.create(..)
|
|
63
|
-
|
|
64
|
-
Alias for Yallist function. Some people like factories.
|
|
65
|
-
|
|
66
|
-
#### yallist.head
|
|
67
|
-
|
|
68
|
-
The first node in the list
|
|
69
|
-
|
|
70
|
-
#### yallist.tail
|
|
71
|
-
|
|
72
|
-
The last node in the list
|
|
73
|
-
|
|
74
|
-
#### yallist.length
|
|
75
|
-
|
|
76
|
-
The number of nodes in the list. (Change this at your peril. It is
|
|
77
|
-
not magic like Array length.)
|
|
78
|
-
|
|
79
|
-
#### yallist.toArray()
|
|
80
|
-
|
|
81
|
-
Convert the list to an array.
|
|
82
|
-
|
|
83
|
-
#### yallist.forEach(fn, [thisp])
|
|
84
|
-
|
|
85
|
-
Call a function on each item in the list.
|
|
86
|
-
|
|
87
|
-
#### yallist.forEachReverse(fn, [thisp])
|
|
88
|
-
|
|
89
|
-
Call a function on each item in the list, in reverse order.
|
|
90
|
-
|
|
91
|
-
#### yallist.get(n)
|
|
92
|
-
|
|
93
|
-
Get the data at position `n` in the list. If you use this a lot,
|
|
94
|
-
probably better off just using an Array.
|
|
95
|
-
|
|
96
|
-
#### yallist.getReverse(n)
|
|
97
|
-
|
|
98
|
-
Get the data at position `n`, counting from the tail.
|
|
99
|
-
|
|
100
|
-
#### yallist.map(fn, thisp)
|
|
101
|
-
|
|
102
|
-
Create a new Yallist with the result of calling the function on each
|
|
103
|
-
item.
|
|
104
|
-
|
|
105
|
-
#### yallist.mapReverse(fn, thisp)
|
|
106
|
-
|
|
107
|
-
Same as `map`, but in reverse.
|
|
108
|
-
|
|
109
|
-
#### yallist.pop()
|
|
110
|
-
|
|
111
|
-
Get the data from the list tail, and remove the tail from the list.
|
|
112
|
-
|
|
113
|
-
#### yallist.push(item, ...)
|
|
114
|
-
|
|
115
|
-
Insert one or more items to the tail of the list.
|
|
116
|
-
|
|
117
|
-
#### yallist.reduce(fn, initialValue)
|
|
118
|
-
|
|
119
|
-
Like Array.reduce.
|
|
120
|
-
|
|
121
|
-
#### yallist.reduceReverse
|
|
122
|
-
|
|
123
|
-
Like Array.reduce, but in reverse.
|
|
124
|
-
|
|
125
|
-
#### yallist.reverse
|
|
126
|
-
|
|
127
|
-
Reverse the list in place.
|
|
128
|
-
|
|
129
|
-
#### yallist.shift()
|
|
130
|
-
|
|
131
|
-
Get the data from the list head, and remove the head from the list.
|
|
132
|
-
|
|
133
|
-
#### yallist.slice([from], [to])
|
|
134
|
-
|
|
135
|
-
Just like Array.slice, but returns a new Yallist.
|
|
136
|
-
|
|
137
|
-
#### yallist.sliceReverse([from], [to])
|
|
138
|
-
|
|
139
|
-
Just like yallist.slice, but the result is returned in reverse.
|
|
140
|
-
|
|
141
|
-
#### yallist.splice(start, deleteCount, ...)
|
|
142
|
-
|
|
143
|
-
Like Array.splice.
|
|
144
|
-
|
|
145
|
-
#### yallist.toArray()
|
|
146
|
-
|
|
147
|
-
Create an array representation of the list.
|
|
148
|
-
|
|
149
|
-
#### yallist.toArrayReverse()
|
|
150
|
-
|
|
151
|
-
Create a reversed array representation of the list.
|
|
152
|
-
|
|
153
|
-
#### yallist.unshift(item, ...)
|
|
154
|
-
|
|
155
|
-
Insert one or more items to the head of the list.
|
|
156
|
-
|
|
157
|
-
#### yallist.unshiftNode(node)
|
|
158
|
-
|
|
159
|
-
Move a Node object to the front of the list. (That is, pull it out of
|
|
160
|
-
wherever it lives, and make it the new head.)
|
|
161
|
-
|
|
162
|
-
If the node belongs to a different list, then that list will remove it
|
|
163
|
-
first.
|
|
164
|
-
|
|
165
|
-
#### yallist.pushNode(node)
|
|
166
|
-
|
|
167
|
-
Move a Node object to the end of the list. (That is, pull it out of
|
|
168
|
-
wherever it lives, and make it the new tail.)
|
|
169
|
-
|
|
170
|
-
If the node belongs to a list already, then that list will remove it
|
|
171
|
-
first.
|
|
172
|
-
|
|
173
|
-
#### yallist.removeNode(node)
|
|
174
|
-
|
|
175
|
-
Remove a node from the list, preserving referential integrity of head
|
|
176
|
-
and tail and other nodes.
|
|
177
|
-
|
|
178
|
-
Will throw an error if you try to have a list remove a node that
|
|
179
|
-
doesn't belong to it.
|
|
180
|
-
|
|
181
|
-
### Yallist.Node
|
|
182
|
-
|
|
183
|
-
The class that holds the data and is actually the list.
|
|
184
|
-
|
|
185
|
-
Call with `const n = new Node(value, previousNode, nextNode)`
|
|
186
|
-
|
|
187
|
-
Note that if you do direct operations on Nodes themselves, it's very
|
|
188
|
-
easy to get into weird states where the list is broken. Be careful :)
|
|
189
|
-
|
|
190
|
-
#### node.next
|
|
191
|
-
|
|
192
|
-
The next node in the list.
|
|
193
|
-
|
|
194
|
-
#### node.prev
|
|
195
|
-
|
|
196
|
-
The previous node in the list.
|
|
197
|
-
|
|
198
|
-
#### node.value
|
|
199
|
-
|
|
200
|
-
The data the node contains.
|
|
201
|
-
|
|
202
|
-
#### node.list
|
|
203
|
-
|
|
204
|
-
The list to which this node belongs. (Null if it does not belong to
|
|
205
|
-
any list.)
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare class Yallist<T = unknown> {
|
|
2
|
-
tail?: Node<T>;
|
|
3
|
-
head?: Node<T>;
|
|
4
|
-
length: number;
|
|
5
|
-
static create<T = unknown>(list?: Iterable<T>): Yallist<T>;
|
|
6
|
-
constructor(list?: Iterable<T>);
|
|
7
|
-
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
8
|
-
removeNode(node: Node<T>): Node<T> | undefined;
|
|
9
|
-
unshiftNode(node: Node<T>): void;
|
|
10
|
-
pushNode(node: Node<T>): void;
|
|
11
|
-
push(...args: T[]): number;
|
|
12
|
-
unshift(...args: T[]): number;
|
|
13
|
-
pop(): T | undefined;
|
|
14
|
-
shift(): T | undefined;
|
|
15
|
-
forEach(fn: (value: T, i: number, list: Yallist<T>) => any, thisp?: any): void;
|
|
16
|
-
forEachReverse(fn: (value: T, i: number, list: Yallist<T>) => any, thisp?: any): void;
|
|
17
|
-
get(n: number): T | undefined;
|
|
18
|
-
getReverse(n: number): T | undefined;
|
|
19
|
-
map<R = any>(fn: (value: T, list: Yallist<T>) => R, thisp?: any): Yallist<R>;
|
|
20
|
-
mapReverse<R = any>(fn: (value: T, list: Yallist<T>) => R, thisp?: any): Yallist<R>;
|
|
21
|
-
reduce(fn: (left: T, right: T, i: number) => T): T;
|
|
22
|
-
reduce<R = any>(fn: (acc: R, next: T, i: number) => R, initial: R): R;
|
|
23
|
-
reduceReverse(fn: (left: T, right: T, i: number) => T): T;
|
|
24
|
-
reduceReverse<R = any>(fn: (acc: R, next: T, i: number) => R, initial: R): R;
|
|
25
|
-
toArray(): any[];
|
|
26
|
-
toArrayReverse(): any[];
|
|
27
|
-
slice(from?: number, to?: number): Yallist<unknown>;
|
|
28
|
-
sliceReverse(from?: number, to?: number): Yallist<unknown>;
|
|
29
|
-
splice(start: number, deleteCount?: number, ...nodes: T[]): T[];
|
|
30
|
-
reverse(): this;
|
|
31
|
-
}
|
|
32
|
-
export declare class Node<T = unknown> {
|
|
33
|
-
list?: Yallist<T>;
|
|
34
|
-
next?: Node<T>;
|
|
35
|
-
prev?: Node<T>;
|
|
36
|
-
value: T;
|
|
37
|
-
constructor(value: T, prev?: Node<T> | undefined, next?: Node<T> | undefined, list?: Yallist<T> | undefined);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Node = exports.Yallist = void 0;
|
|
4
|
-
class Yallist {
|
|
5
|
-
tail;
|
|
6
|
-
head;
|
|
7
|
-
length = 0;
|
|
8
|
-
static create(list = []) {
|
|
9
|
-
return new Yallist(list);
|
|
10
|
-
}
|
|
11
|
-
constructor(list = []) {
|
|
12
|
-
for (const item of list) {
|
|
13
|
-
this.push(item);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
*[Symbol.iterator]() {
|
|
17
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
|
18
|
-
yield walker.value;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
removeNode(node) {
|
|
22
|
-
if (node.list !== this) {
|
|
23
|
-
throw new Error('removing node which does not belong to this list');
|
|
24
|
-
}
|
|
25
|
-
const next = node.next;
|
|
26
|
-
const prev = node.prev;
|
|
27
|
-
if (next) {
|
|
28
|
-
next.prev = prev;
|
|
29
|
-
}
|
|
30
|
-
if (prev) {
|
|
31
|
-
prev.next = next;
|
|
32
|
-
}
|
|
33
|
-
if (node === this.head) {
|
|
34
|
-
this.head = next;
|
|
35
|
-
}
|
|
36
|
-
if (node === this.tail) {
|
|
37
|
-
this.tail = prev;
|
|
38
|
-
}
|
|
39
|
-
this.length--;
|
|
40
|
-
node.next = undefined;
|
|
41
|
-
node.prev = undefined;
|
|
42
|
-
node.list = undefined;
|
|
43
|
-
return next;
|
|
44
|
-
}
|
|
45
|
-
unshiftNode(node) {
|
|
46
|
-
if (node === this.head) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (node.list) {
|
|
50
|
-
node.list.removeNode(node);
|
|
51
|
-
}
|
|
52
|
-
const head = this.head;
|
|
53
|
-
node.list = this;
|
|
54
|
-
node.next = head;
|
|
55
|
-
if (head) {
|
|
56
|
-
head.prev = node;
|
|
57
|
-
}
|
|
58
|
-
this.head = node;
|
|
59
|
-
if (!this.tail) {
|
|
60
|
-
this.tail = node;
|
|
61
|
-
}
|
|
62
|
-
this.length++;
|
|
63
|
-
}
|
|
64
|
-
pushNode(node) {
|
|
65
|
-
if (node === this.tail) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
if (node.list) {
|
|
69
|
-
node.list.removeNode(node);
|
|
70
|
-
}
|
|
71
|
-
const tail = this.tail;
|
|
72
|
-
node.list = this;
|
|
73
|
-
node.prev = tail;
|
|
74
|
-
if (tail) {
|
|
75
|
-
tail.next = node;
|
|
76
|
-
}
|
|
77
|
-
this.tail = node;
|
|
78
|
-
if (!this.head) {
|
|
79
|
-
this.head = node;
|
|
80
|
-
}
|
|
81
|
-
this.length++;
|
|
82
|
-
}
|
|
83
|
-
push(...args) {
|
|
84
|
-
for (let i = 0, l = args.length; i < l; i++) {
|
|
85
|
-
push(this, args[i]);
|
|
86
|
-
}
|
|
87
|
-
return this.length;
|
|
88
|
-
}
|
|
89
|
-
unshift(...args) {
|
|
90
|
-
for (var i = 0, l = args.length; i < l; i++) {
|
|
91
|
-
unshift(this, args[i]);
|
|
92
|
-
}
|
|
93
|
-
return this.length;
|
|
94
|
-
}
|
|
95
|
-
pop() {
|
|
96
|
-
if (!this.tail) {
|
|
97
|
-
return undefined;
|
|
98
|
-
}
|
|
99
|
-
const res = this.tail.value;
|
|
100
|
-
const t = this.tail;
|
|
101
|
-
this.tail = this.tail.prev;
|
|
102
|
-
if (this.tail) {
|
|
103
|
-
this.tail.next = undefined;
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
this.head = undefined;
|
|
107
|
-
}
|
|
108
|
-
t.list = undefined;
|
|
109
|
-
this.length--;
|
|
110
|
-
return res;
|
|
111
|
-
}
|
|
112
|
-
shift() {
|
|
113
|
-
if (!this.head) {
|
|
114
|
-
return undefined;
|
|
115
|
-
}
|
|
116
|
-
const res = this.head.value;
|
|
117
|
-
const h = this.head;
|
|
118
|
-
this.head = this.head.next;
|
|
119
|
-
if (this.head) {
|
|
120
|
-
this.head.prev = undefined;
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
this.tail = undefined;
|
|
124
|
-
}
|
|
125
|
-
h.list = undefined;
|
|
126
|
-
this.length--;
|
|
127
|
-
return res;
|
|
128
|
-
}
|
|
129
|
-
forEach(fn, thisp) {
|
|
130
|
-
thisp = thisp || this;
|
|
131
|
-
for (let walker = this.head, i = 0; !!walker; i++) {
|
|
132
|
-
fn.call(thisp, walker.value, i, this);
|
|
133
|
-
walker = walker.next;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
forEachReverse(fn, thisp) {
|
|
137
|
-
thisp = thisp || this;
|
|
138
|
-
for (let walker = this.tail, i = this.length - 1; !!walker; i--) {
|
|
139
|
-
fn.call(thisp, walker.value, i, this);
|
|
140
|
-
walker = walker.prev;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
get(n) {
|
|
144
|
-
let i = 0;
|
|
145
|
-
let walker = this.head;
|
|
146
|
-
for (; !!walker && i < n; i++) {
|
|
147
|
-
walker = walker.next;
|
|
148
|
-
}
|
|
149
|
-
if (i === n && !!walker) {
|
|
150
|
-
return walker.value;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
getReverse(n) {
|
|
154
|
-
let i = 0;
|
|
155
|
-
let walker = this.tail;
|
|
156
|
-
for (; !!walker && i < n; i++) {
|
|
157
|
-
// abort out of the list early if we hit a cycle
|
|
158
|
-
walker = walker.prev;
|
|
159
|
-
}
|
|
160
|
-
if (i === n && !!walker) {
|
|
161
|
-
return walker.value;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
map(fn, thisp) {
|
|
165
|
-
thisp = thisp || this;
|
|
166
|
-
const res = new Yallist();
|
|
167
|
-
for (let walker = this.head; !!walker;) {
|
|
168
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
169
|
-
walker = walker.next;
|
|
170
|
-
}
|
|
171
|
-
return res;
|
|
172
|
-
}
|
|
173
|
-
mapReverse(fn, thisp) {
|
|
174
|
-
thisp = thisp || this;
|
|
175
|
-
var res = new Yallist();
|
|
176
|
-
for (let walker = this.tail; !!walker;) {
|
|
177
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
178
|
-
walker = walker.prev;
|
|
179
|
-
}
|
|
180
|
-
return res;
|
|
181
|
-
}
|
|
182
|
-
reduce(fn, initial) {
|
|
183
|
-
let acc;
|
|
184
|
-
let walker = this.head;
|
|
185
|
-
if (arguments.length > 1) {
|
|
186
|
-
acc = initial;
|
|
187
|
-
}
|
|
188
|
-
else if (this.head) {
|
|
189
|
-
walker = this.head.next;
|
|
190
|
-
acc = this.head.value;
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
throw new TypeError('Reduce of empty list with no initial value');
|
|
194
|
-
}
|
|
195
|
-
for (var i = 0; !!walker; i++) {
|
|
196
|
-
acc = fn(acc, walker.value, i);
|
|
197
|
-
walker = walker.next;
|
|
198
|
-
}
|
|
199
|
-
return acc;
|
|
200
|
-
}
|
|
201
|
-
reduceReverse(fn, initial) {
|
|
202
|
-
let acc;
|
|
203
|
-
let walker = this.tail;
|
|
204
|
-
if (arguments.length > 1) {
|
|
205
|
-
acc = initial;
|
|
206
|
-
}
|
|
207
|
-
else if (this.tail) {
|
|
208
|
-
walker = this.tail.prev;
|
|
209
|
-
acc = this.tail.value;
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
throw new TypeError('Reduce of empty list with no initial value');
|
|
213
|
-
}
|
|
214
|
-
for (let i = this.length - 1; !!walker; i--) {
|
|
215
|
-
acc = fn(acc, walker.value, i);
|
|
216
|
-
walker = walker.prev;
|
|
217
|
-
}
|
|
218
|
-
return acc;
|
|
219
|
-
}
|
|
220
|
-
toArray() {
|
|
221
|
-
const arr = new Array(this.length);
|
|
222
|
-
for (let i = 0, walker = this.head; !!walker; i++) {
|
|
223
|
-
arr[i] = walker.value;
|
|
224
|
-
walker = walker.next;
|
|
225
|
-
}
|
|
226
|
-
return arr;
|
|
227
|
-
}
|
|
228
|
-
toArrayReverse() {
|
|
229
|
-
const arr = new Array(this.length);
|
|
230
|
-
for (let i = 0, walker = this.tail; !!walker; i++) {
|
|
231
|
-
arr[i] = walker.value;
|
|
232
|
-
walker = walker.prev;
|
|
233
|
-
}
|
|
234
|
-
return arr;
|
|
235
|
-
}
|
|
236
|
-
slice(from = 0, to = this.length) {
|
|
237
|
-
if (to < 0) {
|
|
238
|
-
to += this.length;
|
|
239
|
-
}
|
|
240
|
-
if (from < 0) {
|
|
241
|
-
from += this.length;
|
|
242
|
-
}
|
|
243
|
-
const ret = new Yallist();
|
|
244
|
-
if (to < from || to < 0) {
|
|
245
|
-
return ret;
|
|
246
|
-
}
|
|
247
|
-
if (from < 0) {
|
|
248
|
-
from = 0;
|
|
249
|
-
}
|
|
250
|
-
if (to > this.length) {
|
|
251
|
-
to = this.length;
|
|
252
|
-
}
|
|
253
|
-
let walker = this.head;
|
|
254
|
-
let i = 0;
|
|
255
|
-
for (i = 0; !!walker && i < from; i++) {
|
|
256
|
-
walker = walker.next;
|
|
257
|
-
}
|
|
258
|
-
for (; !!walker && i < to; i++, walker = walker.next) {
|
|
259
|
-
ret.push(walker.value);
|
|
260
|
-
}
|
|
261
|
-
return ret;
|
|
262
|
-
}
|
|
263
|
-
sliceReverse(from = 0, to = this.length) {
|
|
264
|
-
if (to < 0) {
|
|
265
|
-
to += this.length;
|
|
266
|
-
}
|
|
267
|
-
if (from < 0) {
|
|
268
|
-
from += this.length;
|
|
269
|
-
}
|
|
270
|
-
const ret = new Yallist();
|
|
271
|
-
if (to < from || to < 0) {
|
|
272
|
-
return ret;
|
|
273
|
-
}
|
|
274
|
-
if (from < 0) {
|
|
275
|
-
from = 0;
|
|
276
|
-
}
|
|
277
|
-
if (to > this.length) {
|
|
278
|
-
to = this.length;
|
|
279
|
-
}
|
|
280
|
-
let i = this.length;
|
|
281
|
-
let walker = this.tail;
|
|
282
|
-
for (; !!walker && i > to; i--) {
|
|
283
|
-
walker = walker.prev;
|
|
284
|
-
}
|
|
285
|
-
for (; !!walker && i > from; i--, walker = walker.prev) {
|
|
286
|
-
ret.push(walker.value);
|
|
287
|
-
}
|
|
288
|
-
return ret;
|
|
289
|
-
}
|
|
290
|
-
splice(start, deleteCount = 0, ...nodes) {
|
|
291
|
-
if (start > this.length) {
|
|
292
|
-
start = this.length - 1;
|
|
293
|
-
}
|
|
294
|
-
if (start < 0) {
|
|
295
|
-
start = this.length + start;
|
|
296
|
-
}
|
|
297
|
-
let walker = this.head;
|
|
298
|
-
for (let i = 0; !!walker && i < start; i++) {
|
|
299
|
-
walker = walker.next;
|
|
300
|
-
}
|
|
301
|
-
const ret = [];
|
|
302
|
-
for (let i = 0; !!walker && i < deleteCount; i++) {
|
|
303
|
-
ret.push(walker.value);
|
|
304
|
-
walker = this.removeNode(walker);
|
|
305
|
-
}
|
|
306
|
-
if (!walker) {
|
|
307
|
-
walker = this.tail;
|
|
308
|
-
}
|
|
309
|
-
else if (walker !== this.tail) {
|
|
310
|
-
walker = walker.prev;
|
|
311
|
-
}
|
|
312
|
-
for (const v of nodes) {
|
|
313
|
-
walker = insertAfter(this, walker, v);
|
|
314
|
-
}
|
|
315
|
-
return ret;
|
|
316
|
-
}
|
|
317
|
-
reverse() {
|
|
318
|
-
const head = this.head;
|
|
319
|
-
const tail = this.tail;
|
|
320
|
-
for (let walker = head; !!walker; walker = walker.prev) {
|
|
321
|
-
const p = walker.prev;
|
|
322
|
-
walker.prev = walker.next;
|
|
323
|
-
walker.next = p;
|
|
324
|
-
}
|
|
325
|
-
this.head = tail;
|
|
326
|
-
this.tail = head;
|
|
327
|
-
return this;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
exports.Yallist = Yallist;
|
|
331
|
-
// insertAfter undefined means "make the node the new head of list"
|
|
332
|
-
function insertAfter(self, node, value) {
|
|
333
|
-
const prev = node;
|
|
334
|
-
const next = node ? node.next : self.head;
|
|
335
|
-
const inserted = new Node(value, prev, next, self);
|
|
336
|
-
if (inserted.next === undefined) {
|
|
337
|
-
self.tail = inserted;
|
|
338
|
-
}
|
|
339
|
-
if (inserted.prev === undefined) {
|
|
340
|
-
self.head = inserted;
|
|
341
|
-
}
|
|
342
|
-
self.length++;
|
|
343
|
-
return inserted;
|
|
344
|
-
}
|
|
345
|
-
function push(self, item) {
|
|
346
|
-
self.tail = new Node(item, self.tail, undefined, self);
|
|
347
|
-
if (!self.head) {
|
|
348
|
-
self.head = self.tail;
|
|
349
|
-
}
|
|
350
|
-
self.length++;
|
|
351
|
-
}
|
|
352
|
-
function unshift(self, item) {
|
|
353
|
-
self.head = new Node(item, undefined, self.head, self);
|
|
354
|
-
if (!self.tail) {
|
|
355
|
-
self.tail = self.head;
|
|
356
|
-
}
|
|
357
|
-
self.length++;
|
|
358
|
-
}
|
|
359
|
-
class Node {
|
|
360
|
-
list;
|
|
361
|
-
next;
|
|
362
|
-
prev;
|
|
363
|
-
value;
|
|
364
|
-
constructor(value, prev, next, list) {
|
|
365
|
-
this.list = list;
|
|
366
|
-
this.value = value;
|
|
367
|
-
if (prev) {
|
|
368
|
-
prev.next = this;
|
|
369
|
-
this.prev = prev;
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
this.prev = undefined;
|
|
373
|
-
}
|
|
374
|
-
if (next) {
|
|
375
|
-
next.prev = this;
|
|
376
|
-
this.next = next;
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
this.next = undefined;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
exports.Node = Node;
|
|
384
|
-
//# sourceMappingURL=index.js.map
|