powerlines 0.37.23 → 0.37.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.js +3 -3
- package/dist/{chunk-D4L3REG4.js → chunk-4KHQJLOZ.js} +3 -3
- package/dist/{chunk-Z7KIQFLN.js → chunk-5EXQR5PS.js} +3 -3
- package/dist/{chunk-3XEOJ3TS.js → chunk-5UWYXYHN.js} +68 -15
- package/dist/{chunk-DWF4GVXQ.cjs → chunk-A44AVBOK.cjs} +4 -4
- package/dist/{chunk-C3TWAGFQ.cjs → chunk-A6EFHKFH.cjs} +5 -5
- package/dist/{chunk-UQ7LY7EU.js → chunk-CBUBY3RQ.js} +3 -3
- package/dist/chunk-EBWMUY6X.cjs +12 -0
- package/dist/chunk-EIJCWBLT.cjs +12 -0
- package/dist/{chunk-PQ6DDPXP.js → chunk-GBWZQNCT.js} +3 -3
- package/dist/{chunk-R7IUNKL4.cjs → chunk-GLFCJGOU.cjs} +68 -15
- package/dist/{chunk-APLBM72X.js → chunk-KUVGZOIR.js} +3 -3
- package/dist/{chunk-UZV6LCRL.cjs → chunk-VNXIVSZM.cjs} +4 -4
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +2 -2
- package/dist/lib/{chunk-NE26SC53.js → chunk-2LZ2KCSP.js} +3 -3
- package/dist/lib/{chunk-NE26SC53.js.map → chunk-2LZ2KCSP.js.map} +1 -1
- package/dist/lib/{chunk-UKH6QWNB.js → chunk-4UBTIIJL.js} +4 -4
- package/dist/lib/{chunk-UKH6QWNB.js.map → chunk-4UBTIIJL.js.map} +1 -1
- package/dist/lib/{chunk-KAYP2ZET.js → chunk-5KPURJGU.js} +3 -3
- package/dist/lib/{chunk-KAYP2ZET.js.map → chunk-5KPURJGU.js.map} +1 -1
- package/dist/lib/{chunk-Y542GHNE.cjs → chunk-5NQEQLWX.cjs} +6 -6
- package/dist/lib/{chunk-Y542GHNE.cjs.map → chunk-5NQEQLWX.cjs.map} +1 -1
- package/dist/lib/{chunk-GAIS4GMK.js → chunk-67DD6S67.js} +69 -16
- package/dist/lib/chunk-67DD6S67.js.map +1 -0
- package/dist/lib/{chunk-K3NVHAWK.js → chunk-7S3JZ53C.js} +3 -3
- package/dist/lib/{chunk-K3NVHAWK.js.map → chunk-7S3JZ53C.js.map} +1 -1
- package/dist/lib/{chunk-EUG7HXQY.js → chunk-AENFA3JO.js} +4 -4
- package/dist/lib/{chunk-EUG7HXQY.js.map → chunk-AENFA3JO.js.map} +1 -1
- package/dist/lib/{chunk-5WSRLNW3.cjs → chunk-CTZ34LYF.cjs} +74 -21
- package/dist/lib/chunk-CTZ34LYF.cjs.map +1 -0
- package/dist/lib/{chunk-ZYQHFUU6.cjs → chunk-DFEKS6NC.cjs} +16 -16
- package/dist/lib/{chunk-ZYQHFUU6.cjs.map → chunk-DFEKS6NC.cjs.map} +1 -1
- package/dist/lib/{chunk-Y2IR6IBT.cjs → chunk-IBV5LQEW.cjs} +19 -19
- package/dist/lib/{chunk-Y2IR6IBT.cjs.map → chunk-IBV5LQEW.cjs.map} +1 -1
- package/dist/lib/{chunk-YYG2XJQN.cjs → chunk-J4TJDOSP.cjs} +4 -4
- package/dist/lib/chunk-J4TJDOSP.cjs.map +1 -0
- package/dist/lib/{chunk-EBBGE5FN.js → chunk-LGM65FVK.js} +4 -4
- package/dist/lib/chunk-LGM65FVK.js.map +1 -0
- package/dist/lib/{chunk-NP43P5WN.cjs → chunk-S3WD3XWS.cjs} +5 -5
- package/dist/lib/{chunk-NP43P5WN.cjs.map → chunk-S3WD3XWS.cjs.map} +1 -1
- package/dist/lib/{chunk-RI3JLIUH.cjs → chunk-XKEHVYDR.cjs} +7 -7
- package/dist/lib/{chunk-RI3JLIUH.cjs.map → chunk-XKEHVYDR.cjs.map} +1 -1
- package/dist/lib/contexts/api-context.cjs +7 -7
- package/dist/lib/contexts/api-context.js +6 -6
- package/dist/lib/contexts/context.cjs +5 -5
- package/dist/lib/contexts/context.js +4 -4
- package/dist/lib/contexts/environment-context.cjs +6 -6
- package/dist/lib/contexts/environment-context.js +5 -5
- package/dist/lib/contexts/index.cjs +9 -9
- package/dist/lib/contexts/index.js +6 -6
- package/dist/lib/fs/helpers.cjs +12 -12
- package/dist/lib/fs/helpers.d.cts +1 -1
- package/dist/lib/fs/helpers.d.ts +1 -1
- package/dist/lib/fs/helpers.js +1 -1
- package/dist/lib/fs/index.cjs +4 -4
- package/dist/lib/fs/index.js +3 -3
- package/dist/lib/fs/storage/file-system.cjs +3 -3
- package/dist/lib/fs/storage/file-system.js +2 -2
- package/dist/lib/fs/storage/index.cjs +3 -3
- package/dist/lib/fs/storage/index.js +2 -2
- package/dist/lib/fs/vfs.cjs +4 -4
- package/dist/lib/fs/vfs.js +3 -3
- package/dist/lib/index.cjs +12 -12
- package/dist/lib/index.js +7 -7
- package/dist/lib/unplugin/factory.cjs +8 -8
- package/dist/lib/unplugin/factory.js +7 -7
- package/dist/lib/unplugin/index.cjs +8 -8
- package/dist/lib/unplugin/index.js +7 -7
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.js +5 -5
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -8
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.js +3 -3
- package/package.json +8 -8
- package/dist/chunk-4QCZWJMW.cjs +0 -12
- package/dist/chunk-D56IP3ZO.cjs +0 -12
- package/dist/lib/chunk-5WSRLNW3.cjs.map +0 -1
- package/dist/lib/chunk-EBBGE5FN.js.map +0 -1
- package/dist/lib/chunk-GAIS4GMK.js.map +0 -1
- package/dist/lib/chunk-YYG2XJQN.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4LHV7MWI_cjs = require('./chunk-4LHV7MWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkJ4TJDOSP_cjs = require('./chunk-J4TJDOSP.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var exists = require('@stryke/fs/exists');
|
|
7
7
|
var helpers = require('@stryke/fs/helpers');
|
|
@@ -103,7 +103,7 @@ var FileSystemStorageAdapter = class extends chunk4LHV7MWI_cjs.BaseStorageAdapte
|
|
|
103
103
|
try {
|
|
104
104
|
return fs.unlinkSync(this.resolve(key));
|
|
105
105
|
} catch (err) {
|
|
106
|
-
return
|
|
106
|
+
return chunkJ4TJDOSP_cjs.ignoreNotfound(err);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -114,7 +114,7 @@ var FileSystemStorageAdapter = class extends chunk4LHV7MWI_cjs.BaseStorageAdapte
|
|
|
114
114
|
*/
|
|
115
115
|
async remove(key) {
|
|
116
116
|
if (!this.options.isReadOnly) {
|
|
117
|
-
return promises.unlink(this.resolve(key)).catch(
|
|
117
|
+
return promises.unlink(this.resolve(key)).catch(chunkJ4TJDOSP_cjs.ignoreNotfound);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
@@ -145,7 +145,7 @@ var FileSystemStorageAdapter = class extends chunk4LHV7MWI_cjs.BaseStorageAdapte
|
|
|
145
145
|
ignore: this.options.ignore
|
|
146
146
|
});
|
|
147
147
|
} catch (err) {
|
|
148
|
-
return
|
|
148
|
+
return chunkJ4TJDOSP_cjs.ignoreNotfound(err) ?? [];
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
@@ -157,7 +157,7 @@ var FileSystemStorageAdapter = class extends chunk4LHV7MWI_cjs.BaseStorageAdapte
|
|
|
157
157
|
async list(base) {
|
|
158
158
|
return listFiles.listFiles(this.resolve(base), {
|
|
159
159
|
ignore: this.options.ignore
|
|
160
|
-
}).catch(
|
|
160
|
+
}).catch(chunkJ4TJDOSP_cjs.ignoreNotfound).then((r) => r || []);
|
|
161
161
|
}
|
|
162
162
|
/**
|
|
163
163
|
* Synchronously checks if the given key is a directory.
|
|
@@ -180,5 +180,5 @@ var FileSystemStorageAdapter = class extends chunk4LHV7MWI_cjs.BaseStorageAdapte
|
|
|
180
180
|
};
|
|
181
181
|
|
|
182
182
|
exports.FileSystemStorageAdapter = FileSystemStorageAdapter;
|
|
183
|
-
//# sourceMappingURL=chunk-
|
|
184
|
-
//# sourceMappingURL=chunk-
|
|
183
|
+
//# sourceMappingURL=chunk-XKEHVYDR.cjs.map
|
|
184
|
+
//# sourceMappingURL=chunk-XKEHVYDR.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/fs/storage/file-system.ts"],"names":["FileSystemStorageAdapter","BaseStorageAdapter","name","preset","options","existsSync","key","resolve","exists","getSync","readFileSync","get","readFile","setSync","value","isReadOnly","writeFileSync","set","writeFile","removeSync","unlinkSync","err","ignoreNotfound","remove","unlink","catch","mkdirSync","dirPath","createDirectorySync","mkdir","createDirectory","listSync","base","listFilesSync","ignore","list","listFiles","then","r","isDirectorySync","isDirectory","isFileSync","isFile"],"mappings":";;;;;;;;;;;;;;AAmCO,IAAMA,wBAAAA,GAAN,cAAuCC,oCAAAA,CAAAA;EAnC9C;;;;;;EAuCSC,IAAAA,GAAO,aAAA;;;;;;;EAQ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AAOI,mBAAAA,CAAU,IAAA,CAAK7B,OAAAA,CAAQyB,IAAAA,CAAAA,EAAO;AACnCE,MAAAA,MAAAA,EAAQ,KAAK9B,OAAAA,CAAQ8B;KACvB,CAAA,CACGT,MAAMH,gCAAAA,CAAAA,CACNe,KAAKC,CAAAA,CAAAA,KAAKA,CAAAA,IAAK,EAAE,CAAA;AACtB,EAAA;;;;;;;AAQgBC,EAAAA,eAAAA,CAAgBjC,GAAAA,EAAsB;AACpD,IAAA,OAAOkC,kBAAAA,CAAY,IAAA,CAAKjC,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AAClC,EAAA;;;;;;;AAQgBmC,EAAAA,UAAAA,CAAWnC,GAAAA,EAAsB;AAC/C,IAAA,OAAO,CAACoC,aAAAA,CAAO,IAAA,CAAKnC,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AAC9B,EAAA;AACF","file":"chunk-RI3JLIUH.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\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/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { exists, existsSync } from \"@stryke/fs/exists\";\nimport { createDirectory, createDirectorySync } from \"@stryke/fs/helpers\";\nimport { isDirectory, isFile } from \"@stryke/fs/is-file\";\nimport { listFiles, listFilesSync } from \"@stryke/fs/list-files\";\nimport { readFile, readFileSync } from \"@stryke/fs/read-file\";\nimport { writeFile, writeFileSync } from \"@stryke/fs/write-file\";\nimport { unlinkSync } from \"node:fs\";\nimport { unlink } from \"node:fs/promises\";\nimport { ignoreNotfound } from \"../helpers\";\nimport { BaseStorageAdapter, StorageAdapterOptions } from \"./base\";\n\nexport type SetSyncOptions = Parameters<typeof writeFileSync>[2];\nexport type SetOptions = Parameters<typeof writeFile>[2];\n\n/**\n * File system storage adapter implementation.\n */\nexport class FileSystemStorageAdapter extends BaseStorageAdapter {\n /**\n * A name identifying the storage adapter type.\n */\n public name = \"file-system\";\n\n /**\n * The storage preset for the adapter.\n *\n * @remarks\n * This can be used as an alternate way to identify the type of storage being used.\n */\n public override readonly preset = \"fs\";\n\n /**\n * Constructor for the FileSystemStorageAdapter.\n *\n * @param options - Configuration options for the storage adapter.\n */\n public constructor(options?: StorageAdapterOptions) {\n super(options);\n }\n\n /**\n * Synchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns Returns `true` if the key exists, otherwise `false`.\n */\n public existsSync(key: string): boolean {\n return existsSync(this.resolve(key));\n }\n\n /**\n * Asynchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns A promise that resolves to `true` if the key exists, otherwise `false`.\n */\n public override async exists(key: string): Promise<boolean> {\n return exists(this.resolve(key));\n }\n\n /**\n * Synchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns The value associated with the key, or `null` if the key does not exist.\n */\n public getSync(key: string): string | null {\n return readFileSync(this.resolve(key));\n }\n\n /**\n * Asynchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns A promise that resolves to the value associated with the key, or `null` if the key does not exist.\n */\n public override async get(key: string): Promise<string | null> {\n return readFile(this.resolve(key));\n }\n\n /**\n * Synchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public setSync(key: string, value: string) {\n if (!this.options.isReadOnly) {\n return writeFileSync(this.resolve(key), value);\n }\n }\n\n /**\n * Asynchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public override async set(key: string, value: string): Promise<void> {\n if (!this.options.isReadOnly) {\n return writeFile(this.resolve(key), value);\n }\n }\n\n /**\n * Synchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public removeSync(key: string) {\n if (!this.options.isReadOnly) {\n try {\n return unlinkSync(this.resolve(key));\n } catch (err) {\n return ignoreNotfound(err);\n }\n }\n }\n\n /**\n * Asynchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public override async remove(key: string): Promise<void> {\n if (!this.options.isReadOnly) {\n return unlink(this.resolve(key)).catch(ignoreNotfound);\n }\n }\n\n /**\n * Synchronously creates a directory at the specified path.\n *\n * @param dirPath - The path of the directory to create.\n */\n public override mkdirSync(dirPath: string) {\n createDirectorySync(this.resolve(dirPath));\n }\n\n /**\n * Creates a directory at the specified path.\n *\n * @param dirPath - The path of the directory to create.\n */\n public override async mkdir(dirPath: string): Promise<void> {\n await createDirectory(this.resolve(dirPath));\n }\n\n /**\n * Lists all keys under a given base path synchronously.\n *\n * @param base - The base path to list keys from.\n * @returns An array of keys under the specified base path.\n */\n public listSync(base?: string): string[] {\n try {\n return listFilesSync(this.resolve(base), {\n ignore: this.options.ignore\n });\n } catch (err) {\n return ignoreNotfound(err) ?? [];\n }\n }\n\n /**\n * Asynchronously lists all keys under a given base path.\n *\n * @param base - The base path to list keys from.\n * @returns A promise that resolves to an array of keys under the specified base path.\n */\n public override async list(base?: string): Promise<string[]> {\n return listFiles(this.resolve(base), {\n ignore: this.options.ignore\n })\n .catch(ignoreNotfound)\n .then(r => r || []);\n }\n\n /**\n * Synchronously checks if the given key is a directory.\n *\n * @param key - The key to check.\n * @returns `true` if the key is a directory, otherwise `false`.\n */\n public override isDirectorySync(key: string): boolean {\n return isDirectory(this.resolve(key));\n }\n\n /**\n * Synchronously checks if the given key is a file.\n *\n * @param key - The key to check.\n * @returns `true` if the key is a file, otherwise `false`.\n */\n public override isFileSync(key: string): boolean {\n return !isFile(this.resolve(key));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/lib/fs/storage/file-system.ts"],"names":["FileSystemStorageAdapter","BaseStorageAdapter","name","preset","options","existsSync","key","resolve","exists","getSync","readFileSync","get","readFile","setSync","value","isReadOnly","writeFileSync","set","writeFile","removeSync","unlinkSync","err","ignoreNotfound","remove","unlink","catch","mkdirSync","dirPath","createDirectorySync","mkdir","createDirectory","listSync","base","listFilesSync","ignore","list","listFiles","then","r","isDirectorySync","isDirectory","isFileSync","isFile"],"mappings":";;;;;;;;;;;;;;AAmCO,IAAMA,wBAAAA,GAAN,cAAuCC,oCAAAA,CAAAA;EAnC9C;;;;;;EAuCSC,IAAAA,GAAO,aAAA;;;;;;;EAQWC,MAAAA,GAAS,IAAA;;;;;;AAOlC,EAAA,WAAA,CAAmBC,OAAAA,EAAiC;AAClD,IAAA,KAAA,CAAMA,OAAAA,CAAAA;AACR,EAAA;;;;;;;AAQOC,EAAAA,UAAAA,CAAWC,GAAAA,EAAsB;AACtC,IAAA,OAAOD,iBAAAA,CAAW,IAAA,CAAKE,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AACjC,EAAA;;;;;;;AAQA,EAAA,MAAsBE,OAAOF,GAAAA,EAA+B;AAC1D,IAAA,OAAOE,aAAAA,CAAO,IAAA,CAAKD,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AAC7B,EAAA;;;;;;;AAQOG,EAAAA,OAAAA,CAAQH,GAAAA,EAA4B;AACzC,IAAA,OAAOI,qBAAAA,CAAa,IAAA,CAAKH,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AACnC,EAAA;;;;;;;AAQA,EAAA,MAAsBK,IAAIL,GAAAA,EAAqC;AAC7D,IAAA,OAAOM,iBAAAA,CAAS,IAAA,CAAKL,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AAC/B,EAAA;;;;;;;AAQOO,EAAAA,OAAAA,CAAQP,KAAaQ,KAAAA,EAAe;AACzC,IAAA,IAAI,CAAC,IAAA,CAAKV,OAAAA,CAAQW,UAAAA,EAAY;AAC5B,MAAA,OAAOC,uBAAAA,CAAc,IAAA,CAAKT,OAAAA,CAA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AAI;AACF,MAAA,OAAOC,uBAAAA,CAAc,IAAA,CAAK1B,OAAAA,CAAQyB,IAAAA,CAAAA,EAAO;AACvCE,QAAAA,MAAAA,EAAQ,KAAK9B,OAAAA,CAAQ8B;OACvB,CAAA;AACF,IAAA,CAAA,CAAA,OAASb,GAAAA,EAAK;AACZ,MAAA,OAAOC,gCAAAA,CAAeD,GAAAA,CAAAA,IAAQ,EAAA;AAChC,IAAA;AACF,EAAA;;;;;;;AAQA,EAAA,MAAsBc,KAAKH,IAAAA,EAAkC;AAC3D,IAAA,OAAOI,mBAAAA,CAAU,IAAA,CAAK7B,OAAAA,CAAQyB,IAAAA,CAAAA,EAAO;AACnCE,MAAAA,MAAAA,EAAQ,KAAK9B,OAAAA,CAAQ8B;KACvB,CAAA,CACGT,MAAMH,gCAAAA,CAAAA,CACNe,KAAKC,CAAAA,CAAAA,KAAKA,CAAAA,IAAK,EAAE,CAAA;AACtB,EAAA;;;;;;;AAQgBC,EAAAA,eAAAA,CAAgBjC,GAAAA,EAAsB;AACpD,IAAA,OAAOkC,kBAAAA,CAAY,IAAA,CAAKjC,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AAClC,EAAA;;;;;;;AAQgBmC,EAAAA,UAAAA,CAAWnC,GAAAA,EAAsB;AAC/C,IAAA,OAAO,CAACoC,aAAAA,CAAO,IAAA,CAAKnC,OAAAA,CAAQD,GAAAA,CAAAA,CAAAA;AAC9B,EAAA;AACF","file":"chunk-XKEHVYDR.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\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/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { exists, existsSync } from \"@stryke/fs/exists\";\nimport { createDirectory, createDirectorySync } from \"@stryke/fs/helpers\";\nimport { isDirectory, isFile } from \"@stryke/fs/is-file\";\nimport { listFiles, listFilesSync } from \"@stryke/fs/list-files\";\nimport { readFile, readFileSync } from \"@stryke/fs/read-file\";\nimport { writeFile, writeFileSync } from \"@stryke/fs/write-file\";\nimport { unlinkSync } from \"node:fs\";\nimport { unlink } from \"node:fs/promises\";\nimport { ignoreNotfound } from \"../helpers\";\nimport { BaseStorageAdapter, StorageAdapterOptions } from \"./base\";\n\nexport type SetSyncOptions = Parameters<typeof writeFileSync>[2];\nexport type SetOptions = Parameters<typeof writeFile>[2];\n\n/**\n * File system storage adapter implementation.\n */\nexport class FileSystemStorageAdapter extends BaseStorageAdapter {\n /**\n * A name identifying the storage adapter type.\n */\n public name = \"file-system\";\n\n /**\n * The storage preset for the adapter.\n *\n * @remarks\n * This can be used as an alternate way to identify the type of storage being used.\n */\n public override readonly preset = \"fs\";\n\n /**\n * Constructor for the FileSystemStorageAdapter.\n *\n * @param options - Configuration options for the storage adapter.\n */\n public constructor(options?: StorageAdapterOptions) {\n super(options);\n }\n\n /**\n * Synchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns Returns `true` if the key exists, otherwise `false`.\n */\n public existsSync(key: string): boolean {\n return existsSync(this.resolve(key));\n }\n\n /**\n * Asynchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns A promise that resolves to `true` if the key exists, otherwise `false`.\n */\n public override async exists(key: string): Promise<boolean> {\n return exists(this.resolve(key));\n }\n\n /**\n * Synchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns The value associated with the key, or `null` if the key does not exist.\n */\n public getSync(key: string): string | null {\n return readFileSync(this.resolve(key));\n }\n\n /**\n * Asynchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns A promise that resolves to the value associated with the key, or `null` if the key does not exist.\n */\n public override async get(key: string): Promise<string | null> {\n return readFile(this.resolve(key));\n }\n\n /**\n * Synchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public setSync(key: string, value: string) {\n if (!this.options.isReadOnly) {\n return writeFileSync(this.resolve(key), value);\n }\n }\n\n /**\n * Asynchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public override async set(key: string, value: string): Promise<void> {\n if (!this.options.isReadOnly) {\n return writeFile(this.resolve(key), value);\n }\n }\n\n /**\n * Synchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public removeSync(key: string) {\n if (!this.options.isReadOnly) {\n try {\n return unlinkSync(this.resolve(key));\n } catch (err) {\n return ignoreNotfound(err);\n }\n }\n }\n\n /**\n * Asynchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public override async remove(key: string): Promise<void> {\n if (!this.options.isReadOnly) {\n return unlink(this.resolve(key)).catch(ignoreNotfound);\n }\n }\n\n /**\n * Synchronously creates a directory at the specified path.\n *\n * @param dirPath - The path of the directory to create.\n */\n public override mkdirSync(dirPath: string) {\n createDirectorySync(this.resolve(dirPath));\n }\n\n /**\n * Creates a directory at the specified path.\n *\n * @param dirPath - The path of the directory to create.\n */\n public override async mkdir(dirPath: string): Promise<void> {\n await createDirectory(this.resolve(dirPath));\n }\n\n /**\n * Lists all keys under a given base path synchronously.\n *\n * @param base - The base path to list keys from.\n * @returns An array of keys under the specified base path.\n */\n public listSync(base?: string): string[] {\n try {\n return listFilesSync(this.resolve(base), {\n ignore: this.options.ignore\n });\n } catch (err) {\n return ignoreNotfound(err) ?? [];\n }\n }\n\n /**\n * Asynchronously lists all keys under a given base path.\n *\n * @param base - The base path to list keys from.\n * @returns A promise that resolves to an array of keys under the specified base path.\n */\n public override async list(base?: string): Promise<string[]> {\n return listFiles(this.resolve(base), {\n ignore: this.options.ignore\n })\n .catch(ignoreNotfound)\n .then(r => r || []);\n }\n\n /**\n * Synchronously checks if the given key is a directory.\n *\n * @param key - The key to check.\n * @returns `true` if the key is a directory, otherwise `false`.\n */\n public override isDirectorySync(key: string): boolean {\n return isDirectory(this.resolve(key));\n }\n\n /**\n * Synchronously checks if the given key is a file.\n *\n * @param key - The key to check.\n * @returns `true` if the key is a file, otherwise `false`.\n */\n public override isFileSync(key: string): boolean {\n return !isFile(this.resolve(key));\n }\n}\n"]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk5NQEQLWX_cjs = require('../chunk-5NQEQLWX.cjs');
|
|
4
|
+
require('../chunk-IBV5LQEW.cjs');
|
|
5
5
|
require('../chunk-GNEHIBN4.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-S3WD3XWS.cjs');
|
|
7
7
|
require('../chunk-BJGMF356.cjs');
|
|
8
8
|
require('../chunk-ZWLSNYIN.cjs');
|
|
9
9
|
require('../chunk-QHTL2U3L.cjs');
|
|
10
10
|
require('../chunk-64R4MDJ7.cjs');
|
|
11
11
|
require('../chunk-GZDE4GLY.cjs');
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-CTZ34LYF.cjs');
|
|
13
|
+
require('../chunk-XKEHVYDR.cjs');
|
|
14
14
|
require('../chunk-FO5AJ2PR.cjs');
|
|
15
15
|
require('../chunk-4LHV7MWI.cjs');
|
|
16
16
|
require('../chunk-QSNEYALY.cjs');
|
|
17
|
-
require('../chunk-
|
|
17
|
+
require('../chunk-J4TJDOSP.cjs');
|
|
18
18
|
require('../chunk-H3C5BWBW.cjs');
|
|
19
19
|
require('../chunk-2JR645O3.cjs');
|
|
20
20
|
require('../chunk-GFUPZMLG.cjs');
|
|
@@ -26,7 +26,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk5NQEQLWX_cjs.PowerlinesAPIContext; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=api-context.cjs.map
|
|
32
32
|
//# sourceMappingURL=api-context.cjs.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PowerlinesAPIContext } from '../chunk-4UBTIIJL.js';
|
|
2
|
+
import '../chunk-5KPURJGU.js';
|
|
3
3
|
import '../chunk-254IMO3A.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-7S3JZ53C.js';
|
|
5
5
|
import '../chunk-45D4XIOK.js';
|
|
6
6
|
import '../chunk-ZLWW2MXD.js';
|
|
7
7
|
import '../chunk-FPFPUYXS.js';
|
|
8
8
|
import '../chunk-HGE5DAZF.js';
|
|
9
9
|
import '../chunk-7PD2L3PS.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-67DD6S67.js';
|
|
11
|
+
import '../chunk-2LZ2KCSP.js';
|
|
12
12
|
import '../chunk-I3GWGYDB.js';
|
|
13
13
|
import '../chunk-QHKZQZJG.js';
|
|
14
14
|
import '../chunk-XCVUC3IN.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-LGM65FVK.js';
|
|
16
16
|
import '../chunk-BZ5L2CVR.js';
|
|
17
17
|
import '../chunk-Q25ZPXA7.js';
|
|
18
18
|
import '../chunk-F5GKG7AF.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkS3WD3XWS_cjs = require('../chunk-S3WD3XWS.cjs');
|
|
4
4
|
require('../chunk-BJGMF356.cjs');
|
|
5
5
|
require('../chunk-ZWLSNYIN.cjs');
|
|
6
6
|
require('../chunk-QHTL2U3L.cjs');
|
|
7
7
|
require('../chunk-64R4MDJ7.cjs');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-CTZ34LYF.cjs');
|
|
9
|
+
require('../chunk-XKEHVYDR.cjs');
|
|
10
10
|
require('../chunk-FO5AJ2PR.cjs');
|
|
11
11
|
require('../chunk-4LHV7MWI.cjs');
|
|
12
12
|
require('../chunk-QSNEYALY.cjs');
|
|
13
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-J4TJDOSP.cjs');
|
|
14
14
|
require('../chunk-2JR645O3.cjs');
|
|
15
15
|
require('../chunk-GFUPZMLG.cjs');
|
|
16
16
|
require('../chunk-FQZQA4EJ.cjs');
|
|
@@ -21,7 +21,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkS3WD3XWS_cjs.PowerlinesContext; }
|
|
25
25
|
});
|
|
26
26
|
//# sourceMappingURL=context.cjs.map
|
|
27
27
|
//# sourceMappingURL=context.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { PowerlinesContext } from '../chunk-
|
|
1
|
+
export { PowerlinesContext } from '../chunk-7S3JZ53C.js';
|
|
2
2
|
import '../chunk-45D4XIOK.js';
|
|
3
3
|
import '../chunk-ZLWW2MXD.js';
|
|
4
4
|
import '../chunk-FPFPUYXS.js';
|
|
5
5
|
import '../chunk-HGE5DAZF.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-67DD6S67.js';
|
|
7
|
+
import '../chunk-2LZ2KCSP.js';
|
|
8
8
|
import '../chunk-I3GWGYDB.js';
|
|
9
9
|
import '../chunk-QHKZQZJG.js';
|
|
10
10
|
import '../chunk-XCVUC3IN.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-LGM65FVK.js';
|
|
12
12
|
import '../chunk-Q25ZPXA7.js';
|
|
13
13
|
import '../chunk-F5GKG7AF.js';
|
|
14
14
|
import '../chunk-KLU5DWCZ.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIBV5LQEW_cjs = require('../chunk-IBV5LQEW.cjs');
|
|
4
4
|
require('../chunk-GNEHIBN4.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-S3WD3XWS.cjs');
|
|
6
6
|
require('../chunk-BJGMF356.cjs');
|
|
7
7
|
require('../chunk-ZWLSNYIN.cjs');
|
|
8
8
|
require('../chunk-QHTL2U3L.cjs');
|
|
9
9
|
require('../chunk-64R4MDJ7.cjs');
|
|
10
10
|
require('../chunk-GZDE4GLY.cjs');
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-CTZ34LYF.cjs');
|
|
12
|
+
require('../chunk-XKEHVYDR.cjs');
|
|
13
13
|
require('../chunk-FO5AJ2PR.cjs');
|
|
14
14
|
require('../chunk-4LHV7MWI.cjs');
|
|
15
15
|
require('../chunk-QSNEYALY.cjs');
|
|
16
|
-
require('../chunk-
|
|
16
|
+
require('../chunk-J4TJDOSP.cjs');
|
|
17
17
|
require('../chunk-2JR645O3.cjs');
|
|
18
18
|
require('../chunk-GFUPZMLG.cjs');
|
|
19
19
|
require('../chunk-FQZQA4EJ.cjs');
|
|
@@ -24,7 +24,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkIBV5LQEW_cjs.PowerlinesEnvironmentContext; }
|
|
28
28
|
});
|
|
29
29
|
//# sourceMappingURL=environment-context.cjs.map
|
|
30
30
|
//# sourceMappingURL=environment-context.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { PowerlinesEnvironmentContext } from '../chunk-
|
|
1
|
+
export { PowerlinesEnvironmentContext } from '../chunk-5KPURJGU.js';
|
|
2
2
|
import '../chunk-254IMO3A.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-7S3JZ53C.js';
|
|
4
4
|
import '../chunk-45D4XIOK.js';
|
|
5
5
|
import '../chunk-ZLWW2MXD.js';
|
|
6
6
|
import '../chunk-FPFPUYXS.js';
|
|
7
7
|
import '../chunk-HGE5DAZF.js';
|
|
8
8
|
import '../chunk-7PD2L3PS.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-67DD6S67.js';
|
|
10
|
+
import '../chunk-2LZ2KCSP.js';
|
|
11
11
|
import '../chunk-I3GWGYDB.js';
|
|
12
12
|
import '../chunk-QHKZQZJG.js';
|
|
13
13
|
import '../chunk-XCVUC3IN.js';
|
|
14
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-LGM65FVK.js';
|
|
15
15
|
import '../chunk-Q25ZPXA7.js';
|
|
16
16
|
import '../chunk-F5GKG7AF.js';
|
|
17
17
|
import '../chunk-KLU5DWCZ.js';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-QMKA57N4.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk5NQEQLWX_cjs = require('../chunk-5NQEQLWX.cjs');
|
|
5
|
+
var chunkIBV5LQEW_cjs = require('../chunk-IBV5LQEW.cjs');
|
|
6
6
|
require('../chunk-GNEHIBN4.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkS3WD3XWS_cjs = require('../chunk-S3WD3XWS.cjs');
|
|
8
8
|
require('../chunk-BJGMF356.cjs');
|
|
9
9
|
require('../chunk-ZWLSNYIN.cjs');
|
|
10
10
|
require('../chunk-QHTL2U3L.cjs');
|
|
11
11
|
require('../chunk-64R4MDJ7.cjs');
|
|
12
12
|
var chunkGZDE4GLY_cjs = require('../chunk-GZDE4GLY.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-CTZ34LYF.cjs');
|
|
14
|
+
require('../chunk-XKEHVYDR.cjs');
|
|
15
15
|
require('../chunk-FO5AJ2PR.cjs');
|
|
16
16
|
require('../chunk-4LHV7MWI.cjs');
|
|
17
17
|
require('../chunk-QSNEYALY.cjs');
|
|
18
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-J4TJDOSP.cjs');
|
|
19
19
|
require('../chunk-H3C5BWBW.cjs');
|
|
20
20
|
require('../chunk-2JR645O3.cjs');
|
|
21
21
|
require('../chunk-GFUPZMLG.cjs');
|
|
@@ -27,15 +27,15 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
27
27
|
|
|
28
28
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk5NQEQLWX_cjs.PowerlinesAPIContext; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkIBV5LQEW_cjs.PowerlinesEnvironmentContext; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkS3WD3XWS_cjs.PowerlinesContext; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "createPluginContext", {
|
|
41
41
|
enumerable: true,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import '../chunk-FJMP4CXA.js';
|
|
2
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
3
|
-
export { PowerlinesEnvironmentContext } from '../chunk-
|
|
2
|
+
export { PowerlinesAPIContext } from '../chunk-4UBTIIJL.js';
|
|
3
|
+
export { PowerlinesEnvironmentContext } from '../chunk-5KPURJGU.js';
|
|
4
4
|
import '../chunk-254IMO3A.js';
|
|
5
|
-
export { PowerlinesContext } from '../chunk-
|
|
5
|
+
export { PowerlinesContext } from '../chunk-7S3JZ53C.js';
|
|
6
6
|
import '../chunk-45D4XIOK.js';
|
|
7
7
|
import '../chunk-ZLWW2MXD.js';
|
|
8
8
|
import '../chunk-FPFPUYXS.js';
|
|
9
9
|
import '../chunk-HGE5DAZF.js';
|
|
10
10
|
export { createPluginContext } from '../chunk-7PD2L3PS.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-67DD6S67.js';
|
|
12
|
+
import '../chunk-2LZ2KCSP.js';
|
|
13
13
|
import '../chunk-I3GWGYDB.js';
|
|
14
14
|
import '../chunk-QHKZQZJG.js';
|
|
15
15
|
import '../chunk-XCVUC3IN.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-LGM65FVK.js';
|
|
17
17
|
import '../chunk-BZ5L2CVR.js';
|
|
18
18
|
import '../chunk-Q25ZPXA7.js';
|
|
19
19
|
import '../chunk-F5GKG7AF.js';
|
package/dist/lib/fs/helpers.cjs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ4TJDOSP_cjs = require('../chunk-J4TJDOSP.cjs');
|
|
4
4
|
require('../chunk-PK6SKIKE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "filterKeyByBase", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkJ4TJDOSP_cjs.filterKeyByBase; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ignoreExists", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkJ4TJDOSP_cjs.ignoreExists; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ignoreNotfound", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkJ4TJDOSP_cjs.ignoreNotfound; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "isFileError", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkJ4TJDOSP_cjs.isFileError; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "isValidId", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkJ4TJDOSP_cjs.isValidId; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "normalizeBaseKey", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkJ4TJDOSP_cjs.normalizeBaseKey; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "normalizeGlobPatterns", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkJ4TJDOSP_cjs.normalizeGlobPatterns; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "normalizeId", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkJ4TJDOSP_cjs.normalizeId; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "normalizeKey", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkJ4TJDOSP_cjs.normalizeKey; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "normalizePath", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkJ4TJDOSP_cjs.normalizePath; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "toFilePath", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkJ4TJDOSP_cjs.toFilePath; }
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=helpers.cjs.map
|
|
53
53
|
//# sourceMappingURL=helpers.cjs.map
|
|
@@ -32,7 +32,7 @@ declare function toFilePath(path: PathOrFileDescriptor): string;
|
|
|
32
32
|
*/
|
|
33
33
|
declare function isValidId(id: string, prefix?: string): boolean;
|
|
34
34
|
/**
|
|
35
|
-
* Formats a file id by removing the file extension and
|
|
35
|
+
* Formats a file id by removing the file extension and prepended runtime prefix.
|
|
36
36
|
*
|
|
37
37
|
* @param id - The file ID to format.
|
|
38
38
|
* @param prefix - The prefix to use for built-in files. Default is "powerlines".
|
package/dist/lib/fs/helpers.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ declare function toFilePath(path: PathOrFileDescriptor): string;
|
|
|
32
32
|
*/
|
|
33
33
|
declare function isValidId(id: string, prefix?: string): boolean;
|
|
34
34
|
/**
|
|
35
|
-
* Formats a file id by removing the file extension and
|
|
35
|
+
* Formats a file id by removing the file extension and prepended runtime prefix.
|
|
36
36
|
*
|
|
37
37
|
* @param id - The file ID to format.
|
|
38
38
|
* @param prefix - The prefix to use for built-in files. Default is "powerlines".
|
package/dist/lib/fs/helpers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { filterKeyByBase, ignoreExists, ignoreNotfound, isFileError, isValidId, normalizeBaseKey, normalizeGlobPatterns, normalizeId, normalizeKey, normalizePath, toFilePath } from '../chunk-
|
|
1
|
+
export { filterKeyByBase, ignoreExists, ignoreNotfound, isFileError, isValidId, normalizeBaseKey, normalizeGlobPatterns, normalizeId, normalizeKey, normalizePath, toFilePath } from '../chunk-LGM65FVK.js';
|
|
2
2
|
import '../chunk-7QVYU63E.js';
|
|
3
3
|
//# sourceMappingURL=helpers.js.map
|
|
4
4
|
//# sourceMappingURL=helpers.js.map
|
package/dist/lib/fs/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-K3FDM5F3.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var chunkCTZ34LYF_cjs = require('../chunk-CTZ34LYF.cjs');
|
|
5
|
+
require('../chunk-XKEHVYDR.cjs');
|
|
6
6
|
require('../chunk-FO5AJ2PR.cjs');
|
|
7
7
|
require('../chunk-4LHV7MWI.cjs');
|
|
8
8
|
require('../chunk-QSNEYALY.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-J4TJDOSP.cjs');
|
|
10
10
|
require('../chunk-GFUPZMLG.cjs');
|
|
11
11
|
require('../chunk-YF57WETC.cjs');
|
|
12
12
|
require('../chunk-PK6SKIKE.cjs');
|
|
@@ -15,7 +15,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "VirtualFileSystem", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkCTZ34LYF_cjs.VirtualFileSystem; }
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
|
21
21
|
//# sourceMappingURL=index.cjs.map
|
package/dist/lib/fs/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../chunk-GTNYRHTO.js';
|
|
2
|
-
export { VirtualFileSystem } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { VirtualFileSystem } from '../chunk-67DD6S67.js';
|
|
3
|
+
import '../chunk-2LZ2KCSP.js';
|
|
4
4
|
import '../chunk-I3GWGYDB.js';
|
|
5
5
|
import '../chunk-QHKZQZJG.js';
|
|
6
6
|
import '../chunk-XCVUC3IN.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-LGM65FVK.js';
|
|
8
8
|
import '../chunk-F5GKG7AF.js';
|
|
9
9
|
import '../chunk-FFATMOAQ.js';
|
|
10
10
|
import '../chunk-7QVYU63E.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXKEHVYDR_cjs = require('../../chunk-XKEHVYDR.cjs');
|
|
4
4
|
require('../../chunk-4LHV7MWI.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-J4TJDOSP.cjs');
|
|
6
6
|
require('../../chunk-PK6SKIKE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "FileSystemStorageAdapter", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkXKEHVYDR_cjs.FileSystemStorageAdapter; }
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=file-system.cjs.map
|
|
15
15
|
//# sourceMappingURL=file-system.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { FileSystemStorageAdapter } from '../../chunk-
|
|
1
|
+
export { FileSystemStorageAdapter } from '../../chunk-2LZ2KCSP.js';
|
|
2
2
|
import '../../chunk-QHKZQZJG.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-LGM65FVK.js';
|
|
4
4
|
import '../../chunk-7QVYU63E.js';
|
|
5
5
|
//# sourceMappingURL=file-system.js.map
|
|
6
6
|
//# sourceMappingURL=file-system.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXKEHVYDR_cjs = require('../../chunk-XKEHVYDR.cjs');
|
|
4
4
|
var chunkFO5AJ2PR_cjs = require('../../chunk-FO5AJ2PR.cjs');
|
|
5
5
|
var chunk4LHV7MWI_cjs = require('../../chunk-4LHV7MWI.cjs');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-J4TJDOSP.cjs');
|
|
7
7
|
require('../../chunk-PK6SKIKE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "FileSystemStorageAdapter", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXKEHVYDR_cjs.FileSystemStorageAdapter; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "VirtualStorageAdapter", {
|
|
16
16
|
enumerable: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { FileSystemStorageAdapter } from '../../chunk-
|
|
1
|
+
export { FileSystemStorageAdapter } from '../../chunk-2LZ2KCSP.js';
|
|
2
2
|
export { VirtualStorageAdapter } from '../../chunk-I3GWGYDB.js';
|
|
3
3
|
export { BaseStorageAdapter } from '../../chunk-QHKZQZJG.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-LGM65FVK.js';
|
|
5
5
|
import '../../chunk-7QVYU63E.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/fs/vfs.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkCTZ34LYF_cjs = require('../chunk-CTZ34LYF.cjs');
|
|
4
|
+
require('../chunk-XKEHVYDR.cjs');
|
|
5
5
|
require('../chunk-FO5AJ2PR.cjs');
|
|
6
6
|
require('../chunk-4LHV7MWI.cjs');
|
|
7
7
|
require('../chunk-QSNEYALY.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-J4TJDOSP.cjs');
|
|
9
9
|
require('../chunk-GFUPZMLG.cjs');
|
|
10
10
|
require('../chunk-YF57WETC.cjs');
|
|
11
11
|
require('../chunk-PK6SKIKE.cjs');
|
|
@@ -14,7 +14,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "VirtualFileSystem", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCTZ34LYF_cjs.VirtualFileSystem; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=vfs.cjs.map
|
|
20
20
|
//# sourceMappingURL=vfs.cjs.map
|
package/dist/lib/fs/vfs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { VirtualFileSystem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { VirtualFileSystem } from '../chunk-67DD6S67.js';
|
|
2
|
+
import '../chunk-2LZ2KCSP.js';
|
|
3
3
|
import '../chunk-I3GWGYDB.js';
|
|
4
4
|
import '../chunk-QHKZQZJG.js';
|
|
5
5
|
import '../chunk-XCVUC3IN.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-LGM65FVK.js';
|
|
7
7
|
import '../chunk-F5GKG7AF.js';
|
|
8
8
|
import '../chunk-FFATMOAQ.js';
|
|
9
9
|
import '../chunk-7QVYU63E.js';
|