@basemaps/lambda-tiler 6.39.0 → 6.41.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/CHANGELOG.md +51 -0
- package/build/__tests__/config.data.d.ts.map +1 -1
- package/build/__tests__/config.data.js +142 -1
- package/build/__tests__/config.data.js.map +1 -1
- package/build/__tests__/wmts.capability.test.js +105 -79
- package/build/__tests__/wmts.capability.test.js.map +1 -1
- package/build/__tests__/xyz.util.d.ts.map +1 -1
- package/build/__tests__/xyz.util.js +6 -2
- package/build/__tests__/xyz.util.js.map +1 -1
- package/build/cli/render.tile.d.ts +2 -0
- package/build/cli/render.tile.d.ts.map +1 -0
- package/build/cli/render.tile.js +36 -0
- package/build/cli/render.tile.js.map +1 -0
- package/build/routes/__tests__/attribution.test.js +62 -2
- package/build/routes/__tests__/attribution.test.js.map +1 -1
- package/build/routes/__tests__/wmts.test.js +50 -8
- package/build/routes/__tests__/wmts.test.js.map +1 -1
- package/build/routes/attribution.d.ts +11 -0
- package/build/routes/attribution.d.ts.map +1 -1
- package/build/routes/attribution.js +32 -28
- package/build/routes/attribution.js.map +1 -1
- package/build/routes/tile.json.d.ts.map +1 -1
- package/build/routes/tile.json.js +2 -1
- package/build/routes/tile.json.js.map +1 -1
- package/build/routes/tile.style.json.d.ts.map +1 -1
- package/build/routes/tile.style.json.js +2 -1
- package/build/routes/tile.style.json.js.map +1 -1
- package/build/routes/tile.wmts.d.ts.map +1 -1
- package/build/routes/tile.wmts.js +12 -7
- package/build/routes/tile.wmts.js.map +1 -1
- package/build/routes/tile.xyz.raster.d.ts.map +1 -1
- package/build/routes/tile.xyz.raster.js +5 -1
- package/build/routes/tile.xyz.raster.js.map +1 -1
- package/build/util/__test__/filter.test.d.ts +2 -0
- package/build/util/__test__/filter.test.d.ts.map +1 -0
- package/build/util/__test__/filter.test.js +64 -0
- package/build/util/__test__/filter.test.js.map +1 -0
- package/build/util/config.loader.d.ts.map +1 -1
- package/build/util/config.loader.js +2 -3
- package/build/util/config.loader.js.map +1 -1
- package/build/util/filter.d.ts +15 -0
- package/build/util/filter.d.ts.map +1 -0
- package/build/util/filter.js +59 -0
- package/build/util/filter.js.map +1 -0
- package/build/util/validate.d.ts.map +1 -1
- package/build/util/validate.js +4 -3
- package/build/util/validate.js.map +1 -1
- package/build/wmts.capability.d.ts +61 -28
- package/build/wmts.capability.d.ts.map +1 -1
- package/build/wmts.capability.js +175 -99
- package/build/wmts.capability.js.map +1 -1
- package/dist/index.js +110 -82
- package/dist/node_modules/.package-lock.json +17 -17
- package/dist/node_modules/detect-libc/README.md +4 -1
- package/dist/node_modules/detect-libc/index.d.ts +3 -0
- package/dist/node_modules/detect-libc/lib/detect-libc.js +105 -4
- package/dist/node_modules/detect-libc/lib/filesystem.js +41 -0
- package/dist/node_modules/detect-libc/lib/process.js +3 -0
- package/dist/node_modules/detect-libc/package.json +7 -3
- package/dist/node_modules/minimist/.eslintrc +25 -50
- package/dist/node_modules/minimist/CHANGELOG.md +87 -1
- package/dist/node_modules/minimist/README.md +14 -10
- package/dist/node_modules/minimist/example/parse.js +2 -0
- package/dist/node_modules/minimist/index.js +256 -242
- package/dist/node_modules/minimist/package.json +73 -73
- package/dist/node_modules/minimist/test/all_bool.js +26 -24
- package/dist/node_modules/minimist/test/bool.js +146 -147
- package/dist/node_modules/minimist/test/dash.js +33 -21
- package/dist/node_modules/minimist/test/default_bool.js +26 -24
- package/dist/node_modules/minimist/test/dotted.js +13 -11
- package/dist/node_modules/minimist/test/kv_short.js +26 -10
- package/dist/node_modules/minimist/test/long.js +28 -26
- package/dist/node_modules/minimist/test/num.js +30 -28
- package/dist/node_modules/minimist/test/parse.js +169 -157
- package/dist/node_modules/minimist/test/parse_modified.js +7 -5
- package/dist/node_modules/minimist/test/proto.js +41 -37
- package/dist/node_modules/minimist/test/short.js +57 -55
- package/dist/node_modules/minimist/test/stop_early.js +10 -8
- package/dist/node_modules/minimist/test/unknown.js +83 -81
- package/dist/node_modules/minimist/test/whitespace.js +6 -4
- package/dist/node_modules/node-abi/.circleci/config.yml +2 -2
- package/dist/node_modules/node-abi/.github/CODEOWNERS +1 -0
- package/dist/node_modules/node-abi/.github/workflows/semantic.yml +26 -0
- package/dist/node_modules/node-abi/.github/workflows/update-abi.yml +5 -4
- package/dist/node_modules/node-abi/README.md +5 -3
- package/dist/node_modules/node-abi/abi_registry.json +32 -1
- package/dist/node_modules/node-abi/package.json +4 -4
- package/dist/node_modules/node-abi/scripts/update-abi-registry.js +2 -2
- package/dist/node_modules/readable-stream/README.md +1 -1
- package/dist/node_modules/readable-stream/lib/_stream_duplex.js +12 -25
- package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +2 -4
- package/dist/node_modules/readable-stream/lib/_stream_readable.js +176 -273
- package/dist/node_modules/readable-stream/lib/_stream_transform.js +26 -37
- package/dist/node_modules/readable-stream/lib/_stream_writable.js +118 -174
- package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +10 -37
- package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +20 -47
- package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +8 -17
- package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -19
- package/dist/node_modules/readable-stream/lib/internal/streams/from.js +12 -24
- package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +5 -16
- package/dist/node_modules/readable-stream/lib/internal/streams/state.js +2 -7
- package/dist/node_modules/readable-stream/package.json +1 -1
- package/dist/node_modules/semver/README.md +70 -1
- package/dist/node_modules/semver/bin/semver.js +16 -2
- package/dist/node_modules/semver/classes/comparator.js +39 -34
- package/dist/node_modules/semver/classes/range.js +45 -28
- package/dist/node_modules/semver/classes/semver.js +32 -17
- package/dist/node_modules/semver/functions/coerce.js +1 -1
- package/dist/node_modules/semver/functions/diff.js +58 -16
- package/dist/node_modules/semver/functions/inc.js +3 -2
- package/dist/node_modules/semver/functions/parse.js +5 -22
- package/dist/node_modules/semver/index.js +1 -0
- package/dist/node_modules/semver/internal/constants.js +20 -2
- package/dist/node_modules/semver/internal/parse-options.js +14 -10
- package/dist/node_modules/semver/internal/re.js +34 -4
- package/dist/node_modules/semver/package.json +8 -7
- package/dist/node_modules/semver/ranges/intersects.js +1 -1
- package/dist/node_modules/semver/ranges/subset.js +6 -3
- package/dist/package-lock.json +18 -349
- package/dist/package.json +1 -2
- package/package.json +9 -10
- package/src/__tests__/config.data.ts +142 -1
- package/src/__tests__/wmts.capability.test.ts +117 -79
- package/src/__tests__/xyz.util.ts +6 -2
- package/src/cli/render.tile.ts +41 -0
- package/src/routes/__tests__/attribution.test.ts +64 -2
- package/src/routes/__tests__/wmts.test.ts +70 -9
- package/src/routes/attribution.ts +28 -28
- package/src/routes/tile.json.ts +2 -1
- package/src/routes/tile.style.json.ts +2 -1
- package/src/routes/tile.wmts.ts +13 -6
- package/src/routes/tile.xyz.raster.ts +4 -1
- package/src/util/__test__/filter.test.ts +80 -0
- package/src/util/config.loader.ts +1 -2
- package/src/util/filter.ts +60 -0
- package/src/util/validate.ts +4 -3
- package/src/wmts.capability.ts +216 -123
- package/tsconfig.tsbuildinfo +1 -1
- package/test-dump.js +0 -6
- package/test-imagery.js +0 -3
|
@@ -1,23 +1,65 @@
|
|
|
1
|
-
const parse = require('./parse')
|
|
2
|
-
const eq = require('./eq')
|
|
1
|
+
const parse = require('./parse.js')
|
|
3
2
|
|
|
4
3
|
const diff = (version1, version2) => {
|
|
5
|
-
|
|
4
|
+
const v1 = parse(version1, null, true)
|
|
5
|
+
const v2 = parse(version2, null, true)
|
|
6
|
+
const comparison = v1.compare(v2)
|
|
7
|
+
|
|
8
|
+
if (comparison === 0) {
|
|
6
9
|
return null
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const v1Higher = comparison > 0
|
|
13
|
+
const highVersion = v1Higher ? v1 : v2
|
|
14
|
+
const lowVersion = v1Higher ? v2 : v1
|
|
15
|
+
const highHasPre = !!highVersion.prerelease.length
|
|
16
|
+
const lowHasPre = !!lowVersion.prerelease.length
|
|
17
|
+
|
|
18
|
+
if (lowHasPre && !highHasPre) {
|
|
19
|
+
// Going from prerelease -> no prerelease requires some special casing
|
|
20
|
+
|
|
21
|
+
// If the low version has only a major, then it will always be a major
|
|
22
|
+
// Some examples:
|
|
23
|
+
// 1.0.0-1 -> 1.0.0
|
|
24
|
+
// 1.0.0-1 -> 1.1.1
|
|
25
|
+
// 1.0.0-1 -> 2.0.0
|
|
26
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
27
|
+
return 'major'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Otherwise it can be determined by checking the high version
|
|
31
|
+
|
|
32
|
+
if (highVersion.patch) {
|
|
33
|
+
// anything higher than a patch bump would result in the wrong version
|
|
34
|
+
return 'patch'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (highVersion.minor) {
|
|
38
|
+
// anything higher than a minor bump would result in the wrong version
|
|
39
|
+
return 'minor'
|
|
19
40
|
}
|
|
20
|
-
|
|
41
|
+
|
|
42
|
+
// bumping major/minor/patch all have same result
|
|
43
|
+
return 'major'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// add the `pre` prefix if we are going to a prerelease version
|
|
47
|
+
const prefix = highHasPre ? 'pre' : ''
|
|
48
|
+
|
|
49
|
+
if (v1.major !== v2.major) {
|
|
50
|
+
return prefix + 'major'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (v1.minor !== v2.minor) {
|
|
54
|
+
return prefix + 'minor'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (v1.patch !== v2.patch) {
|
|
58
|
+
return prefix + 'patch'
|
|
21
59
|
}
|
|
60
|
+
|
|
61
|
+
// high and low are preleases
|
|
62
|
+
return 'prerelease'
|
|
22
63
|
}
|
|
64
|
+
|
|
23
65
|
module.exports = diff
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const SemVer = require('../classes/semver')
|
|
2
2
|
|
|
3
|
-
const inc = (version, release, options, identifier) => {
|
|
3
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
4
4
|
if (typeof (options) === 'string') {
|
|
5
|
+
identifierBase = identifier
|
|
5
6
|
identifier = options
|
|
6
7
|
options = undefined
|
|
7
8
|
}
|
|
@@ -10,7 +11,7 @@ const inc = (version, release, options, identifier) => {
|
|
|
10
11
|
return new SemVer(
|
|
11
12
|
version instanceof SemVer ? version.version : version,
|
|
12
13
|
options
|
|
13
|
-
).inc(release, identifier).version
|
|
14
|
+
).inc(release, identifier, identifierBase).version
|
|
14
15
|
} catch (er) {
|
|
15
16
|
return null
|
|
16
17
|
}
|
|
@@ -1,32 +1,15 @@
|
|
|
1
|
-
const { MAX_LENGTH } = require('../internal/constants')
|
|
2
|
-
const { re, t } = require('../internal/re')
|
|
3
1
|
const SemVer = require('../classes/semver')
|
|
4
|
-
|
|
5
|
-
const parseOptions = require('../internal/parse-options')
|
|
6
|
-
const parse = (version, options) => {
|
|
7
|
-
options = parseOptions(options)
|
|
8
|
-
|
|
2
|
+
const parse = (version, options, throwErrors = false) => {
|
|
9
3
|
if (version instanceof SemVer) {
|
|
10
4
|
return version
|
|
11
5
|
}
|
|
12
|
-
|
|
13
|
-
if (typeof version !== 'string') {
|
|
14
|
-
return null
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (version.length > MAX_LENGTH) {
|
|
18
|
-
return null
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const r = options.loose ? re[t.LOOSE] : re[t.FULL]
|
|
22
|
-
if (!r.test(version)) {
|
|
23
|
-
return null
|
|
24
|
-
}
|
|
25
|
-
|
|
26
6
|
try {
|
|
27
7
|
return new SemVer(version, options)
|
|
28
8
|
} catch (er) {
|
|
29
|
-
|
|
9
|
+
if (!throwErrors) {
|
|
10
|
+
return null
|
|
11
|
+
}
|
|
12
|
+
throw er
|
|
30
13
|
}
|
|
31
14
|
}
|
|
32
15
|
|
|
@@ -83,6 +83,7 @@ module.exports = {
|
|
|
83
83
|
src: internalRe.src,
|
|
84
84
|
tokens: internalRe.t,
|
|
85
85
|
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
86
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
86
87
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
87
88
|
rcompareIdentifiers: identifiers.rcompareIdentifiers,
|
|
88
89
|
}
|
|
@@ -9,9 +9,27 @@ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
|
|
|
9
9
|
// Max safe segment length for coercion.
|
|
10
10
|
const MAX_SAFE_COMPONENT_LENGTH = 16
|
|
11
11
|
|
|
12
|
+
// Max safe length for a build identifier. The max length minus 6 characters for
|
|
13
|
+
// the shortest version with a build 0.0.0+BUILD.
|
|
14
|
+
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6
|
|
15
|
+
|
|
16
|
+
const RELEASE_TYPES = [
|
|
17
|
+
'major',
|
|
18
|
+
'premajor',
|
|
19
|
+
'minor',
|
|
20
|
+
'preminor',
|
|
21
|
+
'patch',
|
|
22
|
+
'prepatch',
|
|
23
|
+
'prerelease',
|
|
24
|
+
]
|
|
25
|
+
|
|
12
26
|
module.exports = {
|
|
13
|
-
SEMVER_SPEC_VERSION,
|
|
14
27
|
MAX_LENGTH,
|
|
15
|
-
MAX_SAFE_INTEGER,
|
|
16
28
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
29
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
30
|
+
MAX_SAFE_INTEGER,
|
|
31
|
+
RELEASE_TYPES,
|
|
32
|
+
SEMVER_SPEC_VERSION,
|
|
33
|
+
FLAG_INCLUDE_PRERELEASE: 0b001,
|
|
34
|
+
FLAG_LOOSE: 0b010,
|
|
17
35
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
// parse out just the options we care about
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const parseOptions = options =>
|
|
5
|
-
!options
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
// parse out just the options we care about
|
|
2
|
+
const looseOption = Object.freeze({ loose: true })
|
|
3
|
+
const emptyOpts = Object.freeze({ })
|
|
4
|
+
const parseOptions = options => {
|
|
5
|
+
if (!options) {
|
|
6
|
+
return emptyOpts
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (typeof options !== 'object') {
|
|
10
|
+
return looseOption
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return options
|
|
14
|
+
}
|
|
11
15
|
module.exports = parseOptions
|
|
@@ -1,19 +1,49 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const {
|
|
2
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
3
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
4
|
+
MAX_LENGTH,
|
|
5
|
+
} = require('./constants')
|
|
2
6
|
const debug = require('./debug')
|
|
3
7
|
exports = module.exports = {}
|
|
4
8
|
|
|
5
9
|
// The actual regexps go on exports.re
|
|
6
10
|
const re = exports.re = []
|
|
11
|
+
const safeRe = exports.safeRe = []
|
|
7
12
|
const src = exports.src = []
|
|
8
13
|
const t = exports.t = {}
|
|
9
14
|
let R = 0
|
|
10
15
|
|
|
16
|
+
const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
|
|
17
|
+
|
|
18
|
+
// Replace some greedy regex tokens to prevent regex dos issues. These regex are
|
|
19
|
+
// used internally via the safeRe object since all inputs in this library get
|
|
20
|
+
// normalized first to trim and collapse all extra whitespace. The original
|
|
21
|
+
// regexes are exported for userland consumption and lower level usage. A
|
|
22
|
+
// future breaking change could export the safer regex only with a note that
|
|
23
|
+
// all input should have extra whitespace removed.
|
|
24
|
+
const safeRegexReplacements = [
|
|
25
|
+
['\\s', 1],
|
|
26
|
+
['\\d', MAX_LENGTH],
|
|
27
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
const makeSafeRegex = (value) => {
|
|
31
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
32
|
+
value = value
|
|
33
|
+
.split(`${token}*`).join(`${token}{0,${max}}`)
|
|
34
|
+
.split(`${token}+`).join(`${token}{1,${max}}`)
|
|
35
|
+
}
|
|
36
|
+
return value
|
|
37
|
+
}
|
|
38
|
+
|
|
11
39
|
const createToken = (name, value, isGlobal) => {
|
|
40
|
+
const safe = makeSafeRegex(value)
|
|
12
41
|
const index = R++
|
|
13
42
|
debug(name, index, value)
|
|
14
43
|
t[name] = index
|
|
15
44
|
src[index] = value
|
|
16
45
|
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
|
|
46
|
+
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
|
|
17
47
|
}
|
|
18
48
|
|
|
19
49
|
// The following Regular Expressions can be used for tokenizing,
|
|
@@ -23,13 +53,13 @@ const createToken = (name, value, isGlobal) => {
|
|
|
23
53
|
// A single `0`, or a non-zero digit followed by zero or more digits.
|
|
24
54
|
|
|
25
55
|
createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*')
|
|
26
|
-
createToken('NUMERICIDENTIFIERLOOSE', '
|
|
56
|
+
createToken('NUMERICIDENTIFIERLOOSE', '\\d+')
|
|
27
57
|
|
|
28
58
|
// ## Non-numeric Identifier
|
|
29
59
|
// Zero or more digits, followed by a letter or hyphen, and then zero or
|
|
30
60
|
// more letters, digits, or hyphens.
|
|
31
61
|
|
|
32
|
-
createToken('NONNUMERICIDENTIFIER',
|
|
62
|
+
createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)
|
|
33
63
|
|
|
34
64
|
// ## Main Version
|
|
35
65
|
// Three dot-separated numeric identifiers.
|
|
@@ -64,7 +94,7 @@ createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
|
|
|
64
94
|
// ## Build Metadata Identifier
|
|
65
95
|
// Any combination of digits, letters, or hyphens.
|
|
66
96
|
|
|
67
|
-
createToken('BUILDIDENTIFIER',
|
|
97
|
+
createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)
|
|
68
98
|
|
|
69
99
|
// ## Build Metadata
|
|
70
100
|
// Plus sign, followed by one or more period-separated build metadata
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semver",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.4",
|
|
4
4
|
"description": "The semantic version parser used by npm.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"template-oss-apply": "template-oss-apply --force"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@npmcli/eslint-config": "^
|
|
17
|
-
"@npmcli/template-oss": "4.
|
|
16
|
+
"@npmcli/eslint-config": "^4.0.0",
|
|
17
|
+
"@npmcli/template-oss": "4.17.0",
|
|
18
18
|
"tap": "^16.0.0"
|
|
19
19
|
},
|
|
20
20
|
"license": "ISC",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"range.bnf"
|
|
38
38
|
],
|
|
39
39
|
"tap": {
|
|
40
|
-
"
|
|
40
|
+
"timeout": 30,
|
|
41
41
|
"coverage-map": "map.js",
|
|
42
42
|
"nyc-arg": [
|
|
43
43
|
"--exclude",
|
|
@@ -53,9 +53,8 @@
|
|
|
53
53
|
"author": "GitHub Inc.",
|
|
54
54
|
"templateOSS": {
|
|
55
55
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
56
|
-
"version": "4.
|
|
56
|
+
"version": "4.17.0",
|
|
57
57
|
"engines": ">=10",
|
|
58
|
-
"content": "./scripts",
|
|
59
58
|
"ciVersions": [
|
|
60
59
|
"10.0.0",
|
|
61
60
|
"10.x",
|
|
@@ -64,6 +63,7 @@
|
|
|
64
63
|
"16.x",
|
|
65
64
|
"18.x"
|
|
66
65
|
],
|
|
66
|
+
"npmSpec": "8",
|
|
67
67
|
"distPaths": [
|
|
68
68
|
"classes/",
|
|
69
69
|
"functions/",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"/index.js",
|
|
82
82
|
"/preload.js",
|
|
83
83
|
"/range.bnf"
|
|
84
|
-
]
|
|
84
|
+
],
|
|
85
|
+
"publish": "true"
|
|
85
86
|
}
|
|
86
87
|
}
|
|
@@ -68,6 +68,9 @@ const subset = (sub, dom, options = {}) => {
|
|
|
68
68
|
return true
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]
|
|
72
|
+
const minimumVersion = [new Comparator('>=0.0.0')]
|
|
73
|
+
|
|
71
74
|
const simpleSubset = (sub, dom, options) => {
|
|
72
75
|
if (sub === dom) {
|
|
73
76
|
return true
|
|
@@ -77,9 +80,9 @@ const simpleSubset = (sub, dom, options) => {
|
|
|
77
80
|
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
78
81
|
return true
|
|
79
82
|
} else if (options.includePrerelease) {
|
|
80
|
-
sub =
|
|
83
|
+
sub = minimumVersionWithPreRelease
|
|
81
84
|
} else {
|
|
82
|
-
sub =
|
|
85
|
+
sub = minimumVersion
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
|
|
@@ -87,7 +90,7 @@ const simpleSubset = (sub, dom, options) => {
|
|
|
87
90
|
if (options.includePrerelease) {
|
|
88
91
|
return true
|
|
89
92
|
} else {
|
|
90
|
-
dom =
|
|
93
|
+
dom = minimumVersion
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
|