@localnerve/hmac-symmetric 3.0.1 → 4.0.1
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 +21 -11
- package/.nvmrc +0 -1
- package/eslint.config.js +0 -69
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localnerve/hmac-symmetric",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A library to generate hmac and symmetrically encrypted payloads",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"lint": "eslint .",
|
|
16
|
-
"pretranspile": "node -e
|
|
16
|
+
"pretranspile": "node -e \"require('fs').rmSync('./cjs', {recursive:true,force:true})\"",
|
|
17
17
|
"transpile": "babel lib -d cjs --out-file-extension .cjs",
|
|
18
18
|
"posttranspile": "node posttranspile.js",
|
|
19
19
|
"prepublishOnly": "npm run transpile",
|
|
20
|
-
"pretest:node": "node -e
|
|
20
|
+
"pretest:node": "node -e \"require('fs'); fs.rmSync('./coverage',{recursive:true,force:true});fs.mkdirSync('./coverage',{recursive:true});\"",
|
|
21
21
|
"test:node": "node --test --experimental-test-coverage --test-coverage-lines=95 --test-coverage-exclude='__tests__/**' --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info ./__tests__/*.js",
|
|
22
22
|
"test": "cross-env HS_HMAC_SECRET=deadbeef HS_ENCRYPTION_KEY=56c6a9c6fb56a39e05fb993918ab01dda24439e2658dd7b06aa0f8fcc7fe0627 npm run test:node && npm run test:package",
|
|
23
23
|
"test:package": "node ./__test_package__/index.js"
|
|
@@ -47,16 +47,26 @@
|
|
|
47
47
|
"homepage": "https://github.com/localnerve/hmac-symmetric#readme",
|
|
48
48
|
"dependencies": {},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@babel/cli": "^
|
|
51
|
-
"@babel/preset-env": "^
|
|
50
|
+
"@babel/cli": "^8.0.4",
|
|
51
|
+
"@babel/preset-env": "^8.0.2",
|
|
52
52
|
"@eslint/js": "^10.0.1",
|
|
53
53
|
"cross-env": "^10.1.0",
|
|
54
|
-
"eslint": "^10.
|
|
55
|
-
"eslint-plugin-n": "^18.
|
|
56
|
-
"globals": "^17.
|
|
57
|
-
"tar": "^7.5.
|
|
54
|
+
"eslint": "^10.7.0",
|
|
55
|
+
"eslint-plugin-n": "^18.2.2",
|
|
56
|
+
"globals": "^17.7.0",
|
|
57
|
+
"tar": "^7.5.20"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
|
-
"node": "
|
|
61
|
-
}
|
|
60
|
+
"node": "^22.17.0 || >=24.0.0"
|
|
61
|
+
},
|
|
62
|
+
"funding": [
|
|
63
|
+
{
|
|
64
|
+
"type": "github",
|
|
65
|
+
"url": "https://github.com/sponsors/localnerve"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "paypal",
|
|
69
|
+
"url": "https://www.paypal.com/ncp/payment/DHCB5GUYMGX5U"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
62
72
|
}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
22.17.0
|
package/eslint.config.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import globals from 'globals';
|
|
3
|
-
import nodePlugin from 'eslint-plugin-n';
|
|
4
|
-
|
|
5
|
-
const nodeRules = {
|
|
6
|
-
...nodePlugin.configs['flat/recommended'].rules,
|
|
7
|
-
...{
|
|
8
|
-
"n/no-unsupported-features/node-builtins": [
|
|
9
|
-
"error",
|
|
10
|
-
{
|
|
11
|
-
allowExperimental: true,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default [{
|
|
18
|
-
ignores: [
|
|
19
|
-
'cjs/**',
|
|
20
|
-
'coverage/**',
|
|
21
|
-
'node_modules/**',
|
|
22
|
-
'**/tmp/**'
|
|
23
|
-
]
|
|
24
|
-
}, {
|
|
25
|
-
plugins: { n: nodePlugin },
|
|
26
|
-
files: [
|
|
27
|
-
'lib/**',
|
|
28
|
-
'__test_package__/*.mjs'
|
|
29
|
-
],
|
|
30
|
-
languageOptions: {
|
|
31
|
-
globals: {
|
|
32
|
-
...globals.node
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
rules: {
|
|
36
|
-
...js.configs.recommended.rules,
|
|
37
|
-
...nodeRules
|
|
38
|
-
}
|
|
39
|
-
}, {
|
|
40
|
-
plugins: { n: nodePlugin },
|
|
41
|
-
files: [
|
|
42
|
-
'__test_package__/*.{js,cjs}'
|
|
43
|
-
],
|
|
44
|
-
...js.configs.recommended,
|
|
45
|
-
languageOptions: {
|
|
46
|
-
sourceType: 'commonjs',
|
|
47
|
-
globals: {
|
|
48
|
-
...globals.node
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
rules: {
|
|
52
|
-
...js.configs.recommended.rules,
|
|
53
|
-
...nodeRules
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
plugins: { n: nodePlugin },
|
|
57
|
-
files: [
|
|
58
|
-
'__tests__/**'
|
|
59
|
-
],
|
|
60
|
-
languageOptions: {
|
|
61
|
-
globals: {
|
|
62
|
-
...globals.node
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
rules: {
|
|
66
|
-
...js.configs.recommended.rules,
|
|
67
|
-
...nodeRules
|
|
68
|
-
}
|
|
69
|
-
}]
|