@basemaps/lambda-tiler 8.0.0 → 8.1.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 +11 -0
- package/build/__tests__/index.test.js +24 -2
- package/build/__tests__/index.test.js.map +1 -1
- package/build/routes/version.d.ts +2 -2
- package/build/routes/version.js +17 -1
- package/build/routes/version.js.map +1 -1
- package/dist/index.js +31 -7
- package/dist/node_modules/.package-lock.json +4 -4
- package/dist/node_modules/semver/bin/semver.js +2 -0
- package/dist/node_modules/semver/classes/comparator.js +2 -0
- package/dist/node_modules/semver/classes/index.js +2 -0
- package/dist/node_modules/semver/classes/range.js +2 -0
- package/dist/node_modules/semver/classes/semver.js +4 -3
- package/dist/node_modules/semver/functions/clean.js +2 -0
- package/dist/node_modules/semver/functions/cmp.js +2 -0
- package/dist/node_modules/semver/functions/coerce.js +2 -0
- package/dist/node_modules/semver/functions/compare-build.js +2 -0
- package/dist/node_modules/semver/functions/compare-loose.js +2 -0
- package/dist/node_modules/semver/functions/compare.js +2 -0
- package/dist/node_modules/semver/functions/diff.js +2 -0
- package/dist/node_modules/semver/functions/eq.js +2 -0
- package/dist/node_modules/semver/functions/gt.js +2 -0
- package/dist/node_modules/semver/functions/gte.js +2 -0
- package/dist/node_modules/semver/functions/inc.js +2 -0
- package/dist/node_modules/semver/functions/lt.js +2 -0
- package/dist/node_modules/semver/functions/lte.js +2 -0
- package/dist/node_modules/semver/functions/major.js +2 -0
- package/dist/node_modules/semver/functions/minor.js +2 -0
- package/dist/node_modules/semver/functions/neq.js +2 -0
- package/dist/node_modules/semver/functions/parse.js +2 -0
- package/dist/node_modules/semver/functions/patch.js +2 -0
- package/dist/node_modules/semver/functions/prerelease.js +2 -0
- package/dist/node_modules/semver/functions/rcompare.js +2 -0
- package/dist/node_modules/semver/functions/rsort.js +2 -0
- package/dist/node_modules/semver/functions/satisfies.js +2 -0
- package/dist/node_modules/semver/functions/sort.js +2 -0
- package/dist/node_modules/semver/functions/valid.js +2 -0
- package/dist/node_modules/semver/index.js +2 -0
- package/dist/node_modules/semver/internal/constants.js +2 -0
- package/dist/node_modules/semver/internal/debug.js +2 -0
- package/dist/node_modules/semver/internal/identifiers.js +2 -0
- package/dist/node_modules/semver/internal/lrucache.js +2 -0
- package/dist/node_modules/semver/internal/parse-options.js +2 -0
- package/dist/node_modules/semver/internal/re.js +8 -4
- package/dist/node_modules/semver/package.json +3 -3
- package/dist/node_modules/semver/preload.js +2 -0
- package/dist/node_modules/semver/ranges/gtr.js +2 -0
- package/dist/node_modules/semver/ranges/intersects.js +2 -0
- package/dist/node_modules/semver/ranges/ltr.js +2 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +2 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +2 -0
- package/dist/node_modules/semver/ranges/min-version.js +2 -0
- package/dist/node_modules/semver/ranges/outside.js +2 -0
- package/dist/node_modules/semver/ranges/simplify.js +2 -0
- package/dist/node_modules/semver/ranges/subset.js +2 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +2 -0
- package/dist/node_modules/semver/ranges/valid.js +2 -0
- package/dist/package-lock.json +5 -5
- package/dist/package.json +1 -1
- package/package.json +6 -6
- package/src/__tests__/index.test.ts +30 -2
- package/src/routes/version.ts +22 -2
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.1.0](https://github.com/linz/basemaps/compare/v8.0.0...v8.1.0) (2025-05-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **lambda-tiler:** expose configuration id and hash if present ([#3446](https://github.com/linz/basemaps/issues/3446)) ([43803b4](https://github.com/linz/basemaps/commit/43803b48a404591417453331ac9e3aa16c85248f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [8.0.0](https://github.com/linz/basemaps/compare/v7.17.0...v8.0.0) (2025-05-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @basemaps/lambda-tiler
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import assert from 'node:assert';
|
|
2
2
|
import { afterEach, describe, it } from 'node:test';
|
|
3
|
+
import { ConfigProviderMemory } from '@basemaps/config';
|
|
3
4
|
import { handler } from '../index.js';
|
|
5
|
+
import { ConfigLoader } from '../util/config.loader.js';
|
|
4
6
|
import { mockRequest } from './xyz.util.js';
|
|
5
7
|
describe('LambdaXyz index', () => {
|
|
6
8
|
it('should export handler', async () => {
|
|
@@ -13,7 +15,9 @@ describe('LambdaXyz index', () => {
|
|
|
13
15
|
delete process.env['GIT_HASH'];
|
|
14
16
|
delete process.env['BUILD_ID'];
|
|
15
17
|
});
|
|
16
|
-
it('should return version', async () => {
|
|
18
|
+
it('should return version', async (t) => {
|
|
19
|
+
const config = new ConfigProviderMemory();
|
|
20
|
+
t.mock.method(ConfigLoader, 'getDefaultConfig', () => config);
|
|
17
21
|
process.env['GIT_VERSION'] = '1.2.3';
|
|
18
22
|
process.env['GIT_HASH'] = 'abc456';
|
|
19
23
|
const response = await handler.router.handle(mockRequest('/v1/version'));
|
|
@@ -25,7 +29,9 @@ describe('LambdaXyz index', () => {
|
|
|
25
29
|
hash: 'abc456',
|
|
26
30
|
});
|
|
27
31
|
});
|
|
28
|
-
it('should include buildId if exists', async () => {
|
|
32
|
+
it('should include buildId if exists', async (t) => {
|
|
33
|
+
const config = new ConfigProviderMemory();
|
|
34
|
+
t.mock.method(ConfigLoader, 'getDefaultConfig', () => config);
|
|
29
35
|
process.env['GIT_VERSION'] = '1.2.3';
|
|
30
36
|
process.env['BUILD_ID'] = '1658821493-3';
|
|
31
37
|
const response = await handler.router.handle(mockRequest('/v1/version'));
|
|
@@ -37,6 +43,22 @@ describe('LambdaXyz index', () => {
|
|
|
37
43
|
buildId: '1658821493-3',
|
|
38
44
|
});
|
|
39
45
|
});
|
|
46
|
+
it('should return config information if present', async (t) => {
|
|
47
|
+
const config = new ConfigProviderMemory();
|
|
48
|
+
t.mock.method(ConfigLoader, 'getDefaultConfig', () => config);
|
|
49
|
+
config.id = 'config-id';
|
|
50
|
+
const response = await handler.router.handle(mockRequest('/v1/version'));
|
|
51
|
+
assert.deepEqual(JSON.parse(response.body), {
|
|
52
|
+
version: 'dev',
|
|
53
|
+
config: { id: 'config-id' },
|
|
54
|
+
});
|
|
55
|
+
config.hash = 'config-hash';
|
|
56
|
+
const responseHash = await handler.router.handle(mockRequest('/v1/version'));
|
|
57
|
+
assert.deepEqual(JSON.parse(responseHash.body), {
|
|
58
|
+
version: 'dev',
|
|
59
|
+
config: { id: 'config-id', hash: 'config-hash' },
|
|
60
|
+
});
|
|
61
|
+
});
|
|
40
62
|
});
|
|
41
63
|
it('should respond to /ping', async () => {
|
|
42
64
|
const res = await handler.router.handle(mockRequest('/v1/ping'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,uBAAuB,EAAE,KAAK,IAAI,EAAE;QACrC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;QACxC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC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,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;gBAC9C,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE;aACjD,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC9B,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;QAC1C,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LambdaHttpResponse } from '@linzjs/lambda';
|
|
2
|
-
export declare function versionGet(): Promise<LambdaHttpResponse>;
|
|
1
|
+
import { LambdaHttpRequest, LambdaHttpResponse } from '@linzjs/lambda';
|
|
2
|
+
export declare function versionGet(req: LambdaHttpRequest): Promise<LambdaHttpResponse>;
|
package/build/routes/version.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import { ConfigProviderMemory } from '@basemaps/config';
|
|
1
2
|
import { HttpHeader, LambdaHttpResponse } from '@linzjs/lambda';
|
|
2
|
-
|
|
3
|
+
import { ConfigLoader } from '../util/config.loader.js';
|
|
4
|
+
function getConfigHash(cfg) {
|
|
5
|
+
if (!ConfigProviderMemory.is(cfg))
|
|
6
|
+
return undefined;
|
|
7
|
+
if (cfg.id == null)
|
|
8
|
+
return undefined;
|
|
9
|
+
return { id: cfg.id, hash: cfg.hash };
|
|
10
|
+
}
|
|
11
|
+
export async function versionGet(req) {
|
|
12
|
+
const config = await ConfigLoader.load(req);
|
|
3
13
|
const response = new LambdaHttpResponse(200, 'ok');
|
|
4
14
|
response.header(HttpHeader.CacheControl, 'no-store');
|
|
5
15
|
response.json({
|
|
@@ -14,10 +24,16 @@ export function versionGet() {
|
|
|
14
24
|
*/
|
|
15
25
|
hash: process.env['GIT_HASH'],
|
|
16
26
|
/**
|
|
27
|
+
*
|
|
17
28
|
* The exact build that this release was run from
|
|
18
29
|
* @example "1658821493-3"
|
|
19
30
|
*/
|
|
20
31
|
buildId: process.env['BUILD_ID'],
|
|
32
|
+
/**
|
|
33
|
+
* Configuration id that was used to power this config
|
|
34
|
+
* @example { "id": "cb_01JTQ7ZK49F8EY4N5DRJ3XFT73", hash: "HcByZ8WS2zpaTxFJp6wSKg2eUpwahLqAGEQdcDxKxqp6" }
|
|
35
|
+
*/
|
|
36
|
+
config: getConfigHash(config),
|
|
21
37
|
});
|
|
22
38
|
return Promise.resolve(response);
|
|
23
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/routes/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/routes/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAqB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,SAAS,aAAa,CAAC,GAA2B;IAChD,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IACpD,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI;QAAE,OAAO,SAAS,CAAC;IACrC,OAAO,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;AACxC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,GAAsB;IACrD,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAI,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACnD,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACrD,QAAQ,CAAC,IAAI,CAAC;QACZ;;;WAGG;QACH,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,KAAK;QAE5C;;;WAGG;QACH,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QAE7B;;;;WAIG;QACH,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QAEhC;;;WAGG;QACH,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;KAC9B,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -80032,6 +80032,12 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
80032
80032
|
writable: true,
|
|
80033
80033
|
value: void 0
|
|
80034
80034
|
});
|
|
80035
|
+
Object.defineProperty(this, "hash", {
|
|
80036
|
+
enumerable: true,
|
|
80037
|
+
configurable: true,
|
|
80038
|
+
writable: true,
|
|
80039
|
+
value: void 0
|
|
80040
|
+
});
|
|
80035
80041
|
Object.defineProperty(this, "Imagery", {
|
|
80036
80042
|
enumerable: true,
|
|
80037
80043
|
configurable: true,
|
|
@@ -80075,6 +80081,9 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
80075
80081
|
value: []
|
|
80076
80082
|
});
|
|
80077
80083
|
}
|
|
80084
|
+
static is(cfg) {
|
|
80085
|
+
return cfg.type === "memory";
|
|
80086
|
+
}
|
|
80078
80087
|
put(obj) {
|
|
80079
80088
|
this.objects.set(obj.id, obj);
|
|
80080
80089
|
}
|
|
@@ -80219,6 +80228,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
80219
80228
|
obj.updatedAt = updatedAt;
|
|
80220
80229
|
mem.assets = cfg.assets;
|
|
80221
80230
|
mem.id = cfg.id;
|
|
80231
|
+
mem.hash = cfg.hash;
|
|
80222
80232
|
return mem;
|
|
80223
80233
|
}
|
|
80224
80234
|
};
|
|
@@ -86983,9 +86993,9 @@ var Router = class {
|
|
|
86983
86993
|
};
|
|
86984
86994
|
|
|
86985
86995
|
// ../../node_modules/@linzjs/lambda/build/src/function.js
|
|
86986
|
-
var version2 = "
|
|
86987
|
-
var hash = "
|
|
86988
|
-
var buildId = "
|
|
86996
|
+
var version2 = "v8.0.0-4-g14a4364d";
|
|
86997
|
+
var hash = "14a4364d39e226b7ed0396fee9c3adc534d1142b";
|
|
86998
|
+
var buildId = "15100600846-1";
|
|
86989
86999
|
var versionInfo = { version: version2, hash, buildId };
|
|
86990
87000
|
async function runFunction(req, fn) {
|
|
86991
87001
|
if (!req.timer.timers.has("lambda"))
|
|
@@ -91308,7 +91318,15 @@ async function tileXyzGet(req) {
|
|
|
91308
91318
|
}
|
|
91309
91319
|
|
|
91310
91320
|
// src/routes/version.ts
|
|
91311
|
-
function
|
|
91321
|
+
function getConfigHash(cfg) {
|
|
91322
|
+
if (!ConfigProviderMemory.is(cfg))
|
|
91323
|
+
return void 0;
|
|
91324
|
+
if (cfg.id == null)
|
|
91325
|
+
return void 0;
|
|
91326
|
+
return { id: cfg.id, hash: cfg.hash };
|
|
91327
|
+
}
|
|
91328
|
+
async function versionGet(req) {
|
|
91329
|
+
const config = await ConfigLoader.load(req);
|
|
91312
91330
|
const response = new LambdaHttpResponse(200, "ok");
|
|
91313
91331
|
response.header(HttpHeader.CacheControl, "no-store");
|
|
91314
91332
|
response.json({
|
|
@@ -91316,17 +91334,23 @@ function versionGet() {
|
|
|
91316
91334
|
* last git version tag
|
|
91317
91335
|
* @example "v6.42.1"
|
|
91318
91336
|
*/
|
|
91319
|
-
version: "
|
|
91337
|
+
version: "v8.0.0-4-g14a4364d",
|
|
91320
91338
|
/**
|
|
91321
91339
|
* Full git commit hash
|
|
91322
91340
|
* @example "e4231b1ee62c276c8657c56677ced02681dfe5d6"
|
|
91323
91341
|
*/
|
|
91324
|
-
hash: "
|
|
91342
|
+
hash: "14a4364d39e226b7ed0396fee9c3adc534d1142b",
|
|
91325
91343
|
/**
|
|
91344
|
+
*
|
|
91326
91345
|
* The exact build that this release was run from
|
|
91327
91346
|
* @example "1658821493-3"
|
|
91328
91347
|
*/
|
|
91329
|
-
buildId: "
|
|
91348
|
+
buildId: "15100600846-1",
|
|
91349
|
+
/**
|
|
91350
|
+
* Configuration id that was used to power this config
|
|
91351
|
+
* @example { "id": "cb_01JTQ7ZK49F8EY4N5DRJ3XFT73", hash: "HcByZ8WS2zpaTxFJp6wSKg2eUpwahLqAGEQdcDxKxqp6" }
|
|
91352
|
+
*/
|
|
91353
|
+
config: getConfigHash(config)
|
|
91330
91354
|
});
|
|
91331
91355
|
return Promise.resolve(response);
|
|
91332
91356
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basemaps/lambda-tiler",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
"license": "Apache-2.0"
|
|
116
116
|
},
|
|
117
117
|
"node_modules/semver": {
|
|
118
|
-
"version": "7.7.
|
|
119
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.
|
|
120
|
-
"integrity": "sha512-
|
|
118
|
+
"version": "7.7.2",
|
|
119
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
|
|
120
|
+
"integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
|
|
121
121
|
"license": "ISC",
|
|
122
122
|
"bin": {
|
|
123
123
|
"semver": "bin/semver.js"
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
1
3
|
const debug = require('../internal/debug')
|
|
2
4
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
|
|
3
|
-
const { safeRe: re,
|
|
5
|
+
const { safeRe: re, t } = require('../internal/re')
|
|
4
6
|
|
|
5
7
|
const parseOptions = require('../internal/parse-options')
|
|
6
8
|
const { compareIdentifiers } = require('../internal/identifiers')
|
|
@@ -182,8 +184,7 @@ class SemVer {
|
|
|
182
184
|
}
|
|
183
185
|
// Avoid an invalid semver results
|
|
184
186
|
if (identifier) {
|
|
185
|
-
const
|
|
186
|
-
const match = `-${identifier}`.match(r)
|
|
187
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
|
|
187
188
|
if (!match || match[1] !== identifier) {
|
|
188
189
|
throw new Error(`invalid identifier: ${identifier}`)
|
|
189
190
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
1
3
|
const {
|
|
2
4
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
3
5
|
MAX_SAFE_BUILD_LENGTH,
|
|
@@ -76,12 +78,14 @@ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
|
|
|
76
78
|
|
|
77
79
|
// ## Pre-release Version Identifier
|
|
78
80
|
// A numeric identifier, or a non-numeric identifier.
|
|
81
|
+
// Non-numberic identifiers include numberic identifiers but can be longer.
|
|
82
|
+
// Therefore non-numberic identifiers must go first.
|
|
79
83
|
|
|
80
|
-
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.
|
|
81
|
-
}|${src[t.
|
|
84
|
+
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
|
|
85
|
+
}|${src[t.NUMERICIDENTIFIER]})`)
|
|
82
86
|
|
|
83
|
-
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.
|
|
84
|
-
}|${src[t.
|
|
87
|
+
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
|
|
88
|
+
}|${src[t.NUMERICIDENTIFIERLOOSE]})`)
|
|
85
89
|
|
|
86
90
|
// ## Pre-release Version
|
|
87
91
|
// Hyphen, followed by one or more dot-separated pre-release version
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semver",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.2",
|
|
4
4
|
"description": "The semantic version parser used by npm.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@npmcli/eslint-config": "^5.0.0",
|
|
18
|
-
"@npmcli/template-oss": "4.
|
|
18
|
+
"@npmcli/template-oss": "4.24.3",
|
|
19
19
|
"benchmark": "^2.1.4",
|
|
20
20
|
"tap": "^16.0.0"
|
|
21
21
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"author": "GitHub Inc.",
|
|
53
53
|
"templateOSS": {
|
|
54
54
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
55
|
-
"version": "4.
|
|
55
|
+
"version": "4.24.3",
|
|
56
56
|
"engines": ">=10",
|
|
57
57
|
"distPaths": [
|
|
58
58
|
"classes/",
|