kontonummer 2.0.0 → 3.0.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/package.json CHANGED
@@ -1,14 +1,41 @@
1
1
  {
2
2
  "name": "kontonummer",
3
+ "version": "3.0.0",
3
4
  "description": "A validator for swedish banking numbers",
4
- "version": "2.0.0",
5
+ "author": "Svante Bengtson <svante@swantzter.se> (https://swantzter.se)",
5
6
  "license": "MIT",
6
- "files": [
7
- "dist-*/",
8
- "bin/"
9
- ],
10
- "pika": true,
11
- "sideEffects": false,
7
+ "homepage": "https://kontonummer.se",
8
+ "main": "dist/esm/index.js",
9
+ "types": "dist/types/index.d.ts",
10
+ "exports": {
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.js",
13
+ "default": "./dist/esm/index.js"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/swantzter/kontonummer.git"
18
+ },
19
+ "scripts": {
20
+ "build": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json",
21
+ "build:watch": "tsc --watch -p tsconfig.production.json",
22
+ "test": "NODE_OPTIONS='--loader tsx' mocha test/**/*.test.ts",
23
+ "test:coverage": " c8 -r lcov -r text npm test",
24
+ "lint": "eslint . --ignore-path .gitignore",
25
+ "lint:fix": "npm run lint -- --fix",
26
+ "typecheck": "tsc --noEmit",
27
+ "prepack": "npm run build"
28
+ },
29
+ "devDependencies": {
30
+ "@types/mocha": "^9.1.1",
31
+ "@types/node": "^16.11.57",
32
+ "c8": "^7.12.0",
33
+ "eslint": "^8.23.0",
34
+ "eslint-config-standard-with-typescript": "^22.0.0",
35
+ "mocha": "^10.0.0",
36
+ "tsx": "^3.9.0",
37
+ "typescript": "^4.2.4"
38
+ },
12
39
  "keywords": [
13
40
  "banking",
14
41
  "bank account",
@@ -19,51 +46,5 @@
19
46
  "bankkonto",
20
47
  "format",
21
48
  "verify"
22
- ],
23
- "homepage": "https://kontonummer.se",
24
- "repository": {
25
- "type": "git",
26
- "url": "https://github.com/swantzter/kontonummer.git"
27
- },
28
- "dependencies": {},
29
- "devDependencies": {
30
- "@babel/core": "^7.11.1",
31
- "@babel/plugin-proposal-class-properties": "^7.10.4",
32
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
33
- "@babel/preset-env": "^7.11.0",
34
- "@babel/register": "^7.10.5",
35
- "@pika/pack": "^0.5.0",
36
- "@pika/plugin-build-node": "^0.9.2",
37
- "@pika/plugin-build-types": "^0.9.2",
38
- "@pika/plugin-build-web": "^0.9.2",
39
- "@pika/plugin-bundle-web": "^0.9.2",
40
- "@pika/plugin-standard-pkg": "^0.9.2",
41
- "@semantic-release/changelog": "^5.0.1",
42
- "@semantic-release/commit-analyzer": "^8.0.1",
43
- "@semantic-release/git": "^9.0.0",
44
- "@semantic-release/github": "^7.0.7",
45
- "@semantic-release/npm": "^7.0.5",
46
- "@semantic-release/release-notes-generator": "^9.0.1",
47
- "@types/mocha": "^8.0.3",
48
- "@types/node": "^14.6.0",
49
- "@typescript-eslint/eslint-plugin": "^3.9.1",
50
- "@typescript-eslint/parser": "^3.9.1",
51
- "commitizen": "^4.1.2",
52
- "cz-conventional-changelog": "^3.2.0",
53
- "flowgen": "^1.11.0",
54
- "husky": "^4.2.5",
55
- "mocha": "^8.1.1",
56
- "nyc": "^15.1.0",
57
- "pika-plugin-typedefs-to-flow": "0.0.2",
58
- "pika-plugin-unpkg-field": "^1.1.0",
59
- "semantic-release": "^17.1.1",
60
- "standardx": "^5.0.0",
61
- "ts-node": "^8.10.2",
62
- "typescript": "^3.9.7"
63
- },
64
- "esnext": "dist-src/index.js",
65
- "main": "dist-node/index.js",
66
- "types": "dist-types/index.d.ts",
67
- "module": "dist-web/index.js",
68
- "browser": "dist-web/index.bundled.js"
49
+ ]
69
50
  }
package/CHANGELOG.md DELETED
@@ -1,49 +0,0 @@
1
- # [1.5.0](https://github.com/swantzter/kontonummer/compare/v1.4.1...v1.5.0) (2020-08-18)
2
-
3
-
4
- ### Features
5
-
6
- * **banks:** add Northmill Bank ([9f36e24](https://github.com/swantzter/kontonummer/commit/9f36e249bd2eb15e98b8075b48730d93e1f2978e))
7
-
8
- ## [1.4.1](https://github.com/swantzter/kontonummer/compare/v1.4.0...v1.4.1) (2020-05-08)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * **validate:** mod11 needs to be able to take numbers longer than 10 digits ([e8d9064](https://github.com/swantzter/kontonummer/commit/e8d90648bda9100de8a20cb9e2bb3291ae775c55)), closes [#6](https://github.com/swantzter/kontonummer/issues/6)
14
-
15
- # [1.4.0](https://github.com/swantzter/kontonummer/compare/v1.3.0...v1.4.0) (2020-04-28)
16
-
17
-
18
- ### Features
19
-
20
- * **banks:** add newly confirmed account number min length to SHB accounts ([98627a4](https://github.com/swantzter/kontonummer/commit/98627a4744ff366e4326c9cbe3ed2480dff498ba))
21
- * **format:** add forgotten format for Nordea Personkonto ([d61bc92](https://github.com/swantzter/kontonummer/commit/d61bc92ec4bc364625b8f1e6bc0e16c3897e8a67))
22
-
23
- # [1.3.0](https://github.com/swantzter/kontonummer/compare/v1.2.0...v1.3.0) (2020-04-16)
24
-
25
-
26
- ### Features
27
-
28
- * **banks:** always use 4 digit sortingCode for bank lookup ([1ceb351](https://github.com/swantzter/kontonummer/commit/1ceb35110926bd82572ba42610db409cc019bc6c))
29
-
30
- # [1.2.0](https://github.com/swantzter/kontonummer/compare/v1.1.0...v1.2.0) (2020-04-12)
31
-
32
-
33
- ### Features
34
-
35
- * **format:** implement the format method ([ca57a4a](https://github.com/swantzter/kontonummer/commit/ca57a4ab6e1423b1c8f7509394337bc19c982b96))
36
-
37
- # [1.1.0](https://github.com/swantzter/kontonummer/compare/v1.0.0...v1.1.0) (2020-04-12)
38
-
39
-
40
- ### Features
41
-
42
- * **kontonummer:** console.log returns the value of the getters ([974086d](https://github.com/swantzter/kontonummer/commit/974086d4f14813288a8e7d40fd5791cefaa56216))
43
-
44
- # 1.0.0 (2020-04-10)
45
-
46
-
47
- ### Features
48
-
49
- * **validate:** validates account numbers and sorting codes ([b191ac8](https://github.com/swantzter/kontonummer/commit/b191ac8cf8beb01c4336b2104a243c3b18f0f26d))