@trustpayments/js-payments-card 2.2.1137 → 2.2.1142
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/README.md +5 -2
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -33,16 +33,19 @@ Then open address `https://localhost:8443` in your web browser.
|
|
|
33
33
|
|
|
34
34
|
## Distribution
|
|
35
35
|
|
|
36
|
-
This library is distributed as an ES module
|
|
36
|
+
This library is distributed as an ES module and CommonJS module.
|
|
37
37
|
|
|
38
38
|
```js
|
|
39
39
|
// ES module import
|
|
40
40
|
import Card from "@trustpayments/js-payments-card";
|
|
41
|
+
|
|
42
|
+
// CommonJS require
|
|
43
|
+
const Card = require("@trustpayments/js-payments-card");
|
|
41
44
|
```
|
|
42
45
|
|
|
43
46
|
> **Note for UMD consumers:** If you were previously loading the library via a `<script>` UMD tag, migrate to an ES module bundler (Webpack, Rollup, Vite, etc.).
|
|
44
47
|
>
|
|
45
|
-
> **Node.js consumers:** This package
|
|
48
|
+
> **Node.js consumers:** This package supports both ESM (`import`) and CommonJS (`require`). Node.js 26+ is required.
|
|
46
49
|
|
|
47
50
|
##### Minimum supported browsers:
|
|
48
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustpayments/js-payments-card",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1142",
|
|
4
4
|
"description": "TypeScript Payment Card",
|
|
5
5
|
"author": "Trust Payments <support@trustpayments.com>",
|
|
6
6
|
"homepage": "https://docs.trustpayments.com",
|
|
@@ -70,8 +70,9 @@
|
|
|
70
70
|
"preinstall": "npx force-resolutions"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@eslint/js": "
|
|
74
|
-
"@
|
|
73
|
+
"@eslint/js": "10.0.1",
|
|
74
|
+
"@microsoft/api-extractor": "7.58.12",
|
|
75
|
+
"@stylistic/stylelint-plugin": "5.2.1",
|
|
75
76
|
"@typescript-eslint/eslint-plugin": "8.65.0",
|
|
76
77
|
"@typescript-eslint/parser": "8.65.0",
|
|
77
78
|
"@vitejs/plugin-basic-ssl": "2.3.0",
|
|
@@ -80,25 +81,24 @@
|
|
|
80
81
|
"better-npm-audit": "3.11.0",
|
|
81
82
|
"eslint-config-prettier": "10.1.8",
|
|
82
83
|
"eslint-plugin-compat": "7.0.2",
|
|
83
|
-
"eslint-plugin-import": "2.32.0",
|
|
84
84
|
"eslint-plugin-prettier": "5.5.6",
|
|
85
85
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
86
|
-
"jsdom": "
|
|
86
|
+
"jsdom": "30.0.1",
|
|
87
87
|
"prettier": "3.9.6",
|
|
88
88
|
"sass": "1.102.0",
|
|
89
|
-
"stylelint": "
|
|
90
|
-
"stylelint-scss": "
|
|
89
|
+
"stylelint": "17.14.1",
|
|
90
|
+
"stylelint-scss": "7.2.0",
|
|
91
91
|
"typescript": "6.0.3",
|
|
92
92
|
"typescript-eslint": "8.65.0",
|
|
93
|
-
"
|
|
93
|
+
"unplugin-dts": "1.0.3",
|
|
94
|
+
"vite": "8.2.0",
|
|
94
95
|
"vite-plugin-css-injected-by-js": "5.0.2",
|
|
95
|
-
"vite-plugin-dts": "4.5.4",
|
|
96
96
|
"vite-plugin-html": "3.2.2",
|
|
97
97
|
"vitest": "4.1.10"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@trustpayments/ts-iin-lookup": "2.0.
|
|
101
|
-
"@trustpayments/ts-luhn-check": "2.0.
|
|
100
|
+
"@trustpayments/ts-iin-lookup": "2.0.684",
|
|
101
|
+
"@trustpayments/ts-luhn-check": "2.0.684"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "8b98a75644fc5bb21a820abde6ae2fdff48a8eb1"
|
|
104
104
|
}
|