@gradientedge/cdk-utils 8.17.0 → 8.18.0
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/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +2 -2
- package/app/api-destined-function/layers/nodejs/package.json +1 -1
- package/app/api-destined-function/node_modules/.yarn-integrity +52 -11
- package/app/api-destined-function/node_modules/mkdirp/LICENSE +1 -1
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/package.json +90 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts +2 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js +73 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts +3 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.js +35 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts +74 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.js +7 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts +30 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.js +49 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts +5 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.js +79 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts +5 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.js +50 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts +41 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.js +38 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.js +28 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts +5 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.js +17 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts +3 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.js +30 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts +30 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.js +39 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts +5 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.js +75 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts +5 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.js +46 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts +41 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.js +34 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/package.json +3 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.js +24 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts +5 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.js +14 -0
- package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.js.map +1 -0
- package/app/api-destined-function/node_modules/mkdirp/package.json +66 -20
- package/app/api-destined-function/node_modules/mkdirp/readme.markdown +104 -89
- package/app/api-destined-function/package.json +1 -1
- package/package.json +10 -10
- package/app/api-destined-function/node_modules/mkdirp/bin/cmd.js +0 -68
- package/app/api-destined-function/node_modules/mkdirp/index.js +0 -31
- package/app/api-destined-function/node_modules/mkdirp/lib/find-made.js +0 -29
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- package/app/api-destined-function/node_modules/mkdirp/lib/opts-arg.js +0 -23
- package/app/api-destined-function/node_modules/mkdirp/lib/path-arg.js +0 -29
- package/app/api-destined-function/node_modules/mkdirp/lib/use-native.js +0 -10
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const {dirname} = require('path')
|
|
2
|
-
const {findMade, findMadeSync} = require('./find-made.js')
|
|
3
|
-
const {mkdirpManual, mkdirpManualSync} = require('./mkdirp-manual.js')
|
|
4
|
-
|
|
5
|
-
const mkdirpNative = (path, opts) => {
|
|
6
|
-
opts.recursive = true
|
|
7
|
-
const parent = dirname(path)
|
|
8
|
-
if (parent === path)
|
|
9
|
-
return opts.mkdirAsync(path, opts)
|
|
10
|
-
|
|
11
|
-
return findMade(opts, path).then(made =>
|
|
12
|
-
opts.mkdirAsync(path, opts).then(() => made)
|
|
13
|
-
.catch(er => {
|
|
14
|
-
if (er.code === 'ENOENT')
|
|
15
|
-
return mkdirpManual(path, opts)
|
|
16
|
-
else
|
|
17
|
-
throw er
|
|
18
|
-
}))
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const mkdirpNativeSync = (path, opts) => {
|
|
22
|
-
opts.recursive = true
|
|
23
|
-
const parent = dirname(path)
|
|
24
|
-
if (parent === path)
|
|
25
|
-
return opts.mkdirSync(path, opts)
|
|
26
|
-
|
|
27
|
-
const made = findMadeSync(opts, path)
|
|
28
|
-
try {
|
|
29
|
-
opts.mkdirSync(path, opts)
|
|
30
|
-
return made
|
|
31
|
-
} catch (er) {
|
|
32
|
-
if (er.code === 'ENOENT')
|
|
33
|
-
return mkdirpManualSync(path, opts)
|
|
34
|
-
else
|
|
35
|
-
throw er
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
module.exports = {mkdirpNative, mkdirpNativeSync}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const { promisify } = require('util')
|
|
2
|
-
const fs = require('fs')
|
|
3
|
-
const optsArg = opts => {
|
|
4
|
-
if (!opts)
|
|
5
|
-
opts = { mode: 0o777, fs }
|
|
6
|
-
else if (typeof opts === 'object')
|
|
7
|
-
opts = { mode: 0o777, fs, ...opts }
|
|
8
|
-
else if (typeof opts === 'number')
|
|
9
|
-
opts = { mode: opts, fs }
|
|
10
|
-
else if (typeof opts === 'string')
|
|
11
|
-
opts = { mode: parseInt(opts, 8), fs }
|
|
12
|
-
else
|
|
13
|
-
throw new TypeError('invalid options argument')
|
|
14
|
-
|
|
15
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs.mkdir
|
|
16
|
-
opts.mkdirAsync = promisify(opts.mkdir)
|
|
17
|
-
opts.stat = opts.stat || opts.fs.stat || fs.stat
|
|
18
|
-
opts.statAsync = promisify(opts.stat)
|
|
19
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs.statSync
|
|
20
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs.mkdirSync
|
|
21
|
-
return opts
|
|
22
|
-
}
|
|
23
|
-
module.exports = optsArg
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform
|
|
2
|
-
const { resolve, parse } = require('path')
|
|
3
|
-
const pathArg = path => {
|
|
4
|
-
if (/\0/.test(path)) {
|
|
5
|
-
// simulate same failure that node raises
|
|
6
|
-
throw Object.assign(
|
|
7
|
-
new TypeError('path must be a string without null bytes'),
|
|
8
|
-
{
|
|
9
|
-
path,
|
|
10
|
-
code: 'ERR_INVALID_ARG_VALUE',
|
|
11
|
-
}
|
|
12
|
-
)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
path = resolve(path)
|
|
16
|
-
if (platform === 'win32') {
|
|
17
|
-
const badWinChars = /[*|"<>?:]/
|
|
18
|
-
const {root} = parse(path)
|
|
19
|
-
if (badWinChars.test(path.substr(root.length))) {
|
|
20
|
-
throw Object.assign(new Error('Illegal characters in path.'), {
|
|
21
|
-
path,
|
|
22
|
-
code: 'EINVAL',
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return path
|
|
28
|
-
}
|
|
29
|
-
module.exports = pathArg
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const fs = require('fs')
|
|
2
|
-
|
|
3
|
-
const version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version
|
|
4
|
-
const versArr = version.replace(/^v/, '').split('.')
|
|
5
|
-
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12
|
|
6
|
-
|
|
7
|
-
const useNative = !hasNative ? () => false : opts => opts.mkdir === fs.mkdir
|
|
8
|
-
const useNativeSync = !hasNative ? () => false : opts => opts.mkdirSync === fs.mkdirSync
|
|
9
|
-
|
|
10
|
-
module.exports = {useNative, useNativeSync}
|