@nocobase/plugin-backup-restore 2.2.16 → 2.2.18
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/externalVersion.js +5 -5
- package/dist/node_modules/@hapi/topo/package.json +1 -1
- package/dist/node_modules/@xhmikosr/decompress/index.js +3 -0
- package/dist/node_modules/@xhmikosr/decompress/package.json +1 -0
- package/dist/node_modules/archiver/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/moment/package.json +1 -1
- package/dist/node_modules/semver/package.json +1 -1
- package/dist/server/restorer.js +1 -1
- package/package.json +3 -3
- package/dist/node_modules/decompress/index.js +0 -16
- package/dist/node_modules/decompress/node_modules/make-dir/index.js +0 -85
- package/dist/node_modules/decompress/node_modules/make-dir/license +0 -9
- package/dist/node_modules/decompress/node_modules/make-dir/node_modules/pify/index.js +0 -84
- package/dist/node_modules/decompress/node_modules/make-dir/node_modules/pify/license +0 -9
- package/dist/node_modules/decompress/node_modules/make-dir/node_modules/pify/package.json +0 -51
- package/dist/node_modules/decompress/node_modules/make-dir/package.json +0 -54
- package/dist/node_modules/decompress/node_modules/pify/index.js +0 -68
- package/dist/node_modules/decompress/node_modules/pify/license +0 -21
- package/dist/node_modules/decompress/node_modules/pify/package.json +0 -48
- package/dist/node_modules/decompress/package.json +0 -1
- /package/dist/node_modules/{decompress → @xhmikosr/decompress}/license +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const processFn = (fn, opts) => function () {
|
|
4
|
-
const P = opts.promiseModule;
|
|
5
|
-
const args = new Array(arguments.length);
|
|
6
|
-
|
|
7
|
-
for (let i = 0; i < arguments.length; i++) {
|
|
8
|
-
args[i] = arguments[i];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return new P((resolve, reject) => {
|
|
12
|
-
if (opts.errorFirst) {
|
|
13
|
-
args.push(function (err, result) {
|
|
14
|
-
if (opts.multiArgs) {
|
|
15
|
-
const results = new Array(arguments.length - 1);
|
|
16
|
-
|
|
17
|
-
for (let i = 1; i < arguments.length; i++) {
|
|
18
|
-
results[i - 1] = arguments[i];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (err) {
|
|
22
|
-
results.unshift(err);
|
|
23
|
-
reject(results);
|
|
24
|
-
} else {
|
|
25
|
-
resolve(results);
|
|
26
|
-
}
|
|
27
|
-
} else if (err) {
|
|
28
|
-
reject(err);
|
|
29
|
-
} else {
|
|
30
|
-
resolve(result);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
} else {
|
|
34
|
-
args.push(function (result) {
|
|
35
|
-
if (opts.multiArgs) {
|
|
36
|
-
const results = new Array(arguments.length - 1);
|
|
37
|
-
|
|
38
|
-
for (let i = 0; i < arguments.length; i++) {
|
|
39
|
-
results[i] = arguments[i];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
resolve(results);
|
|
43
|
-
} else {
|
|
44
|
-
resolve(result);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
fn.apply(this, args);
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
module.exports = (obj, opts) => {
|
|
54
|
-
opts = Object.assign({
|
|
55
|
-
exclude: [/.+(Sync|Stream)$/],
|
|
56
|
-
errorFirst: true,
|
|
57
|
-
promiseModule: Promise
|
|
58
|
-
}, opts);
|
|
59
|
-
|
|
60
|
-
const filter = key => {
|
|
61
|
-
const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key);
|
|
62
|
-
return opts.include ? opts.include.some(match) : !opts.exclude.some(match);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
let ret;
|
|
66
|
-
if (typeof obj === 'function') {
|
|
67
|
-
ret = function () {
|
|
68
|
-
if (opts.excludeMain) {
|
|
69
|
-
return obj.apply(this, arguments);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return processFn(obj, opts).apply(this, arguments);
|
|
73
|
-
};
|
|
74
|
-
} else {
|
|
75
|
-
ret = Object.create(Object.getPrototypeOf(obj));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
for (const key in obj) { // eslint-disable-line guard-for-in
|
|
79
|
-
const x = obj[key];
|
|
80
|
-
ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return ret;
|
|
84
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pify",
|
|
3
|
-
"version": "3.0.0",
|
|
4
|
-
"description": "Promisify a callback-style function",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/pify",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=4"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && ava && npm run optimization-test",
|
|
17
|
-
"optimization-test": "node --allow-natives-syntax optimization-test.js"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"index.js"
|
|
21
|
-
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"promise",
|
|
24
|
-
"promises",
|
|
25
|
-
"promisify",
|
|
26
|
-
"all",
|
|
27
|
-
"denodify",
|
|
28
|
-
"denodeify",
|
|
29
|
-
"callback",
|
|
30
|
-
"cb",
|
|
31
|
-
"node",
|
|
32
|
-
"then",
|
|
33
|
-
"thenify",
|
|
34
|
-
"convert",
|
|
35
|
-
"transform",
|
|
36
|
-
"wrap",
|
|
37
|
-
"wrapper",
|
|
38
|
-
"bind",
|
|
39
|
-
"to",
|
|
40
|
-
"async",
|
|
41
|
-
"await",
|
|
42
|
-
"es2015",
|
|
43
|
-
"bluebird"
|
|
44
|
-
],
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"ava": "*",
|
|
47
|
-
"pinkie-promise": "^2.0.0",
|
|
48
|
-
"v8-natives": "^1.0.0",
|
|
49
|
-
"xo": "*"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "make-dir",
|
|
3
|
-
"version": "1.3.0",
|
|
4
|
-
"description": "Make a directory and its parents if needed - Think `mkdir -p`",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/make-dir",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=4"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && nyc ava"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js"
|
|
20
|
-
],
|
|
21
|
-
"keywords": [
|
|
22
|
-
"mkdir",
|
|
23
|
-
"mkdirp",
|
|
24
|
-
"make",
|
|
25
|
-
"directories",
|
|
26
|
-
"dir",
|
|
27
|
-
"dirs",
|
|
28
|
-
"folders",
|
|
29
|
-
"directory",
|
|
30
|
-
"folder",
|
|
31
|
-
"path",
|
|
32
|
-
"parent",
|
|
33
|
-
"parents",
|
|
34
|
-
"intermediate",
|
|
35
|
-
"recursively",
|
|
36
|
-
"recursive",
|
|
37
|
-
"create",
|
|
38
|
-
"fs",
|
|
39
|
-
"filesystem",
|
|
40
|
-
"file-system"
|
|
41
|
-
],
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"pify": "^3.0.0"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"ava": "*",
|
|
47
|
-
"codecov": "^3.0.0",
|
|
48
|
-
"graceful-fs": "^4.1.11",
|
|
49
|
-
"nyc": "^11.3.0",
|
|
50
|
-
"path-type": "^3.0.0",
|
|
51
|
-
"tempy": "^0.2.1",
|
|
52
|
-
"xo": "^0.20.0"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var processFn = function (fn, P, opts) {
|
|
4
|
-
return function () {
|
|
5
|
-
var that = this;
|
|
6
|
-
var args = new Array(arguments.length);
|
|
7
|
-
|
|
8
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
9
|
-
args[i] = arguments[i];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return new P(function (resolve, reject) {
|
|
13
|
-
args.push(function (err, result) {
|
|
14
|
-
if (err) {
|
|
15
|
-
reject(err);
|
|
16
|
-
} else if (opts.multiArgs) {
|
|
17
|
-
var results = new Array(arguments.length - 1);
|
|
18
|
-
|
|
19
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
20
|
-
results[i - 1] = arguments[i];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
resolve(results);
|
|
24
|
-
} else {
|
|
25
|
-
resolve(result);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
fn.apply(that, args);
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var pify = module.exports = function (obj, P, opts) {
|
|
35
|
-
if (typeof P !== 'function') {
|
|
36
|
-
opts = P;
|
|
37
|
-
P = Promise;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
opts = opts || {};
|
|
41
|
-
opts.exclude = opts.exclude || [/.+Sync$/];
|
|
42
|
-
|
|
43
|
-
var filter = function (key) {
|
|
44
|
-
var match = function (pattern) {
|
|
45
|
-
return typeof pattern === 'string' ? key === pattern : pattern.test(key);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return opts.include ? opts.include.some(match) : !opts.exclude.some(match);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
var ret = typeof obj === 'function' ? function () {
|
|
52
|
-
if (opts.excludeMain) {
|
|
53
|
-
return obj.apply(this, arguments);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return processFn(obj, P, opts).apply(this, arguments);
|
|
57
|
-
} : {};
|
|
58
|
-
|
|
59
|
-
return Object.keys(obj).reduce(function (ret, key) {
|
|
60
|
-
var x = obj[key];
|
|
61
|
-
|
|
62
|
-
ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x;
|
|
63
|
-
|
|
64
|
-
return ret;
|
|
65
|
-
}, ret);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
pify.all = pify;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pify",
|
|
3
|
-
"version": "2.3.0",
|
|
4
|
-
"description": "Promisify a callback-style function",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/pify",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=0.10.0"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && ava && npm run optimization-test",
|
|
17
|
-
"optimization-test": "node --allow-natives-syntax optimization-test.js"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"index.js"
|
|
21
|
-
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"promise",
|
|
24
|
-
"promises",
|
|
25
|
-
"promisify",
|
|
26
|
-
"denodify",
|
|
27
|
-
"denodeify",
|
|
28
|
-
"callback",
|
|
29
|
-
"cb",
|
|
30
|
-
"node",
|
|
31
|
-
"then",
|
|
32
|
-
"thenify",
|
|
33
|
-
"convert",
|
|
34
|
-
"transform",
|
|
35
|
-
"wrap",
|
|
36
|
-
"wrapper",
|
|
37
|
-
"bind",
|
|
38
|
-
"to",
|
|
39
|
-
"async",
|
|
40
|
-
"es2015"
|
|
41
|
-
],
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"ava": "*",
|
|
44
|
-
"pinkie-promise": "^1.0.0",
|
|
45
|
-
"v8-natives": "0.0.2",
|
|
46
|
-
"xo": "*"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"decompress","version":"4.2.1","description":"Extracting archives made easy","license":"MIT","repository":"kevva/decompress","author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bz2","bzip2","decompress","extract","tar","tar.bz","tar.gz","zip","unzip"],"dependencies":{"decompress-tar":"^4.0.0","decompress-tarbz2":"^4.0.0","decompress-targz":"^4.0.0","decompress-unzip":"^4.0.1","graceful-fs":"^4.1.10","make-dir":"^1.0.0","pify":"^2.3.0","strip-dirs":"^2.0.0"},"devDependencies":{"ava":"*","esm":"^3.2.25","is-jpg":"^1.0.0","path-exists":"^3.0.0","pify":"^2.3.0","rimraf":"^3.0.2","xo":"*"},"ava":{"require":["esm"]},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"_lastModified":"2026-09-21T01:33:24.137Z"}
|
|
File without changes
|