@helsenorge/library-build 29.4.0 → 30.0.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.
@@ -5,7 +5,6 @@
5
5
  "moduleResolution": "node",
6
6
  "sourceMap": true,
7
7
  "jsx": "react",
8
- "noImplicitAny": true,
9
8
  "suppressImplicitAnyIndexErrors": true,
10
9
  "allowSyntheticDefaultImports": true,
11
10
  "forceConsistentCasingInFileNames": true,
@@ -14,14 +13,19 @@
14
13
  "allowUnreachableCode": false,
15
14
  "skipLibCheck": true,
16
15
  "lib": ["es5", "es2015.core", "es2015.promise", "es6", "dom", "scripthost"],
17
- "noUnusedLocals": true,
18
- "noUnusedParameters": true,
19
- "strictNullChecks": true,
20
16
  "noEmit": false,
21
17
  "importHelpers": true,
22
18
  "declaration": true,
23
19
  "declarationMap": true,
24
20
  "removeComments": false,
25
- "resolveJsonModule": true
21
+ "resolveJsonModule": true,
22
+
23
+ /* Linting */
24
+ "strict": true,
25
+ "noUnusedLocals": true,
26
+ "noUnusedParameters": true,
27
+ "noFallthroughCasesInSwitch": true,
28
+ "noImplicitAny": true, // noImplicitAny og strictNullChecks er skrudd på i tilfelle noen extender configen og setter strict til false
29
+ "strictNullChecks": true
26
30
  }
27
31
  }
