@tamtamchik/app-store-receipt-parser 2.2.2 → 2.2.3
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/SECURITY.md +18 -0
- package/package.json +15 -17
- package/eslint.config.mjs +0 -58
- package/tsconfig.json +0 -20
package/SECURITY.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
| Version | Supported |
|
|
6
|
+
| ------- | ------------------ |
|
|
7
|
+
| 2.x | :white_check_mark: |
|
|
8
|
+
| < 2.0 | :x: |
|
|
9
|
+
|
|
10
|
+
## Reporting a Vulnerability
|
|
11
|
+
|
|
12
|
+
If you discover a security vulnerability in this project, please report it responsibly.
|
|
13
|
+
|
|
14
|
+
**Please do NOT open a public GitHub issue for security vulnerabilities.**
|
|
15
|
+
|
|
16
|
+
Instead, please report them via [GitHub's private vulnerability reporting](https://github.com/tamtamchik/app-store-receipt-parser/security/advisories/new).
|
|
17
|
+
|
|
18
|
+
You should expect an initial response within 72 hours. Once the issue is confirmed, a fix will be released as soon as possible depending on the complexity of the vulnerability.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamtamchik/app-store-receipt-parser",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "A lightweight TypeScript library for extracting transaction IDs from Apple's ASN.1 encoded receipts.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -31,29 +31,27 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"asn1js": "^3.0.
|
|
34
|
+
"asn1js": "^3.0.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@eslint/
|
|
38
|
-
"@eslint
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"@typescript-eslint/parser": "^8.31.1",
|
|
44
|
-
"eslint": "^9.25.1",
|
|
45
|
-
"globals": "^16.0.0",
|
|
46
|
-
"jest": "^29.7.0",
|
|
47
|
-
"ts-jest": "^29.3.2",
|
|
37
|
+
"@eslint/js": "^10.0.1",
|
|
38
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
39
|
+
"@types/node": "^25.6.0",
|
|
40
|
+
"c8": "^11.0.0",
|
|
41
|
+
"eslint": "^10.2.0",
|
|
42
|
+
"globals": "^17.5.0",
|
|
48
43
|
"tsup": "^8.0.2",
|
|
49
|
-
"
|
|
44
|
+
"tsx": "^4.21.0",
|
|
45
|
+
"typescript": "^6.0.2",
|
|
46
|
+
"typescript-eslint": "^8.58.2"
|
|
50
47
|
},
|
|
51
48
|
"scripts": {
|
|
52
49
|
"build": "tsup src/index.ts --format cjs,esm --clean",
|
|
53
50
|
"dev": "npm run build -- --watch src",
|
|
54
|
-
"lint": "eslint src
|
|
55
|
-
"
|
|
56
|
-
"
|
|
51
|
+
"lint": "eslint src",
|
|
52
|
+
"lint:fix": "eslint src --fix",
|
|
53
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
54
|
+
"coverage": "c8 --reporter=text --reporter=lcov node --import tsx --test test/*.test.ts",
|
|
57
55
|
"prepublishOnly": "npm run build"
|
|
58
56
|
}
|
|
59
57
|
}
|
package/eslint.config.mjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
4
|
-
import globals from "globals";
|
|
5
|
-
import stylisticTs from '@stylistic/eslint-plugin-ts'
|
|
6
|
-
import tsParser from "@typescript-eslint/parser";
|
|
7
|
-
import js from "@eslint/js";
|
|
8
|
-
import { FlatCompat } from "@eslint/eslintrc";
|
|
9
|
-
|
|
10
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
11
|
-
const __dirname = path.dirname(__filename);
|
|
12
|
-
const compat = new FlatCompat({
|
|
13
|
-
baseDirectory: __dirname,
|
|
14
|
-
recommendedConfig: js.configs.recommended,
|
|
15
|
-
allConfig: js.configs.all
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export default [
|
|
19
|
-
...compat.extends("plugin:@typescript-eslint/recommended"),
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
plugins: {
|
|
23
|
-
"@stylistic/ts": stylisticTs,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
languageOptions: {
|
|
29
|
-
globals: {
|
|
30
|
-
...globals.node,
|
|
31
|
-
...globals.jest,
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
parser: tsParser,
|
|
35
|
-
ecmaVersion: 2021,
|
|
36
|
-
sourceType: "module",
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
rules: {
|
|
40
|
-
indent: ["error", 2, {
|
|
41
|
-
SwitchCase: 1,
|
|
42
|
-
}],
|
|
43
|
-
|
|
44
|
-
semi: "off",
|
|
45
|
-
quotes: "off",
|
|
46
|
-
"object-curly-spacing": "off",
|
|
47
|
-
|
|
48
|
-
"@typescript-eslint/array-type": ["error", {
|
|
49
|
-
default: "array",
|
|
50
|
-
}],
|
|
51
|
-
|
|
52
|
-
"@stylistic/ts/ban-ts-comment": 0,
|
|
53
|
-
"@stylistic/ts/comma-dangle": ["error", "always-multiline"],
|
|
54
|
-
"@stylistic/ts/quotes": ["error", "single"],
|
|
55
|
-
"@stylistic/ts/semi": ["error", "never"],
|
|
56
|
-
"@stylistic/ts/object-curly-spacing": ["error", "always"],
|
|
57
|
-
},
|
|
58
|
-
}];
|
package/tsconfig.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"outDir": "./dist",
|
|
9
|
-
"rootDir": ".",
|
|
10
|
-
"moduleResolution": "node"
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*.ts",
|
|
14
|
-
"test/**/*.ts"
|
|
15
|
-
],
|
|
16
|
-
"exclude": [
|
|
17
|
-
"node_modules",
|
|
18
|
-
"dist"
|
|
19
|
-
]
|
|
20
|
-
}
|