@verdaccio/local-storage 13.0.0-next-8.21 → 13.0.0-next-8.23
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/build/fs.d.ts +11 -10
- package/build/fs.js +2 -1
- package/build/fs.js.map +1 -1
- package/package.json +8 -8
package/build/fs.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
2
3
|
import fsCallback from 'node:fs';
|
|
3
|
-
declare const mkdirPromise:
|
|
4
|
-
declare const accessPromise:
|
|
5
|
-
declare const writeFilePromise:
|
|
6
|
-
declare const readdirPromise:
|
|
7
|
-
declare const statPromise:
|
|
8
|
-
declare const unlinkPromise:
|
|
9
|
-
declare const rmdirPromise:
|
|
10
|
-
declare const renamePromise:
|
|
11
|
-
declare const openPromise:
|
|
12
|
-
declare const readFilePromise: (path: any) => Promise<
|
|
4
|
+
declare const mkdirPromise: typeof fsCallback.promises.mkdir;
|
|
5
|
+
declare const accessPromise: typeof fsCallback.promises.access;
|
|
6
|
+
declare const writeFilePromise: typeof fsCallback.promises.writeFile;
|
|
7
|
+
declare const readdirPromise: typeof fsCallback.promises.readdir;
|
|
8
|
+
declare const statPromise: typeof fsCallback.promises.stat;
|
|
9
|
+
declare const unlinkPromise: typeof fsCallback.promises.unlink;
|
|
10
|
+
declare const rmdirPromise: typeof fsCallback.promises.rmdir;
|
|
11
|
+
declare const renamePromise: typeof fsCallback.promises.rename;
|
|
12
|
+
declare const openPromise: typeof fsCallback.promises.open;
|
|
13
|
+
declare const readFilePromise: (path: any) => Promise<string>;
|
|
13
14
|
declare function fstatPromise(fd: number): Promise<fsCallback.Stats>;
|
|
14
15
|
export { readFilePromise, renamePromise, mkdirPromise, writeFilePromise, readdirPromise, statPromise, accessPromise, unlinkPromise, rmdirPromise, openPromise, fstatPromise, };
|
package/build/fs.js
CHANGED
|
@@ -7,8 +7,9 @@ exports.accessPromise = void 0;
|
|
|
7
7
|
exports.fstatPromise = fstatPromise;
|
|
8
8
|
exports.writeFilePromise = exports.unlinkPromise = exports.statPromise = exports.rmdirPromise = exports.renamePromise = exports.readdirPromise = exports.readFilePromise = exports.openPromise = exports.mkdirPromise = void 0;
|
|
9
9
|
var _nodeFs = _interopRequireDefault(require("node:fs"));
|
|
10
|
+
var fsP = _interopRequireWildcard(require("node:fs/promises"));
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
const fsP = _nodeFs.default.promises ? _nodeFs.default.promises : require('fs/promises');
|
|
12
13
|
const readFile = fsP.readFile;
|
|
13
14
|
const mkdirPromise = exports.mkdirPromise = fsP.mkdir;
|
|
14
15
|
const accessPromise = exports.accessPromise = fsP.access;
|
package/build/fs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.js","names":["_nodeFs","_interopRequireDefault","require","e","__esModule","default","
|
|
1
|
+
{"version":3,"file":"fs.js","names":["_nodeFs","_interopRequireDefault","require","fsP","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","readFile","mkdirPromise","exports","mkdir","accessPromise","access","writeFilePromise","writeFile","readdirPromise","readdir","statPromise","stat","unlinkPromise","unlink","rmdirPromise","rmdir","renamePromise","rename","openPromise","open","readFilePromise","path","fstatPromise","fd","Promise","resolve","reject","fsCallback","fstat","err","stats"],"sources":["../src/fs.ts"],"sourcesContent":["import fsCallback from 'node:fs';\nimport * as fsP from 'node:fs/promises';\n\nconst readFile = fsP.readFile;\nconst mkdirPromise = fsP.mkdir;\nconst accessPromise = fsP.access;\nconst writeFilePromise = fsP.writeFile;\nconst readdirPromise = fsP.readdir;\nconst statPromise = fsP.stat;\nconst unlinkPromise = fsP.unlink;\nconst rmdirPromise = fsP.rmdir;\nconst renamePromise = fsP.rename;\nconst openPromise = fsP.open;\n\nconst readFilePromise = async (path) => {\n return await readFile(path, 'utf8');\n};\n\nfunction fstatPromise(fd: number): Promise<fsCallback.Stats> {\n return new Promise((resolve, reject) => {\n fsCallback.fstat(fd, function (err, stats) {\n if (err) {\n return reject(err);\n }\n return resolve(stats);\n });\n });\n}\n\nexport {\n readFilePromise,\n renamePromise,\n mkdirPromise,\n writeFilePromise,\n readdirPromise,\n statPromise,\n accessPromise,\n unlinkPromise,\n rmdirPromise,\n openPromise,\n fstatPromise,\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAwC,SAAAE,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA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AAGrC,GAAG,CAACsC,MAAM;AAChC,MAAMC,WAAW,GAAAhB,OAAA,CAAAgB,WAAA,GAAGvC,GAAG,CAACwC,IAAI;AAE5B,MAAMC,eAAe,GAAG,MAAOC,IAAI,IAAK;EACtC,OAAO,MAAMrB,QAAQ,CAACqB,IAAI,EAAE,MAAM,CAAC;AACrC,CAAC;AAACnB,OAAA,CAAAkB,eAAA,GAAAA,eAAA;AAEF,SAASE,YAAYA,CAACC,EAAU,EAA6B;EAC3D,OAAO,IAAIC,OAAO,CAAC,CAACC,OAAO,EAAEC,MAAM,KAAK;IACtCC,eAAU,CAACC,KAAK,CAACL,EAAE,EAAE,UAAUM,GAAG,EAAEC,KAAK,EAAE;MACzC,IAAID,GAAG,EAAE;QACP,OAAOH,MAAM,CAACG,GAAG,CAAC;MACpB;MACA,OAAOJ,OAAO,CAACK,KAAK,CAAC;IACvB,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/local-storage",
|
|
3
|
-
"version": "13.0.0-next-8.
|
|
3
|
+
"version": "13.0.0-next-8.23",
|
|
4
4
|
"description": "Verdaccio Local Storage Plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"private",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"node": ">=18"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@verdaccio/core": "8.0.0-next-8.
|
|
40
|
-
"@verdaccio/file-locking": "13.0.0-next-8.
|
|
41
|
-
"@verdaccio/utils": "8.1.0-next-8.
|
|
42
|
-
"debug": "4.4.
|
|
39
|
+
"@verdaccio/core": "8.0.0-next-8.23",
|
|
40
|
+
"@verdaccio/file-locking": "13.0.0-next-8.6",
|
|
41
|
+
"@verdaccio/utils": "8.1.0-next-8.23",
|
|
42
|
+
"debug": "4.4.3",
|
|
43
43
|
"globby": "11.1.0",
|
|
44
44
|
"lodash": "4.17.21",
|
|
45
45
|
"lowdb": "1.0.0",
|
|
46
46
|
"sanitize-filename": "1.6.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@verdaccio/logger": "8.0.0-next-8.
|
|
50
|
-
"@verdaccio/types": "13.0.0-next-8.
|
|
51
|
-
"vitest": "3.
|
|
49
|
+
"@verdaccio/logger": "8.0.0-next-8.23",
|
|
50
|
+
"@verdaccio/types": "13.0.0-next-8.8",
|
|
51
|
+
"vitest": "3.2.4"
|
|
52
52
|
},
|
|
53
53
|
"funding": {
|
|
54
54
|
"type": "opencollective",
|