package/files.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Function used to create the package.json file under /lib
3
- * @param packageName - the name field in package.json (for example: @helsenorge/toolkit')
3
+ * @param packageName - the name field in package.json (for example: @helsenorge/step')
4
4
  */
5
5
  export declare function createPackageJsonFile(packageName: string, inputPath: string, outputPath: string): Promise<unknown>;
6
6
  //# sourceMappingURL=files.d.ts.map
package/files.js CHANGED
@@ -4,7 +4,7 @@ exports.createPackageJsonFile = void 0;
4
4
  var fs_1 = require("fs");
5
5
  /**
6
6
  * Function used to create the package.json file under /lib
7
- * @param packageName - the name field in package.json (for example: @helsenorge/toolkit')
7
+ * @param packageName - the name field in package.json (for example: @helsenorge/step')
8
8
  */
9
9
  function createPackageJsonFile(packageName, inputPath, outputPath) {
10
10
  return new Promise(function (resolve) {
package/index.html CHANGED
@@ -29,11 +29,6 @@
29
29
  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.development.js"></script>
30
30
  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.development.js"></script>
31
31
 
32
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
33
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/locale/en-gb.min.js"></script>
34
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/locale/se.min.js"></script>
35
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/locale/nb.min.js"></script>
36
-
37
32
  <!-- IMPORT header-footer script -->
38
33
  <script type="module" src="https://static-hn-mas-01.int-hn.nhn.no/header-footer/static/js/header-footer/header-footer.js"></script>
39
34
  <script src="index.js"></script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@helsenorge/library-build",
3
3
  "author": "Norsk helsenett SF",
4
- "version": "29.4.0",
4
+ "version": "30.0.2",
5
5
  "main": "./index.js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,42 +11,38 @@
11
11
  "library-scripts": "./library-scripts.js"
12
12
  },
13
13
  "license": "MIT",
14
- "peerDependencies": {
15
- "core-js": ">=3.26.1"
16
- },
17
14
  "dependencies": {
18
- "@babel/core": "^7.22.15",
19
- "@helsenorge/eslint-config": "^29.0.0",
15
+ "@babel/core": "^7.23.7",
16
+ "@helsenorge/eslint-config": "^30.0.2",
20
17
  "@testing-library/jest-dom": "^5.17.0",
21
18
  "@testing-library/react": "^12.1.5",
22
- "@testing-library/user-event": "^14.4.3",
23
- "@types/copyfiles": "^2.4.1",
24
- "@types/enzyme": "^3.10.13",
25
- "@types/enzyme-to-json": "^1.5.4",
26
- "@types/react": "^17.0.65",
27
- "@types/react-dom": "^17.0.20",
19
+ "@testing-library/user-event": "^14.5.2",
20
+ "@types/copyfiles": "^2.4.4",
21
+ "@types/enzyme": "^3.10.18",
22
+ "@types/enzyme-to-json": "^1.5.7",
23
+ "@types/react": "^17.0.74",
24
+ "@types/react-dom": "^17.0.25",
28
25
  "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
29
- "babel-jest": "^27.5.1",
26
+ "babel-jest": "^29.7.0",
30
27
  "babel-preset-react-app": "^10.0.1",
31
28
  "copyfiles": "2.4.1",
32
- "core-js": ">=3.32.2",
33
29
  "crlf": "1.1.1",
34
30
  "cross-spawn": "7.0.3",
35
31
  "enzyme": "^3.11.0",
36
32
  "enzyme-to-json": "^3.6.2",
37
- "esbuild": "^0.19.2",
38
- "esbuild-sass-plugin": "^2.15.0",
33
+ "esbuild": "^0.19.11",
34
+ "esbuild-sass-plugin": "^2.16.1",
39
35
  "identity-obj-proxy": "^3.0.0",
40
36
  "isomorphic-fetch": "^3.0.0",
41
- "jest": "^29.6.4",
42
- "jest-environment-jsdom": "^29.6.4",
37
+ "jest": "^29.7.0",
38
+ "jest-environment-jsdom": "^29.7.0",
43
39
  "jest-junit-reporter": "^1.1.0",
44
- "jest-resolve": "^29.6.4",
45
- "postcss": "^8.4.29",
40
+ "jest-resolve": "^29.7.0",
41
+ "postcss": "^8.4.33",
46
42
  "postcss-modules": "^6.0.0",
47
43
  "react": "17.0.2",
48
44
  "react-dom": "17.0.2",
49
- "rimraf": "^5.0.1",
45
+ "rimraf": "^5.0.5",
50
46
  "tslib": "^2.6.2",
51
47
  "typescript": "4.9.4"
52
48
  },
package/start.js CHANGED
@@ -11,13 +11,14 @@ var helpers_1 = require("yargs/helpers");
11
11
  var _a, entry, outDir, context;
12
12
  return tslib_1.__generator(this, function (_b) {
13
13
  switch (_b.label) {
14
- case 0:
15
- _a = (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
14
+ case 0: return [4 /*yield*/, (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
16
15
  .options({
17
16
  entry: { type: 'string', default: 'src/__devonly__/index.tsx' },
18
17
  outDir: { type: 'string', default: 'dist' },
19
18
  })
20
- .parse(), entry = _a.entry, outDir = _a.outDir;
19
+ .parse()];
20
+ case 1:
21
+ _a = _b.sent(), entry = _a.entry, outDir = _a.outDir;
21
22
  if (!(0, fs_1.existsSync)(outDir)) {
22
23
  (0, fs_1.mkdirSync)(outDir);
23
24
  }
@@ -63,10 +64,10 @@ var helpers_1 = require("yargs/helpers");
63
64
  },
64
65
  ],
65
66
  })];
66
- case 1:
67
+ case 2:
67
68
  context = _b.sent();
68
69
  return [4 /*yield*/, context.watch()];
69
- case 2:
70
+ case 3:
70
71
  _b.sent();
71
72
  return [4 /*yield*/, context.serve({
72
73
  port: 3000,
@@ -74,7 +75,7 @@ var helpers_1 = require("yargs/helpers");
74
75
  servedir: outDir,
75
76
  fallback: outDir + '/index.html',
76
77
  })];
77
- case 3:
78
+ case 4:
78
79
  _b.sent();
79
80
  return [2 /*return*/];
80
81
  }