@stryke/fs 0.33.20 → 0.33.21
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 +12 -0
- package/dist/{chunk-Bmb41Sf3.cjs → _virtual/rolldown_runtime.cjs} +1 -1
- package/dist/buffer.cjs +1 -1
- package/dist/buffer.d.cts +32 -2
- package/dist/buffer.d.cts.map +1 -0
- package/dist/buffer.d.mts +32 -2
- package/dist/buffer.d.mts.map +1 -0
- package/dist/buffer.mjs +2 -1
- package/dist/buffer.mjs.map +1 -0
- package/dist/chmod-x.cjs +1 -1
- package/dist/chmod-x.d.cts +44 -2
- package/dist/chmod-x.d.cts.map +1 -0
- package/dist/chmod-x.d.mts +44 -2
- package/dist/chmod-x.d.mts.map +1 -0
- package/dist/chmod-x.mjs +2 -1
- package/dist/chmod-x.mjs.map +1 -0
- package/dist/command-exists.cjs +1 -1
- package/dist/command-exists.d.cts +22 -2
- package/dist/command-exists.d.cts.map +1 -0
- package/dist/command-exists.d.mts +22 -2
- package/dist/command-exists.d.mts.map +1 -0
- package/dist/command-exists.mjs +2 -1
- package/dist/command-exists.mjs.map +1 -0
- package/dist/compress.cjs +1 -1
- package/dist/compress.d.cts +16 -2
- package/dist/compress.d.cts.map +1 -0
- package/dist/compress.d.mts +16 -2
- package/dist/compress.d.mts.map +1 -0
- package/dist/compress.mjs +2 -1
- package/dist/compress.mjs.map +1 -0
- package/dist/constants.d.cts +5 -2
- package/dist/constants.d.cts.map +1 -0
- package/dist/constants.d.mts +5 -2
- package/dist/constants.d.mts.map +1 -0
- package/dist/convert/src/array-buffer-to-string.cjs +1 -0
- package/dist/convert/src/array-buffer-to-string.mjs +2 -0
- package/dist/convert/src/array-buffer-to-string.mjs.map +1 -0
- package/dist/convert/src/to-array.cjs +1 -0
- package/dist/convert/src/to-array.mjs +2 -0
- package/dist/convert/src/to-array.mjs.map +1 -0
- package/dist/convert/src/uint8-array-to-string.cjs +1 -0
- package/dist/convert/src/uint8-array-to-string.mjs +2 -0
- package/dist/convert/src/uint8-array-to-string.mjs.map +1 -0
- package/dist/copy-file.cjs +1 -1
- package/dist/copy-file.d.cts +39 -2
- package/dist/copy-file.d.cts.map +1 -0
- package/dist/copy-file.d.mts +39 -2
- package/dist/copy-file.d.mts.map +1 -0
- package/dist/copy-file.mjs +2 -1
- package/dist/copy-file.mjs.map +1 -0
- package/dist/exists.cjs +1 -1
- package/dist/exists.d.cts +18 -2
- package/dist/exists.d.cts.map +1 -0
- package/dist/exists.d.mts +18 -2
- package/dist/exists.d.mts.map +1 -0
- package/dist/exists.mjs +2 -1
- package/dist/exists.mjs.map +1 -0
- package/dist/get-parent-path.cjs +1 -1
- package/dist/get-parent-path.d.cts +32 -2
- package/dist/get-parent-path.d.cts.map +1 -0
- package/dist/get-parent-path.d.mts +32 -2
- package/dist/get-parent-path.d.mts.map +1 -0
- package/dist/get-parent-path.mjs +2 -1
- package/dist/get-parent-path.mjs.map +1 -0
- package/dist/get-workspace-root.cjs +1 -1
- package/dist/get-workspace-root.d.cts +48 -2
- package/dist/get-workspace-root.d.cts.map +1 -0
- package/dist/get-workspace-root.d.mts +48 -2
- package/dist/get-workspace-root.d.mts.map +1 -0
- package/dist/get-workspace-root.mjs +2 -1
- package/dist/get-workspace-root.mjs.map +1 -0
- package/dist/helpers/src/get-unique.cjs +1 -0
- package/dist/helpers/src/get-unique.mjs +2 -0
- package/dist/helpers/src/get-unique.mjs.map +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.cts +50 -2
- package/dist/helpers.d.cts.map +1 -0
- package/dist/helpers.d.mts +50 -2
- package/dist/helpers.d.mts.map +1 -0
- package/dist/helpers.mjs +2 -1
- package/dist/helpers.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +24 -24
- package/dist/index.d.mts +24 -24
- package/dist/index.mjs +1 -1
- package/dist/install.cjs +1 -1
- package/dist/install.d.cts +28 -2
- package/dist/install.d.cts.map +1 -0
- package/dist/install.d.mts +29 -2
- package/dist/install.d.mts.map +1 -0
- package/dist/install.mjs +2 -1
- package/dist/install.mjs.map +1 -0
- package/dist/is-file.cjs +1 -1
- package/dist/is-file.d.cts +36 -2
- package/dist/is-file.d.cts.map +1 -0
- package/dist/is-file.d.mts +36 -2
- package/dist/is-file.d.mts.map +1 -0
- package/dist/is-file.mjs +2 -1
- package/dist/is-file.mjs.map +1 -0
- package/dist/json/src/storm-json.cjs +1 -0
- package/dist/json/src/storm-json.mjs +2 -0
- package/dist/json/src/storm-json.mjs.map +1 -0
- package/dist/json/src/types.d.cts +33 -0
- package/dist/json/src/types.d.cts.map +1 -0
- package/dist/json/src/types.d.mts +33 -0
- package/dist/json/src/types.d.mts.map +1 -0
- package/dist/json/src/utils/code-frames.cjs +3 -0
- package/dist/json/src/utils/code-frames.mjs +4 -0
- package/dist/json/src/utils/code-frames.mjs.map +1 -0
- package/dist/json/src/utils/parse-error.cjs +1 -0
- package/dist/json/src/utils/parse-error.mjs +2 -0
- package/dist/json/src/utils/parse-error.mjs.map +1 -0
- package/dist/json/src/utils/parse.cjs +1 -0
- package/dist/json/src/utils/parse.mjs +2 -0
- package/dist/json/src/utils/parse.mjs.map +1 -0
- package/dist/json/src/utils/stringify.cjs +1 -0
- package/dist/json/src/utils/stringify.mjs +2 -0
- package/dist/json/src/utils/stringify.mjs.map +1 -0
- package/dist/json/src/utils/strip-comments.cjs +4 -0
- package/dist/json/src/utils/strip-comments.mjs +5 -0
- package/dist/json/src/utils/strip-comments.mjs.map +1 -0
- package/dist/json.cjs +1 -1
- package/dist/json.d.cts +54 -2
- package/dist/json.d.cts.map +1 -0
- package/dist/json.d.mts +54 -2
- package/dist/json.d.mts.map +1 -0
- package/dist/json.mjs +2 -1
- package/dist/json.mjs.map +1 -0
- package/dist/list-files.cjs +1 -1
- package/dist/list-files.d.cts +51 -2
- package/dist/list-files.d.cts.map +1 -0
- package/dist/list-files.d.mts +51 -2
- package/dist/list-files.d.mts.map +1 -0
- package/dist/list-files.mjs +2 -1
- package/dist/list-files.mjs.map +1 -0
- package/dist/package-fns.cjs +1 -1
- package/dist/package-fns.d.cts +95 -2
- package/dist/package-fns.d.cts.map +1 -0
- package/dist/package-fns.d.mts +95 -2
- package/dist/package-fns.d.mts.map +1 -0
- package/dist/package-fns.mjs +2 -1
- package/dist/package-fns.mjs.map +1 -0
- package/dist/path/src/append.cjs +1 -0
- package/dist/path/src/append.mjs +2 -0
- package/dist/path/src/append.mjs.map +1 -0
- package/dist/path/src/correct-path.cjs +1 -0
- package/dist/path/src/correct-path.mjs +2 -0
- package/dist/path/src/correct-path.mjs.map +1 -0
- package/dist/path/src/cwd.cjs +1 -0
- package/dist/path/src/cwd.mjs +2 -0
- package/dist/path/src/cwd.mjs.map +1 -0
- package/dist/path/src/file-path-fns.cjs +1 -0
- package/dist/path/src/file-path-fns.mjs +2 -0
- package/dist/path/src/file-path-fns.mjs.map +1 -0
- package/dist/path/src/is-parent-path.cjs +1 -0
- package/dist/path/src/is-parent-path.mjs +2 -0
- package/dist/path/src/is-parent-path.mjs.map +1 -0
- package/dist/path/src/is-root-dir.cjs +1 -0
- package/dist/path/src/is-root-dir.mjs +2 -0
- package/dist/path/src/is-root-dir.mjs.map +1 -0
- package/dist/path/src/is-type.cjs +1 -0
- package/dist/path/src/is-type.mjs +2 -0
- package/dist/path/src/is-type.mjs.map +1 -0
- package/dist/path/src/join-paths.cjs +1 -0
- package/dist/path/src/join-paths.mjs +2 -0
- package/dist/path/src/join-paths.mjs.map +1 -0
- package/dist/path/src/regex.cjs +1 -0
- package/dist/path/src/regex.mjs +2 -0
- package/dist/path/src/regex.mjs.map +1 -0
- package/dist/path/src/replace.cjs +1 -0
- package/dist/path/src/replace.mjs +2 -0
- package/dist/path/src/replace.mjs.map +1 -0
- package/dist/path/src/resolve-parent-path.cjs +1 -0
- package/dist/path/src/resolve-parent-path.mjs +2 -0
- package/dist/path/src/resolve-parent-path.mjs.map +1 -0
- package/dist/path/src/slash.cjs +1 -0
- package/dist/path/src/slash.mjs +2 -0
- package/dist/path/src/slash.mjs.map +1 -0
- package/dist/read-file.cjs +1 -1
- package/dist/read-file.d.cts +30 -2
- package/dist/read-file.d.cts.map +1 -0
- package/dist/read-file.d.mts +30 -2
- package/dist/read-file.d.mts.map +1 -0
- package/dist/read-file.mjs +2 -1
- package/dist/read-file.mjs.map +1 -0
- package/dist/registry.cjs +1 -1
- package/dist/registry.d.cts +53 -2
- package/dist/registry.d.cts.map +1 -0
- package/dist/registry.d.mts +53 -2
- package/dist/registry.d.mts.map +1 -0
- package/dist/registry.mjs +2 -1
- package/dist/registry.mjs.map +1 -0
- package/dist/remove-file.cjs +1 -1
- package/dist/remove-file.d.cts +16 -2
- package/dist/remove-file.d.cts.map +1 -0
- package/dist/remove-file.d.mts +16 -2
- package/dist/remove-file.d.mts.map +1 -0
- package/dist/remove-file.mjs +2 -1
- package/dist/remove-file.mjs.map +1 -0
- package/dist/resolve.cjs +3 -1
- package/dist/resolve.d.cts +106 -2
- package/dist/resolve.d.cts.map +1 -0
- package/dist/resolve.d.mts +106 -2
- package/dist/resolve.d.mts.map +1 -0
- package/dist/resolve.mjs +4 -1
- package/dist/resolve.mjs.map +1 -0
- package/dist/semver-fns.cjs +1 -1
- package/dist/semver-fns.d.cts +92 -2
- package/dist/semver-fns.d.cts.map +1 -0
- package/dist/semver-fns.d.mts +92 -2
- package/dist/semver-fns.d.mts.map +1 -0
- package/dist/semver-fns.mjs +2 -1
- package/dist/semver-fns.mjs.map +1 -0
- package/dist/string-format/src/package.cjs +1 -0
- package/dist/string-format/src/package.mjs +2 -0
- package/dist/string-format/src/package.mjs.map +1 -0
- package/dist/toml.cjs +3 -1
- package/dist/toml.d.cts +81 -2
- package/dist/toml.d.cts.map +1 -0
- package/dist/toml.d.mts +81 -2
- package/dist/toml.d.mts.map +1 -0
- package/dist/toml.mjs +4 -1
- package/dist/toml.mjs.map +1 -0
- package/dist/tsconfig.cjs +1 -1
- package/dist/tsconfig.d.cts +14 -2
- package/dist/tsconfig.d.cts.map +1 -0
- package/dist/tsconfig.d.mts +14 -2
- package/dist/tsconfig.d.mts.map +1 -0
- package/dist/tsconfig.mjs +2 -1
- package/dist/tsconfig.mjs.map +1 -0
- package/dist/type-checks/src/get-object-tag.cjs +1 -0
- package/dist/type-checks/src/get-object-tag.mjs +2 -0
- package/dist/type-checks/src/get-object-tag.mjs.map +1 -0
- package/dist/type-checks/src/index.cjs +1 -0
- package/dist/type-checks/src/index.mjs +1 -0
- package/dist/type-checks/src/is-buffer.cjs +1 -0
- package/dist/type-checks/src/is-buffer.mjs +2 -0
- package/dist/type-checks/src/is-buffer.mjs.map +1 -0
- package/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/type-checks/src/is-collection.mjs +1 -0
- package/dist/type-checks/src/is-empty.cjs +1 -0
- package/dist/type-checks/src/is-empty.mjs +2 -0
- package/dist/type-checks/src/is-empty.mjs.map +1 -0
- package/dist/type-checks/src/is-error.cjs +1 -0
- package/dist/type-checks/src/is-error.mjs +2 -0
- package/dist/type-checks/src/is-error.mjs.map +1 -0
- package/dist/type-checks/src/is-null.cjs +1 -0
- package/dist/type-checks/src/is-null.mjs +2 -0
- package/dist/type-checks/src/is-null.mjs.map +1 -0
- package/dist/type-checks/src/is-number.cjs +1 -0
- package/dist/type-checks/src/is-number.mjs +2 -0
- package/dist/type-checks/src/is-number.mjs.map +1 -0
- package/dist/type-checks/src/is-object.cjs +1 -0
- package/dist/type-checks/src/is-object.mjs +2 -0
- package/dist/type-checks/src/is-object.mjs.map +1 -0
- package/dist/type-checks/src/is-plain-object.cjs +1 -0
- package/dist/type-checks/src/is-plain-object.mjs +2 -0
- package/dist/type-checks/src/is-plain-object.mjs.map +1 -0
- package/dist/type-checks/src/is-set-string.cjs +1 -0
- package/dist/type-checks/src/is-set-string.mjs +2 -0
- package/dist/type-checks/src/is-set-string.mjs.map +1 -0
- package/dist/type-checks/src/is-set.cjs +1 -0
- package/dist/type-checks/src/is-set.mjs +2 -0
- package/dist/type-checks/src/is-set.mjs.map +1 -0
- package/dist/type-checks/src/is-string.cjs +1 -0
- package/dist/type-checks/src/is-string.mjs +2 -0
- package/dist/type-checks/src/is-string.mjs.map +1 -0
- package/dist/type-checks/src/is-undefined.cjs +1 -0
- package/dist/type-checks/src/is-undefined.mjs +2 -0
- package/dist/type-checks/src/is-undefined.mjs.map +1 -0
- package/dist/type-checks/src/type-detect.cjs +1 -0
- package/dist/type-checks/src/type-detect.mjs +2 -0
- package/dist/type-checks/src/type-detect.mjs.map +1 -0
- package/dist/types/src/base.cjs +1 -0
- package/dist/types/src/base.mjs +2 -0
- package/dist/types/src/base.mjs.map +1 -0
- package/dist/{file-D1uBqkpP.d.cts → types/src/file.d.cts} +2 -2
- package/dist/types/src/file.d.cts.map +1 -0
- package/dist/{file-DauFFmfh.d.mts → types/src/file.d.mts} +2 -2
- package/dist/types/src/file.d.mts.map +1 -0
- package/dist/{package-fns-CxokaGDY.d.mts → types/src/package-json.d.cts} +2 -95
- package/dist/types/src/package-json.d.cts.map +1 -0
- package/dist/{package-fns-BNRi_Rpc.d.cts → types/src/package-json.d.mts} +2 -95
- package/dist/types/src/package-json.d.mts.map +1 -0
- package/dist/types/src/package-manager.d.cts +5 -0
- package/dist/types/src/package-manager.d.cts.map +1 -0
- package/dist/types/src/package-manager.d.mts +5 -0
- package/dist/types/src/package-manager.d.mts.map +1 -0
- package/dist/{tsconfig-B13IMV_0.d.mts → types/src/tsconfig.d.cts} +3 -12
- package/dist/types/src/tsconfig.d.cts.map +1 -0
- package/dist/{tsconfig-C8ecu1-0.d.cts → types/src/tsconfig.d.mts} +3 -12
- package/dist/types/src/tsconfig.d.mts.map +1 -0
- package/dist/write-file.cjs +1 -1
- package/dist/write-file.d.cts +35 -2
- package/dist/write-file.d.cts.map +1 -0
- package/dist/write-file.d.mts +35 -2
- package/dist/write-file.d.mts.map +1 -0
- package/dist/write-file.mjs +2 -1
- package/dist/write-file.mjs.map +1 -0
- package/dist/yaml.cjs +1 -1
- package/dist/yaml.d.cts +23 -2
- package/dist/yaml.d.cts.map +1 -0
- package/dist/yaml.d.mts +23 -2
- package/dist/yaml.d.mts.map +1 -0
- package/dist/yaml.mjs +2 -1
- package/dist/yaml.mjs.map +1 -0
- package/package.json +11 -11
- package/dist/buffer-Ch164vki.cjs +0 -1
- package/dist/buffer-DDq-CW4J.mjs +0 -2
- package/dist/buffer-DDq-CW4J.mjs.map +0 -1
- package/dist/buffer-DgfUmhrc.d.mts +0 -32
- package/dist/buffer-DgfUmhrc.d.mts.map +0 -1
- package/dist/buffer-DvCjrjQH.d.cts +0 -32
- package/dist/buffer-DvCjrjQH.d.cts.map +0 -1
- package/dist/chmod-x-BPr4tt2-.d.cts +0 -44
- package/dist/chmod-x-BPr4tt2-.d.cts.map +0 -1
- package/dist/chmod-x-FOy3sak8.cjs +0 -1
- package/dist/chmod-x-QCk1GmQJ.d.mts +0 -44
- package/dist/chmod-x-QCk1GmQJ.d.mts.map +0 -1
- package/dist/chmod-x-q-TWdus7.mjs +0 -2
- package/dist/chmod-x-q-TWdus7.mjs.map +0 -1
- package/dist/command-exists-CuieR7rx.d.cts +0 -22
- package/dist/command-exists-CuieR7rx.d.cts.map +0 -1
- package/dist/command-exists-D1bV-wSk.cjs +0 -1
- package/dist/command-exists-Dzb2kKT4.mjs +0 -2
- package/dist/command-exists-Dzb2kKT4.mjs.map +0 -1
- package/dist/command-exists-dBdtR0xj.d.mts +0 -22
- package/dist/command-exists-dBdtR0xj.d.mts.map +0 -1
- package/dist/compress-BiTxso15.mjs +0 -2
- package/dist/compress-BiTxso15.mjs.map +0 -1
- package/dist/compress-BjGbQqs_.cjs +0 -1
- package/dist/compress-CLAaOwH3.d.mts +0 -16
- package/dist/compress-CLAaOwH3.d.mts.map +0 -1
- package/dist/compress-CQve2a6h.d.cts +0 -16
- package/dist/compress-CQve2a6h.d.cts.map +0 -1
- package/dist/constants-D58o2CiO.d.cts +0 -5
- package/dist/constants-D58o2CiO.d.cts.map +0 -1
- package/dist/constants-DZz9LJgo.d.mts +0 -5
- package/dist/constants-DZz9LJgo.d.mts.map +0 -1
- package/dist/copy-file-B5FJHiIK.d.mts +0 -39
- package/dist/copy-file-B5FJHiIK.d.mts.map +0 -1
- package/dist/copy-file-Bot2YNtT.mjs +0 -2
- package/dist/copy-file-Bot2YNtT.mjs.map +0 -1
- package/dist/copy-file-DjH2Ho5e.d.cts +0 -39
- package/dist/copy-file-DjH2Ho5e.d.cts.map +0 -1
- package/dist/copy-file-Y1ilzocZ.cjs +0 -1
- package/dist/cwd-YTg9Cx6C.mjs +0 -2
- package/dist/cwd-YTg9Cx6C.mjs.map +0 -1
- package/dist/cwd-o2vq8Tk9.cjs +0 -1
- package/dist/exists-175EN367.d.mts +0 -18
- package/dist/exists-175EN367.d.mts.map +0 -1
- package/dist/exists-B31lSRFp.cjs +0 -1
- package/dist/exists-CVlDImzc.d.cts +0 -18
- package/dist/exists-CVlDImzc.d.cts.map +0 -1
- package/dist/exists-Ci-9lYmi.mjs +0 -2
- package/dist/exists-Ci-9lYmi.mjs.map +0 -1
- package/dist/file-D1uBqkpP.d.cts.map +0 -1
- package/dist/file-DauFFmfh.d.mts.map +0 -1
- package/dist/file-path-fns-7aKacdLg.cjs +0 -1
- package/dist/file-path-fns-BDzC2SIV.mjs +0 -2
- package/dist/file-path-fns-BDzC2SIV.mjs.map +0 -1
- package/dist/get-parent-path-COkh6Pvl.d.mts +0 -32
- package/dist/get-parent-path-COkh6Pvl.d.mts.map +0 -1
- package/dist/get-parent-path-Cbqs2km7.d.cts +0 -32
- package/dist/get-parent-path-Cbqs2km7.d.cts.map +0 -1
- package/dist/get-parent-path-CfRkaB4R.cjs +0 -1
- package/dist/get-parent-path-DLFSyxSW.mjs +0 -2
- package/dist/get-parent-path-DLFSyxSW.mjs.map +0 -1
- package/dist/get-workspace-root-CCNjjZGY.cjs +0 -1
- package/dist/get-workspace-root-DQBvBd8X.d.mts +0 -48
- package/dist/get-workspace-root-DQBvBd8X.d.mts.map +0 -1
- package/dist/get-workspace-root-eTfm1jII.d.cts +0 -48
- package/dist/get-workspace-root-eTfm1jII.d.cts.map +0 -1
- package/dist/get-workspace-root-k66w-wLW.mjs +0 -2
- package/dist/get-workspace-root-k66w-wLW.mjs.map +0 -1
- package/dist/helpers-BSEQb1fp.mjs +0 -2
- package/dist/helpers-BSEQb1fp.mjs.map +0 -1
- package/dist/helpers-CYWFZ-Uv.d.mts +0 -50
- package/dist/helpers-CYWFZ-Uv.d.mts.map +0 -1
- package/dist/helpers-CgMOExPa.d.cts +0 -50
- package/dist/helpers-CgMOExPa.d.cts.map +0 -1
- package/dist/helpers-_MJ6PR-g.cjs +0 -1
- package/dist/install-B3bIjHoU.mjs +0 -2
- package/dist/install-B3bIjHoU.mjs.map +0 -1
- package/dist/install-CZ_S7NHm.cjs +0 -1
- package/dist/install-CxPsLO2t.d.cts +0 -28
- package/dist/install-CxPsLO2t.d.cts.map +0 -1
- package/dist/install-dYt7hlQn.d.mts +0 -29
- package/dist/install-dYt7hlQn.d.mts.map +0 -1
- package/dist/is-error-CjEyTRps.cjs +0 -1
- package/dist/is-error-CjVXmD_8.mjs +0 -2
- package/dist/is-error-CjVXmD_8.mjs.map +0 -1
- package/dist/is-file-BkFQev3M.cjs +0 -1
- package/dist/is-file-CNooe8Wz.mjs +0 -2
- package/dist/is-file-CNooe8Wz.mjs.map +0 -1
- package/dist/is-file-DjqOQrqY.d.mts +0 -36
- package/dist/is-file-DjqOQrqY.d.mts.map +0 -1
- package/dist/is-file-DoBi2FN9.d.cts +0 -36
- package/dist/is-file-DoBi2FN9.d.cts.map +0 -1
- package/dist/is-object-FBXmvehR.cjs +0 -1
- package/dist/is-object-UsKYhyC5.mjs +0 -2
- package/dist/is-object-UsKYhyC5.mjs.map +0 -1
- package/dist/is-set-string-CLeu8BKX.cjs +0 -1
- package/dist/is-set-string-Cj0g4gsG.mjs +0 -2
- package/dist/is-set-string-Cj0g4gsG.mjs.map +0 -1
- package/dist/is-string-91Z3dOKQ.mjs +0 -2
- package/dist/is-string-91Z3dOKQ.mjs.map +0 -1
- package/dist/is-string-DKgNS0jA.cjs +0 -1
- package/dist/join-paths-BHepkhAj.mjs +0 -2
- package/dist/join-paths-BHepkhAj.mjs.map +0 -1
- package/dist/join-paths-DUdaieID.cjs +0 -1
- package/dist/json-CYenVxvr.d.cts +0 -83
- package/dist/json-CYenVxvr.d.cts.map +0 -1
- package/dist/json-DH7Q6Ftp.d.mts +0 -83
- package/dist/json-DH7Q6Ftp.d.mts.map +0 -1
- package/dist/json-DKhqPjHB.cjs +0 -6
- package/dist/json-Dp4PSH2i.mjs +0 -7
- package/dist/json-Dp4PSH2i.mjs.map +0 -1
- package/dist/list-files-Cn_UVruo.cjs +0 -1
- package/dist/list-files-D3dQOljX.d.cts +0 -51
- package/dist/list-files-D3dQOljX.d.cts.map +0 -1
- package/dist/list-files-D3iJzEQw.d.mts +0 -51
- package/dist/list-files-D3iJzEQw.d.mts.map +0 -1
- package/dist/list-files-D__uh3tQ.mjs +0 -2
- package/dist/list-files-D__uh3tQ.mjs.map +0 -1
- package/dist/package-fns-BNRi_Rpc.d.cts.map +0 -1
- package/dist/package-fns-C7-MKgBR.mjs +0 -2
- package/dist/package-fns-C7-MKgBR.mjs.map +0 -1
- package/dist/package-fns-CxokaGDY.d.mts.map +0 -1
- package/dist/package-fns-YTCdMAXr.cjs +0 -1
- package/dist/read-file-B091zB64.mjs +0 -2
- package/dist/read-file-B091zB64.mjs.map +0 -1
- package/dist/read-file-BB2WzW-N.cjs +0 -1
- package/dist/read-file-Bxn1VHKv.d.cts +0 -30
- package/dist/read-file-Bxn1VHKv.d.cts.map +0 -1
- package/dist/read-file-CRVW-wcE.d.mts +0 -30
- package/dist/read-file-CRVW-wcE.d.mts.map +0 -1
- package/dist/registry-B1taIPKm.mjs +0 -2
- package/dist/registry-B1taIPKm.mjs.map +0 -1
- package/dist/registry-BQ3JXRFA.d.mts +0 -53
- package/dist/registry-BQ3JXRFA.d.mts.map +0 -1
- package/dist/registry-BYwvM92u.cjs +0 -1
- package/dist/registry-C2A0Kau7.d.cts +0 -53
- package/dist/registry-C2A0Kau7.d.cts.map +0 -1
- package/dist/remove-file-BM64Brdf.mjs +0 -2
- package/dist/remove-file-BM64Brdf.mjs.map +0 -1
- package/dist/remove-file-BqlkL_Df.d.mts +0 -16
- package/dist/remove-file-BqlkL_Df.d.mts.map +0 -1
- package/dist/remove-file-XHFKELQN.cjs +0 -1
- package/dist/remove-file-lQOlxDwr.d.cts +0 -16
- package/dist/remove-file-lQOlxDwr.d.cts.map +0 -1
- package/dist/resolve-C_YsCFne.mjs +0 -4
- package/dist/resolve-C_YsCFne.mjs.map +0 -1
- package/dist/resolve-D66oIwjf.d.mts +0 -106
- package/dist/resolve-D66oIwjf.d.mts.map +0 -1
- package/dist/resolve-DTkLQekH.cjs +0 -3
- package/dist/resolve-DubH-8qd.d.cts +0 -106
- package/dist/resolve-DubH-8qd.d.cts.map +0 -1
- package/dist/resolve-parent-path-CR8av8WP.mjs +0 -2
- package/dist/resolve-parent-path-CR8av8WP.mjs.map +0 -1
- package/dist/resolve-parent-path-D0AaW2PB.cjs +0 -1
- package/dist/semver-fns-B0e5zB6C.d.mts +0 -92
- package/dist/semver-fns-B0e5zB6C.d.mts.map +0 -1
- package/dist/semver-fns-Btrm1dIF.cjs +0 -1
- package/dist/semver-fns-DjhZXnUw.d.cts +0 -92
- package/dist/semver-fns-DjhZXnUw.d.cts.map +0 -1
- package/dist/semver-fns-F_rYnwDq.mjs +0 -2
- package/dist/semver-fns-F_rYnwDq.mjs.map +0 -1
- package/dist/toml-CIgLQmP3.mjs +0 -4
- package/dist/toml-CIgLQmP3.mjs.map +0 -1
- package/dist/toml-D3X2QoaL.d.cts +0 -81
- package/dist/toml-D3X2QoaL.d.cts.map +0 -1
- package/dist/toml-DgVyNp_y.cjs +0 -3
- package/dist/toml-Djau1M6n.d.mts +0 -81
- package/dist/toml-Djau1M6n.d.mts.map +0 -1
- package/dist/tsconfig-B13IMV_0.d.mts.map +0 -1
- package/dist/tsconfig-B6WtgD1c.cjs +0 -1
- package/dist/tsconfig-C8ecu1-0.d.cts.map +0 -1
- package/dist/tsconfig-CqvvSVuX.mjs +0 -2
- package/dist/tsconfig-CqvvSVuX.mjs.map +0 -1
- package/dist/write-file-BmvbsmMj.d.cts +0 -35
- package/dist/write-file-BmvbsmMj.d.cts.map +0 -1
- package/dist/write-file-CFByoJkN.mjs +0 -2
- package/dist/write-file-CFByoJkN.mjs.map +0 -1
- package/dist/write-file-CWTzQpb2.d.mts +0 -35
- package/dist/write-file-CWTzQpb2.d.mts.map +0 -1
- package/dist/write-file-CqokudVp.cjs +0 -1
- package/dist/yaml-6uuLoSfT.d.cts +0 -23
- package/dist/yaml-6uuLoSfT.d.cts.map +0 -1
- package/dist/yaml-CLMo56UG.mjs +0 -2
- package/dist/yaml-CLMo56UG.mjs.map +0 -1
- package/dist/yaml-Ddslc5NK.d.mts +0 -23
- package/dist/yaml-Ddslc5NK.d.mts.map +0 -1
- package/dist/yaml-q2k-BjIM.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-json.d.cts","names":[],"sources":["../../../../types/src/package-json.ts"],"sourcesContent":[],"mappings":";;AAqBA;;AAgEW,UAhEM,WAAA,SAAoB,MAgE1B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA;EAIM;;;;;;;;EA+EmB,IAAA,CAAA,EAAA,MAAA;EAAxB;;;EA4FR,OAAA,CAAA,EAAA,MAAA;EADE;;;EA2BD,WAAA,CAAA,EAAA,MAAiB;EAQjB;AAAoB;;EAanB,QAAA,CAAA,EAAA,MAAA,EAAA;EACe;;;EAGhB,QAAA,CAAA,EAAA,MAAA;EAED;;;EACK,IAAA,CAAA,EAAA,MAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;YA7OG;;;;;;;;WAQD;;;;iBAIM;;;;;;;;;;;;;;qBAcI;;;;;;;;iBAQJ;;;;;;;;iBAQA;;;;;oBAKG;;;;yBAIK;;;;qBAIJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BT;;;;;YAKA,wBAAwB;;;;;;;;;;;;kBAYlB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+E3B,KACF;;;;;;;;;;;;KA0BC,iBAAA;;;;;KAQA,oBAAA;KAUA,wBAAA,WACG,iCAEF,2BACA,eAAe;KAGhB,kBAAA,YAED,2BACA,eAAe"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { n as ResolveOptions } from "./resolve-DubH-8qd.cjs";
|
|
2
|
-
import { Range } from "semver";
|
|
3
|
-
|
|
4
1
|
//#region ../types/src/package-json.d.ts
|
|
5
2
|
/**
|
|
6
3
|
* The `package.json` file is the only required file in a package. It must be located at the root of a package, and can contain the following fields.
|
|
@@ -260,95 +257,5 @@ type PackageJsonExportKey = "." | "import" | "require" | "types" | "node" | "bro
|
|
|
260
257
|
type PackageJsonExportsObject = { [P in PackageJsonExportKey]?: string | PackageJsonExportsObject | Array<string | PackageJsonExportsObject> };
|
|
261
258
|
type PackageJsonExports = string | PackageJsonExportsObject | Array<string | PackageJsonExportsObject>;
|
|
262
259
|
//#endregion
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region src/package-fns.d.ts
|
|
267
|
-
/**
|
|
268
|
-
* Get the package manager used in the project
|
|
269
|
-
*
|
|
270
|
-
* @param dir - The path to the project
|
|
271
|
-
* @returns The package manager used in the project
|
|
272
|
-
*/
|
|
273
|
-
declare function getPackageManager(dir?: string): PackageManager;
|
|
274
|
-
/**
|
|
275
|
-
* Get package info
|
|
276
|
-
*
|
|
277
|
-
* @param name - The name of the package
|
|
278
|
-
* @param options - The options to use when resolving the package
|
|
279
|
-
* @returns The package info
|
|
280
|
-
*/
|
|
281
|
-
declare function getPackageInfo(name: string, options?: ResolveOptions): Promise<{
|
|
282
|
-
name: string;
|
|
283
|
-
version: string | undefined;
|
|
284
|
-
rootPath: string;
|
|
285
|
-
packageJsonPath: string;
|
|
286
|
-
packageJson: PackageJson;
|
|
287
|
-
} | undefined>;
|
|
288
|
-
/**
|
|
289
|
-
* Get the package info from the package.json file
|
|
290
|
-
*
|
|
291
|
-
* @param cwd - The current working directory
|
|
292
|
-
* @returns The package info
|
|
293
|
-
*/
|
|
294
|
-
declare function loadPackageJson(cwd?: string): Promise<PackageJson | null>;
|
|
295
|
-
interface PackageExistsOptions {
|
|
296
|
-
/**
|
|
297
|
-
* The current working directory
|
|
298
|
-
*/
|
|
299
|
-
cwd?: string;
|
|
300
|
-
}
|
|
301
|
-
interface PackageMatchesOptions extends PackageExistsOptions {
|
|
302
|
-
/**
|
|
303
|
-
* The version range of the package to check
|
|
304
|
-
*/
|
|
305
|
-
version?: string | Range;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Check if a package is listed in the package.json file
|
|
309
|
-
*
|
|
310
|
-
* @param name - The name of the package
|
|
311
|
-
* @param cwd - The current working directory
|
|
312
|
-
* @returns An indicator specifying if the package is listed
|
|
313
|
-
*/
|
|
314
|
-
declare function isPackageListed(name: string, cwd?: string): Promise<boolean>;
|
|
315
|
-
/**
|
|
316
|
-
* Check if a package is listed in the package.json file
|
|
317
|
-
*
|
|
318
|
-
* @param name - The name of the package
|
|
319
|
-
* @param options - The options to use when checking if the package is listed
|
|
320
|
-
* @returns An indicator specifying if the package is listed
|
|
321
|
-
*/
|
|
322
|
-
declare function isPackageListed(name: string, options?: PackageExistsOptions): Promise<boolean>;
|
|
323
|
-
interface GetPackageListingReturn {
|
|
324
|
-
version: string;
|
|
325
|
-
type: "dependencies" | "devDependencies";
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Return the package version and dependency type listed in the package.json file
|
|
329
|
-
*
|
|
330
|
-
* @param name - The name of the package
|
|
331
|
-
* @param cwdOrOptions - The current working directory or options to use when checking if the package is listed
|
|
332
|
-
* @returns The version and type of the package if listed, otherwise undefined
|
|
333
|
-
*/
|
|
334
|
-
declare function getPackageListing(name: string, cwdOrOptions?: string | PackageExistsOptions): Promise<GetPackageListingReturn | undefined>;
|
|
335
|
-
/**
|
|
336
|
-
* Check if a package version matches a specific version range
|
|
337
|
-
*
|
|
338
|
-
* @param name - The name of the package
|
|
339
|
-
* @param version - The version to check against
|
|
340
|
-
* @param cwd - The current working directory
|
|
341
|
-
* @returns An indicator specifying if the package version matches the range
|
|
342
|
-
*/
|
|
343
|
-
declare function doesPackageMatch(name: string, version: string, cwd?: string): Promise<boolean>;
|
|
344
|
-
/**
|
|
345
|
-
* Check if a package exists
|
|
346
|
-
*
|
|
347
|
-
* @param name - The name of the package
|
|
348
|
-
* @param options - The options to use when resolving the package
|
|
349
|
-
* @returns An indicator specifying if the package exists
|
|
350
|
-
*/
|
|
351
|
-
declare function isPackageExists(name: string, options?: ResolveOptions): boolean;
|
|
352
|
-
//#endregion
|
|
353
|
-
export { getPackageInfo as a, isPackageExists as c, doesPackageMatch as i, isPackageListed as l, PackageExistsOptions as n, getPackageListing as o, PackageMatchesOptions as r, getPackageManager as s, GetPackageListingReturn as t, loadPackageJson as u };
|
|
354
|
-
//# sourceMappingURL=package-fns-BNRi_Rpc.d.cts.map
|
|
260
|
+
export { PackageJson };
|
|
261
|
+
//# sourceMappingURL=package-json.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-json.d.mts","names":[],"sources":["../../../../types/src/package-json.ts"],"sourcesContent":[],"mappings":";;AAqBA;;AAgEW,UAhEM,WAAA,SAAoB,MAgE1B,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA;EAIM;;;;;;;;EA+EmB,IAAA,CAAA,EAAA,MAAA;EAAxB;;;EA4FR,OAAA,CAAA,EAAA,MAAA;EADE;;;EA2BD,WAAA,CAAA,EAAA,MAAiB;EAQjB;AAAoB;;EAanB,QAAA,CAAA,EAAA,MAAA,EAAA;EACe;;;EAGhB,QAAA,CAAA,EAAA,MAAA;EAED;;;EACK,IAAA,CAAA,EAAA,MAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;YA7OG;;;;;;;;WAQD;;;;iBAIM;;;;;;;;;;;;;;qBAcI;;;;;;;;iBAQJ;;;;;;;;iBAQA;;;;;oBAKG;;;;yBAIK;;;;qBAIJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BT;;;;;YAKA,wBAAwB;;;;;;;;;;;;kBAYlB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+E3B,KACF;;;;;;;;;;;;KA0BC,iBAAA;;;;;KAQA,oBAAA;KAUA,wBAAA,WACG,iCAEF,2BACA,eAAe;KAGhB,kBAAA,YAED,2BACA,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-manager.d.cts","names":[],"sources":["../../../../types/src/package-manager.ts"],"sourcesContent":[],"mappings":";KAkBY,cAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-manager.d.mts","names":[],"sources":["../../../../types/src/package-manager.ts"],"sourcesContent":[],"mappings":";KAkBY,cAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterPattern } from "./file.cjs";
|
|
2
2
|
|
|
3
3
|
//#region ../types/src/tsconfig.d.ts
|
|
4
4
|
type JSX = "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
|
@@ -799,14 +799,5 @@ interface TsConfigJson {
|
|
|
799
799
|
references?: References[];
|
|
800
800
|
}
|
|
801
801
|
//#endregion
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
* Loads a tsconfig.json file and returns the parsed JSON object.
|
|
805
|
-
*
|
|
806
|
-
* @param filePath - The directory to start searching for the tsconfig.json file.
|
|
807
|
-
* @returns The parsed tsconfig.json object or null if not found.
|
|
808
|
-
*/
|
|
809
|
-
declare function loadTsConfig(filePath?: string): Promise<TsConfigJson>;
|
|
810
|
-
//#endregion
|
|
811
|
-
export { loadTsConfig as t };
|
|
812
|
-
//# sourceMappingURL=tsconfig-B13IMV_0.d.mts.map
|
|
802
|
+
export { TsConfigJson };
|
|
803
|
+
//# sourceMappingURL=tsconfig.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsconfig.d.cts","names":[],"sources":["../../../../types/src/tsconfig.ts"],"sourcesContent":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterPattern } from "./file.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../types/src/tsconfig.d.ts
|
|
4
4
|
type JSX = "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
|
@@ -799,14 +799,5 @@ interface TsConfigJson {
|
|
|
799
799
|
references?: References[];
|
|
800
800
|
}
|
|
801
801
|
//#endregion
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
* Loads a tsconfig.json file and returns the parsed JSON object.
|
|
805
|
-
*
|
|
806
|
-
* @param filePath - The directory to start searching for the tsconfig.json file.
|
|
807
|
-
* @returns The parsed tsconfig.json object or null if not found.
|
|
808
|
-
*/
|
|
809
|
-
declare function loadTsConfig(filePath?: string): Promise<TsConfigJson>;
|
|
810
|
-
//#endregion
|
|
811
|
-
export { loadTsConfig as t };
|
|
812
|
-
//# sourceMappingURL=tsconfig-C8ecu1-0.d.cts.map
|
|
802
|
+
export { TsConfigJson };
|
|
803
|
+
//# sourceMappingURL=tsconfig.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsconfig.d.mts","names":[],"sources":["../../../../types/src/tsconfig.ts"],"sourcesContent":[],"mappings":"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"}
|
package/dist/write-file.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./
|
|
1
|
+
const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./path/src/correct-path.cjs`),n=require(`./path/src/file-path-fns.cjs`),r=require(`./exists.cjs`),i=require(`./helpers.cjs`);let a=require(`node:fs`),o=require(`node:fs/promises`);const s=(e,o=``,s={})=>{if(!e)throw Error(`No file path provided to write data`);let c=n.findFilePath(t.correctPath(e));if(!r.existsSync(c))if(s.createDirectory!==!1)i.createDirectorySync(c);else throw Error(`Directory ${c} does not exist`);(0,a.writeFileSync)(e,o||``,s)},c=async(e,a=``,s={})=>{if(!e)throw Error(`No file path provided to read data`);let c=n.findFilePath(t.correctPath(e));if(!r.existsSync(c))if(s.createDirectory!==!1)await i.createDirectory(c);else throw Error(`Directory ${c} does not exist`);return(0,o.writeFile)(e,a||``,s)};exports.writeFile=c,exports.writeFileSync=s;
|
package/dist/write-file.d.cts
CHANGED
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Encoding } from "./constants.cjs";
|
|
2
|
+
import { Abortable } from "node:events";
|
|
3
|
+
import { Mode, ObjectEncodingOptions, OpenMode, WriteFileOptions as WriteFileOptions$1 } from "node:fs";
|
|
4
|
+
|
|
5
|
+
//#region src/write-file.d.ts
|
|
6
|
+
interface WriteFileOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to create the directory if it does not exist
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue true
|
|
11
|
+
*/
|
|
12
|
+
createDirectory?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Write the given content to the given file path
|
|
16
|
+
*
|
|
17
|
+
* @param filePath - The file path to write to
|
|
18
|
+
* @param content - The content to write to the file
|
|
19
|
+
*/
|
|
20
|
+
declare const writeFileSync: (filePath: string, content?: string, options?: WriteFileOptions & WriteFileOptions$1) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Read the given content to the given file path
|
|
23
|
+
*
|
|
24
|
+
* @param filePath - The file path to read to
|
|
25
|
+
* @param content - The content to write to the file
|
|
26
|
+
* @returns The content of the file
|
|
27
|
+
*/
|
|
28
|
+
declare const writeFile: (filePath: string, content?: string, options?: WriteFileOptions & ((ObjectEncodingOptions & {
|
|
29
|
+
mode?: Mode | undefined;
|
|
30
|
+
flag?: OpenMode | undefined;
|
|
31
|
+
flush?: boolean | undefined;
|
|
32
|
+
} & Abortable) | Encoding)) => Promise<void>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { WriteFileOptions, writeFile, writeFileSync };
|
|
35
|
+
//# sourceMappingURL=write-file.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-file.d.cts","names":[],"sources":["../src/write-file.ts"],"sourcesContent":[],"mappings":";;;;;UAiCiB,gBAAA;;AAAjB;AAeA;AA4BA;;EAKS,eAAA,CAAA,EAAA,OAAA;;;;;;;;cAjCI,8DAGF,mBAAmB;;;;;;;;cAyBjB,0DAGF,qBAEF;SACQ;SACA;;IAEL,aACJ,cAEL"}
|
package/dist/write-file.d.mts
CHANGED
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Encoding } from "./constants.mjs";
|
|
2
|
+
import { Mode, ObjectEncodingOptions, OpenMode, WriteFileOptions as WriteFileOptions$1 } from "node:fs";
|
|
3
|
+
import { Abortable } from "node:events";
|
|
4
|
+
|
|
5
|
+
//#region src/write-file.d.ts
|
|
6
|
+
interface WriteFileOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to create the directory if it does not exist
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue true
|
|
11
|
+
*/
|
|
12
|
+
createDirectory?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Write the given content to the given file path
|
|
16
|
+
*
|
|
17
|
+
* @param filePath - The file path to write to
|
|
18
|
+
* @param content - The content to write to the file
|
|
19
|
+
*/
|
|
20
|
+
declare const writeFileSync: (filePath: string, content?: string, options?: WriteFileOptions & WriteFileOptions$1) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Read the given content to the given file path
|
|
23
|
+
*
|
|
24
|
+
* @param filePath - The file path to read to
|
|
25
|
+
* @param content - The content to write to the file
|
|
26
|
+
* @returns The content of the file
|
|
27
|
+
*/
|
|
28
|
+
declare const writeFile: (filePath: string, content?: string, options?: WriteFileOptions & ((ObjectEncodingOptions & {
|
|
29
|
+
mode?: Mode | undefined;
|
|
30
|
+
flag?: OpenMode | undefined;
|
|
31
|
+
flush?: boolean | undefined;
|
|
32
|
+
} & Abortable) | Encoding)) => Promise<void>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { WriteFileOptions, writeFile, writeFileSync };
|
|
35
|
+
//# sourceMappingURL=write-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-file.d.mts","names":[],"sources":["../src/write-file.ts"],"sourcesContent":[],"mappings":";;;;;UAiCiB,gBAAA;;AAAjB;AAeA;AA4BA;;EAKS,eAAA,CAAA,EAAA,OAAA;;;;;;;;cAjCI,8DAGF,mBAAmB;;;;;;;;cAyBjB,0DAGF,qBAEF;SACQ;SACA;;IAEL,aACJ,cAEL"}
|
package/dist/write-file.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import"./
|
|
1
|
+
import{correctPath as e}from"./path/src/correct-path.mjs";import{findFilePath as t}from"./path/src/file-path-fns.mjs";import{existsSync as n}from"./exists.mjs";import{createDirectory as r,createDirectorySync as i}from"./helpers.mjs";import{writeFileSync as a}from"node:fs";import{writeFile as o}from"node:fs/promises";const s=(r,o=``,s={})=>{if(!r)throw Error(`No file path provided to write data`);let c=t(e(r));if(!n(c))if(s.createDirectory!==!1)i(c);else throw Error(`Directory ${c} does not exist`);a(r,o||``,s)},c=async(i,a=``,s={})=>{if(!i)throw Error(`No file path provided to read data`);let c=t(e(i));if(!n(c))if(s.createDirectory!==!1)await r(c);else throw Error(`Directory ${c} does not exist`);return o(i,a||``,s)};export{c as writeFile,s as writeFileSync};
|
|
2
|
+
//# sourceMappingURL=write-file.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-file.mjs","names":["existsSync","writeFileFs"],"sources":["../src/write-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { correctPath } from \"@stryke/path/correct-path\";\nimport { findFilePath } from \"@stryke/path/file-path-fns\";\nimport type { Abortable } from \"node:events\";\nimport type {\n WriteFileOptions as FSWriteFileOptions,\n Mode,\n ObjectEncodingOptions,\n OpenMode\n} from \"node:fs\";\nimport { writeFileSync as writeFileSyncFs } from \"node:fs\";\nimport { writeFile as writeFileFs } from \"node:fs/promises\";\nimport type { Encoding } from \"./constants\";\nimport { existsSync } from \"./exists\";\nimport { createDirectory, createDirectorySync } from \"./helpers\";\n\nexport interface WriteFileOptions {\n /**\n * Whether to create the directory if it does not exist\n *\n * @defaultValue true\n */\n createDirectory?: boolean;\n}\n\n/**\n * Write the given content to the given file path\n *\n * @param filePath - The file path to write to\n * @param content - The content to write to the file\n */\nexport const writeFileSync = (\n filePath: string,\n content = \"\",\n options: WriteFileOptions & FSWriteFileOptions = {}\n): void => {\n if (!filePath) {\n throw new Error(\"No file path provided to write data\");\n }\n\n const directory = findFilePath(correctPath(filePath));\n if (!existsSync(directory)) {\n if (options.createDirectory !== false) {\n createDirectorySync(directory);\n } else {\n throw new Error(`Directory ${directory} does not exist`);\n }\n }\n\n writeFileSyncFs(filePath, content || \"\", options);\n};\n\n/**\n * Read the given content to the given file path\n *\n * @param filePath - The file path to read to\n * @param content - The content to write to the file\n * @returns The content of the file\n */\nexport const writeFile = async (\n filePath: string,\n content = \"\",\n options: WriteFileOptions &\n (\n | (ObjectEncodingOptions & {\n mode?: Mode | undefined;\n flag?: OpenMode | undefined;\n flush?: boolean | undefined;\n } & Abortable)\n | Encoding\n ) = {}\n): Promise<void> => {\n if (!filePath) {\n throw new Error(\"No file path provided to read data\");\n }\n\n const directory = findFilePath(correctPath(filePath));\n if (!existsSync(directory)) {\n if (options.createDirectory !== false) {\n await createDirectory(directory);\n } else {\n throw new Error(`Directory ${directory} does not exist`);\n }\n }\n\n return writeFileFs(filePath, content || \"\", options);\n};\n"],"mappings":"8TAgDA,MAAa,GACX,EACA,EAAU,GACV,EAAiD,EAAE,GAC1C,CACT,GAAI,CAAC,EACH,MAAU,MAAM,sCAAsC,CAGxD,IAAM,EAAY,EAAa,EAAY,EAAS,CAAC,CACrD,GAAI,CAACA,EAAW,EAAU,CACxB,GAAI,EAAQ,kBAAoB,GAC9B,EAAoB,EAAU,MAE9B,MAAU,MAAM,aAAa,EAAU,iBAAiB,CAI5D,EAAgB,EAAU,GAAW,GAAI,EAAQ,EAUtC,EAAY,MACvB,EACA,EAAU,GACV,EAQM,EAAE,GACU,CAClB,GAAI,CAAC,EACH,MAAU,MAAM,qCAAqC,CAGvD,IAAM,EAAY,EAAa,EAAY,EAAS,CAAC,CACrD,GAAI,CAACA,EAAW,EAAU,CACxB,GAAI,EAAQ,kBAAoB,GAC9B,MAAM,EAAgB,EAAU,MAEhC,MAAU,MAAM,aAAa,EAAU,iBAAiB,CAI5D,OAAOC,EAAY,EAAU,GAAW,GAAI,EAAQ"}
|
package/dist/yaml.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./
|
|
1
|
+
const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./read-file.cjs`);let n=require(`yaml`);function r(e,r){return(0,n.parse)(t.readFileSync(e),r)}async function i(e,r={}){return(0,n.parse)(await t.readFile(e),r)}exports.readYamlFile=i,exports.readYamlFileSync=r;
|
package/dist/yaml.d.cts
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions } from "yaml";
|
|
2
|
+
|
|
3
|
+
//#region src/yaml.d.ts
|
|
4
|
+
type YamlReadOptions = ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions;
|
|
5
|
+
/**
|
|
6
|
+
* Reads a YAML file and returns the object the YAML content represents.
|
|
7
|
+
*
|
|
8
|
+
* @param path - A path to a file.
|
|
9
|
+
* @param options - YAML parse options
|
|
10
|
+
* @returns Object the YAML content of the file represents
|
|
11
|
+
*/
|
|
12
|
+
declare function readYamlFileSync<T extends object = any>(path: string, options?: YamlReadOptions): T;
|
|
13
|
+
/**
|
|
14
|
+
* Reads a YAML file and returns the object the YAML content represents.
|
|
15
|
+
*
|
|
16
|
+
* @param path - A path to a file.
|
|
17
|
+
* @param options - YAML parse options
|
|
18
|
+
* @returns Object the YAML content of the file represents
|
|
19
|
+
*/
|
|
20
|
+
declare function readYamlFile<T extends object = any>(path: string, options?: YamlReadOptions): Promise<T>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { YamlReadOptions, readYamlFile, readYamlFileSync };
|
|
23
|
+
//# sourceMappingURL=yaml.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml.d.cts","names":[],"sources":["../src/yaml.ts"],"sourcesContent":[],"mappings":";;;KA2BY,eAAA,GAAkB,eAC5B,kBACA,gBACA;;AAHF;;;;;;AAYgB,iBAAA,gBAEJ,CAAA,UAAA,MACR,GAAA,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EADQ,eACR,CAAA,EAAD,CAAC;AAWJ;;;;;;;iBAAsB,6DAEX,kBACR,QAAQ"}
|
package/dist/yaml.d.mts
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions } from "yaml";
|
|
2
|
+
|
|
3
|
+
//#region src/yaml.d.ts
|
|
4
|
+
type YamlReadOptions = ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions;
|
|
5
|
+
/**
|
|
6
|
+
* Reads a YAML file and returns the object the YAML content represents.
|
|
7
|
+
*
|
|
8
|
+
* @param path - A path to a file.
|
|
9
|
+
* @param options - YAML parse options
|
|
10
|
+
* @returns Object the YAML content of the file represents
|
|
11
|
+
*/
|
|
12
|
+
declare function readYamlFileSync<T extends object = any>(path: string, options?: YamlReadOptions): T;
|
|
13
|
+
/**
|
|
14
|
+
* Reads a YAML file and returns the object the YAML content represents.
|
|
15
|
+
*
|
|
16
|
+
* @param path - A path to a file.
|
|
17
|
+
* @param options - YAML parse options
|
|
18
|
+
* @returns Object the YAML content of the file represents
|
|
19
|
+
*/
|
|
20
|
+
declare function readYamlFile<T extends object = any>(path: string, options?: YamlReadOptions): Promise<T>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { YamlReadOptions, readYamlFile, readYamlFileSync };
|
|
23
|
+
//# sourceMappingURL=yaml.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml.d.mts","names":[],"sources":["../src/yaml.ts"],"sourcesContent":[],"mappings":";;;KA2BY,eAAA,GAAkB,eAC5B,kBACA,gBACA;;AAHF;;;;;;AAYgB,iBAAA,gBAEJ,CAAA,UAAA,MACR,GAAA,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EADQ,eACR,CAAA,EAAD,CAAC;AAWJ;;;;;;;iBAAsB,6DAEX,kBACR,QAAQ"}
|
package/dist/yaml.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{readFile as e,readFileSync as t}from"./read-file.mjs";import{parse as n}from"yaml";function r(e,r){return n(t(e),r)}async function i(t,r={}){return n(await e(t),r)}export{i as readYamlFile,r as readYamlFileSync};
|
|
2
|
+
//# sourceMappingURL=yaml.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml.mjs","names":[],"sources":["../src/yaml.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n DocumentOptions,\n ParseOptions,\n SchemaOptions,\n ToJSOptions\n} from \"yaml\";\nimport { parse } from \"yaml\";\nimport { readFile, readFileSync } from \"./read-file\";\n\nexport type YamlReadOptions = ParseOptions &\n DocumentOptions &\n SchemaOptions &\n ToJSOptions;\n\n/**\n * Reads a YAML file and returns the object the YAML content represents.\n *\n * @param path - A path to a file.\n * @param options - YAML parse options\n * @returns Object the YAML content of the file represents\n */\nexport function readYamlFileSync<T extends object = any>(\n path: string,\n options?: YamlReadOptions\n): T {\n return parse(readFileSync(path), options) as T;\n}\n\n/**\n * Reads a YAML file and returns the object the YAML content represents.\n *\n * @param path - A path to a file.\n * @param options - YAML parse options\n * @returns Object the YAML content of the file represents\n */\nexport async function readYamlFile<T extends object = any>(\n path: string,\n options: YamlReadOptions = {}\n): Promise<T> {\n return parse(await readFile(path), options) as T;\n}\n"],"mappings":"0FAuCA,SAAgB,EACd,EACA,EACG,CACH,OAAO,EAAM,EAAa,EAAK,CAAE,EAAQ,CAU3C,eAAsB,EACpB,EACA,EAA2B,EAAE,CACjB,CACZ,OAAO,EAAM,MAAM,EAAS,EAAK,CAAE,EAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/fs",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.",
|
|
6
6
|
"repository": {
|
|
@@ -103,16 +103,16 @@
|
|
|
103
103
|
"./*": "./*"
|
|
104
104
|
},
|
|
105
105
|
"types": "./dist/index.d.cts",
|
|
106
|
-
"peerDependencies": { "nx": "^22.
|
|
106
|
+
"peerDependencies": { "nx": "^22.2.7" },
|
|
107
107
|
"peerDependenciesMeta": { "nx": { "optional": true } },
|
|
108
108
|
"dependencies": {
|
|
109
109
|
"@antfu/install-pkg": "^1.1.0",
|
|
110
110
|
"@ltd/j-toml": "^1.38.0",
|
|
111
|
-
"@storm-software/config-tools": "^1.188.
|
|
112
|
-
"@stryke/convert": "^0.6.
|
|
113
|
-
"@stryke/helpers": "^0.9.
|
|
114
|
-
"@stryke/path": "^0.22.
|
|
115
|
-
"@stryke/string-format": "^0.12.
|
|
111
|
+
"@storm-software/config-tools": "^1.188.68",
|
|
112
|
+
"@stryke/convert": "^0.6.25",
|
|
113
|
+
"@stryke/helpers": "^0.9.27",
|
|
114
|
+
"@stryke/path": "^0.22.12",
|
|
115
|
+
"@stryke/string-format": "^0.12.25",
|
|
116
116
|
"chalk": "^5.6.2",
|
|
117
117
|
"defu": "^6.1.4",
|
|
118
118
|
"glob": "^11.1.0",
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
"yaml": "^2.8.2"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
|
-
"@types/node": "^24.10.
|
|
125
|
+
"@types/node": "^24.10.4",
|
|
126
126
|
"@types/semver": "^7.7.1",
|
|
127
|
-
"nx": "^22.
|
|
127
|
+
"nx": "^22.2.7",
|
|
128
128
|
"tinyexec": "^0.3.2",
|
|
129
|
-
"tsdown": "^0.17.
|
|
129
|
+
"tsdown": "^0.17.2"
|
|
130
130
|
},
|
|
131
131
|
"publishConfig": { "access": "public" },
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "8f2e484743eb3ce54929e99096ca2ea188b4730e"
|
|
133
133
|
}
|
package/dist/buffer-Ch164vki.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./file-path-fns-7aKacdLg.cjs`),n=require(`./helpers-_MJ6PR-g.cjs`);let r=require(`node:buffer`),i=require(`node:fs`),a=require(`node:fs/promises`);async function o(e){if(!e)throw Error(`No file path provided to read data`);if(!(0,i.existsSync)(e))throw Error(`File does not exist at path: ${e}`);let t=await(0,a.readFile)(e);return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function s(e){if(!e)throw Error(`No file path provided to read data`);if(!(0,i.existsSync)(e))throw Error(`File does not exist at path: ${e}`);let t=(0,i.readFileSync)(e);return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}async function c(e,o){if(!e)throw Error(`No file path provided to write data`);(0,i.existsSync)(t.r(e))||await n.t(t.r(e)),await(0,a.writeFile)(e,r.Buffer.from(o))}function l(e,a){if(!e)throw Error(`No file path provided to write data`);(0,i.existsSync)(t.r(e))||n.n(t.r(e)),(0,i.writeFileSync)(e,r.Buffer.from(a))}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
package/dist/buffer-DDq-CW4J.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./file-path-fns-BDzC2SIV.mjs";import{n as t,t as n}from"./helpers-BSEQb1fp.mjs";import{Buffer as r}from"node:buffer";import{existsSync as i,readFileSync as a,writeFileSync as o}from"node:fs";import{readFile as s,writeFile as c}from"node:fs/promises";async function l(e){if(!e)throw Error(`No file path provided to read data`);if(!i(e))throw Error(`File does not exist at path: ${e}`);let t=await s(e);return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}function u(e){if(!e)throw Error(`No file path provided to read data`);if(!i(e))throw Error(`File does not exist at path: ${e}`);let t=a(e);return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}async function d(t,a){if(!t)throw Error(`No file path provided to write data`);i(e(t))||await n(e(t)),await c(t,r.from(a))}function f(n,a){if(!n)throw Error(`No file path provided to write data`);i(e(n))||t(e(n)),o(n,r.from(a))}export{f as i,u as n,d as r,l as t};
|
|
2
|
-
//# sourceMappingURL=buffer-DDq-CW4J.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buffer-DDq-CW4J.mjs","names":[],"sources":["../src/buffer.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { findFilePath } from \"@stryke/path\";\nimport { Buffer } from \"node:buffer\";\nimport { existsSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { readFile, writeFile } from \"node:fs/promises\";\nimport { createDirectory, createDirectorySync } from \"./helpers\";\n\n/**\n * Reads a file from the given path and returns its content as an ArrayBuffer. The file is expected to be located relative to the current directory of this module.\n *\n * @param filePath - The path to the file to read.\n * @returns The content of the file as an ArrayBuffer.\n */\nexport async function readFileBuffer(filePath: string): Promise<ArrayBuffer> {\n if (!filePath) {\n throw new Error(\"No file path provided to read data\");\n }\n if (!existsSync(filePath)) {\n throw new Error(`File does not exist at path: ${filePath}`);\n }\n\n const b = await readFile(filePath);\n\n return b.buffer.slice(\n b.byteOffset,\n b.byteOffset + b.byteLength\n ) as ArrayBuffer;\n}\n\n/**\n * Reads a file from the given path and returns its content as an ArrayBuffer. The file is expected to be located relative to the current directory of this module.\n *\n * @param filePath - The path to the file to read.\n * @returns The content of the file as an ArrayBuffer.\n */\nexport function readFileBufferSync(filePath: string): ArrayBuffer {\n if (!filePath) {\n throw new Error(\"No file path provided to read data\");\n }\n if (!existsSync(filePath)) {\n throw new Error(`File does not exist at path: ${filePath}`);\n }\n\n const b = readFileSync(filePath);\n\n return b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength);\n}\n\n/**\n * Writes an ArrayBuffer to a file at the specified path.\n *\n * @param filePath - The path to the file where the data should be written.\n * @param data - The ArrayBuffer containing the data to write.\n */\nexport async function writeFileBuffer(filePath: string, data: ArrayBuffer) {\n if (!filePath) {\n throw new Error(\"No file path provided to write data\");\n }\n if (!existsSync(findFilePath(filePath))) {\n await createDirectory(findFilePath(filePath));\n }\n\n await writeFile(filePath, Buffer.from(data));\n}\n\n/**\n * Writes an ArrayBuffer to a file at the specified path.\n *\n * @param filePath - The path to the file where the data should be written.\n * @param data - The ArrayBuffer containing the data to write.\n */\nexport function writeFileBufferSync(filePath: string, data: ArrayBuffer) {\n if (!filePath) {\n throw new Error(\"No file path provided to write data\");\n }\n if (!existsSync(findFilePath(filePath))) {\n createDirectorySync(findFilePath(filePath));\n }\n\n writeFileSync(filePath, Buffer.from(data));\n}\n"],"mappings":"6QA8BA,eAAsB,EAAe,EAAwC,CAC3E,GAAI,CAAC,EACH,MAAU,MAAM,qCAAqC,CAEvD,GAAI,CAAC,EAAW,EAAS,CACvB,MAAU,MAAM,gCAAgC,IAAW,CAG7D,IAAM,EAAI,MAAM,EAAS,EAAS,CAElC,OAAO,EAAE,OAAO,MACd,EAAE,WACF,EAAE,WAAa,EAAE,WAClB,CASH,SAAgB,EAAmB,EAA+B,CAChE,GAAI,CAAC,EACH,MAAU,MAAM,qCAAqC,CAEvD,GAAI,CAAC,EAAW,EAAS,CACvB,MAAU,MAAM,gCAAgC,IAAW,CAG7D,IAAM,EAAI,EAAa,EAAS,CAEhC,OAAO,EAAE,OAAO,MAAM,EAAE,WAAY,EAAE,WAAa,EAAE,WAAW,CASlE,eAAsB,EAAgB,EAAkB,EAAmB,CACzE,GAAI,CAAC,EACH,MAAU,MAAM,sCAAsC,CAEnD,EAAW,EAAa,EAAS,CAAC,EACrC,MAAM,EAAgB,EAAa,EAAS,CAAC,CAG/C,MAAM,EAAU,EAAU,EAAO,KAAK,EAAK,CAAC,CAS9C,SAAgB,EAAoB,EAAkB,EAAmB,CACvE,GAAI,CAAC,EACH,MAAU,MAAM,sCAAsC,CAEnD,EAAW,EAAa,EAAS,CAAC,EACrC,EAAoB,EAAa,EAAS,CAAC,CAG7C,EAAc,EAAU,EAAO,KAAK,EAAK,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/buffer.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Reads a file from the given path and returns its content as an ArrayBuffer. The file is expected to be located relative to the current directory of this module.
|
|
4
|
-
*
|
|
5
|
-
* @param filePath - The path to the file to read.
|
|
6
|
-
* @returns The content of the file as an ArrayBuffer.
|
|
7
|
-
*/
|
|
8
|
-
declare function readFileBuffer(filePath: string): Promise<ArrayBuffer>;
|
|
9
|
-
/**
|
|
10
|
-
* Reads a file from the given path and returns its content as an ArrayBuffer. The file is expected to be located relative to the current directory of this module.
|
|
11
|
-
*
|
|
12
|
-
* @param filePath - The path to the file to read.
|
|
13
|
-
* @returns The content of the file as an ArrayBuffer.
|
|
14
|
-
*/
|
|
15
|
-
declare function readFileBufferSync(filePath: string): ArrayBuffer;
|
|
16
|
-
/**
|
|
17
|
-
* Writes an ArrayBuffer to a file at the specified path.
|
|
18
|
-
*
|
|
19
|
-
* @param filePath - The path to the file where the data should be written.
|
|
20
|
-
* @param data - The ArrayBuffer containing the data to write.
|
|
21
|
-
*/
|
|
22
|
-
declare function writeFileBuffer(filePath: string, data: ArrayBuffer): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Writes an ArrayBuffer to a file at the specified path.
|
|
25
|
-
*
|
|
26
|
-
* @param filePath - The path to the file where the data should be written.
|
|
27
|
-
* @param data - The ArrayBuffer containing the data to write.
|
|
28
|
-
*/
|
|
29
|
-
declare function writeFileBufferSync(filePath: string, data: ArrayBuffer): void;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { writeFileBufferSync as i, readFileBufferSync as n, writeFileBuffer as r, readFileBuffer as t };
|
|
32
|
-
//# sourceMappingURL=buffer-DgfUmhrc.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buffer-DgfUmhrc.d.mts","names":[],"sources":["../src/buffer.ts"],"sourcesContent":[],"mappings":";;AA8BA;AAsBA;AAmBA;AAiBA;;iBA1DsB,cAAA,oBAAkC,QAAQ;;;;;;;iBAsBhD,kBAAA,oBAAsC;;;;;;;iBAmBhC,eAAA,yBAAwC,cAAW;;;;;;;iBAiBzD,mBAAA,yBAA4C"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/buffer.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Reads a file from the given path and returns its content as an ArrayBuffer. The file is expected to be located relative to the current directory of this module.
|
|
4
|
-
*
|
|
5
|
-
* @param filePath - The path to the file to read.
|
|
6
|
-
* @returns The content of the file as an ArrayBuffer.
|
|
7
|
-
*/
|
|
8
|
-
declare function readFileBuffer(filePath: string): Promise<ArrayBuffer>;
|
|
9
|
-
/**
|
|
10
|
-
* Reads a file from the given path and returns its content as an ArrayBuffer. The file is expected to be located relative to the current directory of this module.
|
|
11
|
-
*
|
|
12
|
-
* @param filePath - The path to the file to read.
|
|
13
|
-
* @returns The content of the file as an ArrayBuffer.
|
|
14
|
-
*/
|
|
15
|
-
declare function readFileBufferSync(filePath: string): ArrayBuffer;
|
|
16
|
-
/**
|
|
17
|
-
* Writes an ArrayBuffer to a file at the specified path.
|
|
18
|
-
*
|
|
19
|
-
* @param filePath - The path to the file where the data should be written.
|
|
20
|
-
* @param data - The ArrayBuffer containing the data to write.
|
|
21
|
-
*/
|
|
22
|
-
declare function writeFileBuffer(filePath: string, data: ArrayBuffer): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Writes an ArrayBuffer to a file at the specified path.
|
|
25
|
-
*
|
|
26
|
-
* @param filePath - The path to the file where the data should be written.
|
|
27
|
-
* @param data - The ArrayBuffer containing the data to write.
|
|
28
|
-
*/
|
|
29
|
-
declare function writeFileBufferSync(filePath: string, data: ArrayBuffer): void;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { writeFileBufferSync as i, readFileBufferSync as n, writeFileBuffer as r, readFileBuffer as t };
|
|
32
|
-
//# sourceMappingURL=buffer-DvCjrjQH.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buffer-DvCjrjQH.d.cts","names":[],"sources":["../src/buffer.ts"],"sourcesContent":[],"mappings":";;AA8BA;AAsBA;AAmBA;AAiBA;;iBA1DsB,cAAA,oBAAkC,QAAQ;;;;;;;iBAsBhD,kBAAA,oBAAsC;;;;;;;iBAmBhC,eAAA,yBAAwC,cAAW;;;;;;;iBAiBzD,mBAAA,yBAA4C"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
//#region src/chmod-x.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Adds execute permissions to a file
|
|
4
|
-
*
|
|
5
|
-
* @param file - The file to add execute permissions to
|
|
6
|
-
*/
|
|
7
|
-
declare function chmodXSync(file: string): void;
|
|
8
|
-
/**
|
|
9
|
-
* Adds execute permissions to a file
|
|
10
|
-
*
|
|
11
|
-
* @param file - The file to add execute permissions to
|
|
12
|
-
*/
|
|
13
|
-
declare function chmodX(file: string): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Checks the write permission of a file
|
|
16
|
-
*
|
|
17
|
-
* @param filename - The file to check the permission of
|
|
18
|
-
* @returns A promise that resolves to true if the file is writable, false otherwise
|
|
19
|
-
*/
|
|
20
|
-
declare function isWritable(filename: string): Promise<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
* Checks the write permission of a file
|
|
23
|
-
*
|
|
24
|
-
* @param filename - The file to check the permission of
|
|
25
|
-
* @returns True if the file is writable, false otherwise
|
|
26
|
-
*/
|
|
27
|
-
declare function isWritableSync(filename: string): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Checks the execute permission of a file
|
|
30
|
-
*
|
|
31
|
-
* @param filename - The file to check the permission of
|
|
32
|
-
* @returns A promise that resolves to true if the file is executable, false otherwise
|
|
33
|
-
*/
|
|
34
|
-
declare function isExecutable(filename: string): Promise<boolean>;
|
|
35
|
-
/**
|
|
36
|
-
* Checks the execute permission of a file
|
|
37
|
-
*
|
|
38
|
-
* @param filename - The file to check the permission of
|
|
39
|
-
* @returns True if the file is executable, false otherwise
|
|
40
|
-
*/
|
|
41
|
-
declare function isExecutableSync(filename: string): boolean;
|
|
42
|
-
//#endregion
|
|
43
|
-
export { isWritable as a, isExecutableSync as i, chmodXSync as n, isWritableSync as o, isExecutable as r, chmodX as t };
|
|
44
|
-
//# sourceMappingURL=chmod-x-BPr4tt2-.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chmod-x-BPr4tt2-.d.cts","names":[],"sources":["../src/chmod-x.ts"],"sourcesContent":[],"mappings":";;AA0BA;AAuBA;AAwBA;AAeA;AAesB,iBA7EN,UAAA,CA6EsC,IAAO,EAAA,MAAA,CAAA,EAAA,IAAA;AAe7D;;;;;iBArEsB,MAAA,gBAAmB;;;;;;;iBAwBnB,UAAA,oBAA8B;;;;;;;iBAepC,cAAA;;;;;;;iBAeM,YAAA,oBAAgC;;;;;;;iBAetC,gBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`node:fs`),n=require(`node:fs/promises`);function r(e){if(process.platform===`win32`)return;let n=(0,t.statSync)(e),r=n.mode|73;n.mode!==r&&(0,t.chmodSync)(e,r.toString(8).slice(-3))}async function i(e){if(process.platform===`win32`)return;let r=(0,t.statSync)(e),i=r.mode|73;if(r.mode!==i)return(0,n.chmod)(e,i.toString(8).slice(-3))}async function a(e){try{return await(0,n.access)(e,t.constants.W_OK),!0}catch{return!1}}function o(e){try{return(0,t.accessSync)(e,t.constants.W_OK),!0}catch{return!1}}async function s(e){try{return await(0,n.access)(e,t.constants.X_OK),!0}catch{return!1}}function c(e){try{return(0,t.accessSync)(e,t.constants.X_OK),!0}catch{return!1}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|