@natlibfi/marc-record-validators-melinda 10.15.3-alpha.1 → 10.15.3-alpha.2

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.
@@ -10,7 +10,7 @@ updates:
10
10
  interval: "daily"
11
11
  time: "06:30"
12
12
  timezone: "Europe/Helsinki"
13
- target-branch: "dependencies"
13
+ target-branch: "next"
14
14
 
15
15
  # Minor updates to npm production dependencies daily
16
16
  - package-ecosystem: "npm"
@@ -20,9 +20,14 @@ updates:
20
20
  time: "06:45"
21
21
  timezone: "Europe/Helsinki"
22
22
  versioning-strategy: lockfile-only
23
- allow:
24
- - dependency-type: "production"
25
- target-branch: "dependencies"
23
+ target-branch: "next"
24
+ pull-request-branch-name:
25
+ separator: "-"
26
+ groups:
27
+ production-dependencies:
28
+ dependency-type: "production"
29
+ development-dependencies:
30
+ dependency-type: "development"
26
31
 
27
32
  # Major updates to npm dependencies weekly @tuesday
28
33
  # Not possible yet https://github.com/dependabot/dependabot-core/issues/1778
@@ -11,7 +11,7 @@ jobs:
11
11
 
12
12
  strategy:
13
13
  matrix:
14
- node-version: [16.x, 18.x, 19.x]
14
+ node-version: [18.x, 19.x, 20.x]
15
15
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
16
16
 
17
17
  steps:
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "url": "git@github.com:natlibfi/marc-record-validators-melinda.git"
15
15
  },
16
16
  "license": "MIT",
17
- "version": "10.15.3-alpha.1",
17
+ "version": "10.15.3-alpha.2",
18
18
  "main": "./dist/index.js",
19
19
  "publishConfig": {
20
20
  "access": "public"
@@ -24,25 +24,27 @@
24
24
  },
25
25
  "scripts": {
26
26
  "prepare": "npm run build",
27
- "lint": "eslint src",
28
- "lint:dev": "eslint --fix src",
29
- "test:base": "cross-env NODE_ENV=test mocha --require @babel/register --reporter-option maxDiffSize=15000 --recursive --extension .spec.js src",
27
+ "build": "babel ./src --source-maps --copy-files --delete-dir-on-start --out-dir=dist",
28
+ "lint": "eslint ./src",
29
+ "lint:dev": "eslint --fix ./src",
30
30
  "test": "npm run lint && npm run test:base",
31
- "test:dev": "npm run lint:dev && npm run coverage",
31
+ "test:base": "cross-env NODE_ENV=test nyc mocha",
32
+ "test:dev": "npm run lint:dev && cross-env NODE_ENV=test nyc mocha",
33
+ "dev": "nodemon",
34
+ "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test nodemon",
32
35
  "coverage": "npm run cover:unit && npm run cover:report",
33
36
  "cover:unit": "nyc --silent npm run test:base",
34
- "cover:report": "nyc report",
35
- "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist"
37
+ "cover:report": "nyc report"
36
38
  },
37
39
  "dependencies": {
38
- "@babel/register": "^7.22.15",
40
+ "@babel/register": "^7.23.7",
39
41
  "@natlibfi/issn-verify": "^1.0.3",
40
- "@natlibfi/marc-record": "^8.0.2",
42
+ "@natlibfi/marc-record": "^8.1.0-alpha.2",
41
43
  "@natlibfi/marc-record-validate": "^8.0.4",
42
44
  "cld3-asm": "^3.1.1",
43
45
  "clone": "^2.1.2",
44
46
  "debug": "^4.3.4",
45
- "isbn3": "^1.1.43",
47
+ "isbn3": "^1.1.44",
46
48
  "langs": "^2.0.0",
47
49
  "node-fetch": "^2.7.0",
48
50
  "xml2js": "^0.6.2"
@@ -52,30 +54,25 @@
52
54
  },
53
55
  "devDependencies": {
54
56
  "@babel/cli": "^7.23.4",
55
- "@babel/core": "^7.23.6",
56
- "@babel/eslint-parser": "^7.23.3",
57
- "@babel/preset-env": "^7.23.6",
57
+ "@babel/core": "^7.23.7",
58
+ "@babel/preset-env": "^7.23.8",
58
59
  "@natlibfi/eslint-config-melinda-backend": "^3.0.3",
59
- "@natlibfi/fixugen": "^2.0.3",
60
- "@natlibfi/fixura": "^3.0.3",
60
+ "@natlibfi/fixugen": "^2.0.4",
61
+ "@natlibfi/fixura": "^3.0.4",
61
62
  "babel-plugin-istanbul": "^6.1.1",
62
63
  "babel-plugin-rewire": "^1.2.0",
63
- "chai": "^4.3.10",
64
+ "chai": "^4.4.0",
64
65
  "chai-as-promised": "^7.1.1",
65
66
  "cross-env": "^7.0.3",
66
- "eslint": "^8.55.0",
67
+ "eslint": "^8.56.0",
67
68
  "fetch-mock": "^9.11.0",
68
69
  "mocha": "^10.2.0",
69
70
  "nyc": "^15.1.0"
70
71
  },
71
72
  "eslintConfig": {
72
- "parser": "@babel/eslint-parser",
73
73
  "extends": [
74
74
  "@natlibfi/melinda-backend"
75
- ],
76
- "env": {
77
- "mocha": true
78
- }
75
+ ]
79
76
  },
80
77
  "babel": {
81
78
  "presets": [
@@ -95,6 +92,26 @@
95
92
  }
96
93
  }
97
94
  },
95
+ "mocha": {
96
+ "spec": [
97
+ "src/*.spec.js",
98
+ "src/**/*.spec.js"
99
+ ],
100
+ "require": [
101
+ "@babel/register"
102
+ ],
103
+ "inline-diffs": true,
104
+ "maxDiffSize": 25000,
105
+ "bail": true,
106
+ "exit": true
107
+ },
108
+ "nodemonConfig": {
109
+ "exec": "npm run test:dev",
110
+ "watch": [
111
+ "src/*",
112
+ "test-fixtures/*"
113
+ ]
114
+ },
98
115
  "nyc": {
99
116
  "exclude": [
100
117
  "src/*.spec.js",
@@ -103,9 +120,6 @@
103
120
  "reporter": [
104
121
  "text"
105
122
  ],
106
- "require": [
107
- "@babel/register"
108
- ],
109
123
  "sourceMap": false,
110
124
  "instrument": false,
111
125
  "lines": 80,