@natlibfi/melinda-commons 14.0.0-alpha.2 → 14.0.0-alpha.5
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.
|
@@ -4,6 +4,10 @@ name: Melinda node tests
|
|
|
4
4
|
|
|
5
5
|
on: push
|
|
6
6
|
|
|
7
|
+
permissions:
|
|
8
|
+
id-token: write # Required for OIDC
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
7
11
|
jobs:
|
|
8
12
|
build-node-versions:
|
|
9
13
|
name: Node version matrix
|
|
@@ -16,9 +20,9 @@ jobs:
|
|
|
16
20
|
|
|
17
21
|
steps:
|
|
18
22
|
- name: Checkout the code
|
|
19
|
-
uses: actions/checkout@
|
|
23
|
+
uses: actions/checkout@v5
|
|
20
24
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
21
|
-
uses: actions/setup-node@
|
|
25
|
+
uses: actions/setup-node@v6
|
|
22
26
|
with:
|
|
23
27
|
node-version: ${{ matrix.node-version }}
|
|
24
28
|
cache: 'npm'
|
|
@@ -32,9 +36,10 @@ jobs:
|
|
|
32
36
|
license-scan:
|
|
33
37
|
name: License compliance check
|
|
34
38
|
runs-on: ubuntu-latest
|
|
39
|
+
container: node:22
|
|
35
40
|
|
|
36
41
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
42
|
+
- uses: actions/checkout@v5
|
|
38
43
|
- uses: mikaelvesavuori/license-compliance-action@v1
|
|
39
44
|
with:
|
|
40
45
|
exclude_pattern: /^@natlibfi/
|
|
@@ -42,10 +47,11 @@ jobs:
|
|
|
42
47
|
njsscan:
|
|
43
48
|
name: Njsscan check
|
|
44
49
|
runs-on: ubuntu-latest
|
|
50
|
+
container: node:22
|
|
45
51
|
|
|
46
52
|
steps:
|
|
47
53
|
- name: Checkout the code
|
|
48
|
-
uses: actions/checkout@
|
|
54
|
+
uses: actions/checkout@v5
|
|
49
55
|
- name: nodejsscan scan
|
|
50
56
|
id: njsscan
|
|
51
57
|
uses: ajinabraham/njsscan-action@master
|
|
@@ -54,17 +60,26 @@ jobs:
|
|
|
54
60
|
|
|
55
61
|
publish:
|
|
56
62
|
runs-on: ubuntu-latest
|
|
63
|
+
container: node:22
|
|
57
64
|
needs: [build-node-versions, njsscan]
|
|
58
65
|
if: contains(github.ref, 'refs/tags/')
|
|
59
66
|
|
|
60
67
|
steps:
|
|
61
|
-
- uses: actions/checkout@
|
|
68
|
+
- uses: actions/checkout@v5
|
|
62
69
|
# Setup .npmrc file to publish to npm
|
|
63
|
-
- uses: actions/setup-node@
|
|
70
|
+
- uses: actions/setup-node@v6
|
|
64
71
|
with:
|
|
65
72
|
node-version: '22.x'
|
|
66
73
|
registry-url: 'https://registry.npmjs.org'
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
- name: Update npm
|
|
75
|
+
run: npm install -g npm@latest
|
|
76
|
+
- name: Clean install
|
|
77
|
+
run: npm ci
|
|
78
|
+
# Publish stable release with --tag latest
|
|
79
|
+
- name: Publish stable release
|
|
80
|
+
if: ${{!contains(github.ref, '-alpha')}}
|
|
81
|
+
run: npm publish --tag=latest
|
|
82
|
+
# Publish pre-release without --tag latest
|
|
83
|
+
- name: Publish pre-release
|
|
84
|
+
if: contains(github.ref, '-alpha')
|
|
85
|
+
run: npm publish --tag=next
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MarcRecord } from "@natlibfi/marc-record";
|
|
2
2
|
MarcRecord.setValidationOptions({ subfieldValues: false });
|
|
3
|
-
import { createSubrecordPicker } from "./subRecordPicker";
|
|
4
|
-
export * from "./utils";
|
|
5
|
-
export { default as Error } from "./error";
|
|
3
|
+
import { createSubrecordPicker } from "./subRecordPicker.js";
|
|
4
|
+
export * from "./utils.js";
|
|
5
|
+
export { default as Error } from "./error.js";
|
|
6
6
|
export { createSubrecordPicker };
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.js"],
|
|
4
|
-
"sourcesContent": ["import {MarcRecord} from '@natlibfi/marc-record';\n\n// Aleph creates partial subfields...\nMarcRecord.setValidationOptions({subfieldValues: false});\n\nimport {createSubrecordPicker} from './subRecordPicker';\n\nexport * from './utils';\n\nexport {default as Error} from './error';\nexport {createSubrecordPicker};\n"],
|
|
4
|
+
"sourcesContent": ["import {MarcRecord} from '@natlibfi/marc-record';\n\n// Aleph creates partial subfields...\nMarcRecord.setValidationOptions({subfieldValues: false});\n\nimport {createSubrecordPicker} from './subRecordPicker.js';\n\nexport * from './utils.js';\n\nexport {default as Error} from './error.js';\nexport {createSubrecordPicker};\n"],
|
|
5
5
|
"mappings": "AAAA,SAAQ,kBAAiB;AAGzB,WAAW,qBAAqB,EAAC,gBAAgB,MAAK,CAAC;AAEvD,SAAQ,6BAA4B;AAEpC,cAAc;AAEd,SAAQ,WAAW,aAAY;AAC/B,SAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -5,16 +5,15 @@
|
|
|
5
5
|
"name": "The National Library of Finland"
|
|
6
6
|
},
|
|
7
7
|
"keywords": [],
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://www.npmjs.com/package/@natlibfi/melinda-commons",
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/natlibfi/melinda-commons-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
|
-
"
|
|
14
|
-
"url": "git@github.com:natlibfi/melinda-commons-js.git"
|
|
13
|
+
"url": "https://github.com/NatLibFi/melinda-commons-js"
|
|
15
14
|
},
|
|
16
15
|
"license": "MIT",
|
|
17
|
-
"version": "14.0.0-alpha.
|
|
16
|
+
"version": "14.0.0-alpha.5",
|
|
18
17
|
"main": "./dist/index.js",
|
|
19
18
|
"type": "module",
|
|
20
19
|
"engines": {
|
|
@@ -41,8 +40,8 @@
|
|
|
41
40
|
"debug": "^4.4.1"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
|
-
"@natlibfi/fixugen-http-client": "
|
|
45
|
-
"@natlibfi/fixura": "
|
|
43
|
+
"@natlibfi/fixugen-http-client": "next",
|
|
44
|
+
"@natlibfi/fixura": "next",
|
|
46
45
|
"cross-env": "^7.0.3",
|
|
47
46
|
"esbuild": "^0.25.8",
|
|
48
47
|
"eslint": "^9.32.0"
|
package/src/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import {MarcRecord} from '@natlibfi/marc-record';
|
|
|
3
3
|
// Aleph creates partial subfields...
|
|
4
4
|
MarcRecord.setValidationOptions({subfieldValues: false});
|
|
5
5
|
|
|
6
|
-
import {createSubrecordPicker} from './subRecordPicker';
|
|
6
|
+
import {createSubrecordPicker} from './subRecordPicker.js';
|
|
7
7
|
|
|
8
|
-
export * from './utils';
|
|
8
|
+
export * from './utils.js';
|
|
9
9
|
|
|
10
|
-
export {default as Error} from './error';
|
|
10
|
+
export {default as Error} from './error.js';
|
|
11
11
|
export {createSubrecordPicker};
|