@trustpayments/js-payments-card 2.2.1136 → 2.2.1141

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.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +11 -11
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 only. UMD format is no longer supported.
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 requires Node.js 26+ with native ESM support. Use `import` instead of `require()`. If your project uses CommonJS, configure your bundler to handle ESM dependencies.
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.1136",
3
+ "version": "2.2.1141",
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": "9.39.5",
74
- "@stylistic/stylelint-plugin": "4.0.1",
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": "^29.1.1",
86
+ "jsdom": "30.0.1",
87
87
  "prettier": "3.9.6",
88
88
  "sass": "1.102.0",
89
- "stylelint": "16.26.1",
90
- "stylelint-scss": "6.14.0",
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
+ "unplugin-dts": "1.0.3",
93
94
  "vite": "8.1.5",
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.678",
101
- "@trustpayments/ts-luhn-check": "2.0.678"
100
+ "@trustpayments/ts-iin-lookup": "2.0.683",
101
+ "@trustpayments/ts-luhn-check": "2.0.683"
102
102
  },
103
- "gitHead": "fb8b1991050b59a98b0dcba2402a85f41bfc4844"
103
+ "gitHead": "9280454b518700740564f8578130dbb458c4ec7a"
104
104
  }