@digicatapult/sqnc-process-management 2.2.133 → 2.2.134
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { expect } from 'chai';
|
|
2
|
+
import version from '../version';
|
|
3
|
+
describe('version helper', ()=>{
|
|
4
|
+
it('returns a version number from package.json', ()=>{
|
|
5
|
+
expect(typeof version).to.equal('string');
|
|
6
|
+
expect(version).to.match(/^(\d+\.)?(\d+\.)?(\*|\d+)$/g);
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=version.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/__tests__/version.test.ts"],"sourcesContent":["import { expect } from 'chai'\n\nimport version from '../version'\n\n\ndescribe('version helper', () => {\n it('returns a version number from package.json', () => {\n expect(typeof version).to.equal('string')\n expect(version).to.match((/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/g))\n })\n\n})\n"],"names":["expect","version","describe","it","to","equal","match"],"mappings":"AAAA,SAASA,MAAM,QAAQ,OAAM;AAE7B,OAAOC,aAAa,aAAY;AAGhCC,SAAS,kBAAkB;IACzBC,GAAG,8CAA8C;QAC/CH,OAAO,OAAOC,SAASG,EAAE,CAACC,KAAK,CAAC;QAChCL,OAAOC,SAASG,EAAE,CAACE,KAAK,CAAE;IAC5B;AAEF"}
|
package/build/version.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const packageJson = await import('../package.json', {
|
|
2
|
+
with: {
|
|
3
|
+
type: 'json'
|
|
4
|
+
}
|
|
5
|
+
});
|
|
6
|
+
const { version } = packageJson.default;
|
|
3
7
|
export default version;
|
|
4
8
|
|
|
5
9
|
//# sourceMappingURL=version.js.map
|
package/build/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["const packageJson = await import('../package.json', { with: { type: 'json' }})\nconst { version } = packageJson.default \nexport default version\n"],"names":["packageJson","with","type","version","default"],"mappings":"AAAA,MAAMA,cAAc,MAAM,MAAM,CAAC,mBAAmB;IAAEC,MAAM;QAAEC,MAAM;IAAO;AAAC;AAC5E,MAAM,EAAEC,OAAO,EAAE,GAAGH,YAAYI,OAAO;AACvC,eAAeD,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digicatapult/sqnc-process-management",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.134",
|
|
4
4
|
"description": "SQNC Process Management Flow",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"/build"
|
|
27
27
|
],
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=22.x.x",
|
|
30
30
|
"npm": ">=10.x.x"
|
|
31
31
|
},
|
|
32
32
|
"author": "Digital Catapult",
|