@unchainedshop/roles 1.1.4 → 1.2.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/jest.config.js +5 -0
- package/lib/roles.d.ts +1 -1
- package/package.json +10 -6
- package/src/roles.ts +1 -1
- package/{roles.test.js → test/roles.test.js} +0 -0
- package/tsconfig.json +26 -5
- package/.versions +0 -18
- package/tsconfig.build.json +0 -26
package/jest.config.js
ADDED
package/lib/roles.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/roles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Roles package for unchained engine",
|
|
5
5
|
"main": "lib/roles-index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./lib/roles-index.js",
|
|
8
|
+
"./*": "./lib/*"
|
|
9
|
+
},
|
|
6
10
|
"types": "lib/roles-index.d.ts",
|
|
7
11
|
"type": "module",
|
|
8
12
|
"scripts": {
|
|
13
|
+
"prepublishOnly": "npm install && npm run build || :",
|
|
9
14
|
"clean": "rm -rf lib",
|
|
10
|
-
"build": "npm run clean && tsc
|
|
11
|
-
"watch": "tsc
|
|
12
|
-
"link:core": "npm link @unchainedshop/types",
|
|
15
|
+
"build": "npm run clean && tsc",
|
|
16
|
+
"watch": "tsc -w",
|
|
13
17
|
"test": "jest --watch"
|
|
14
18
|
},
|
|
15
19
|
"repository": {
|
|
@@ -30,8 +34,8 @@
|
|
|
30
34
|
"lodash.clone": "4.5.0"
|
|
31
35
|
},
|
|
32
36
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^16.11.
|
|
34
|
-
"@unchainedshop/types": "^1.1.
|
|
37
|
+
"@types/node": "^16.11.44",
|
|
38
|
+
"@unchainedshop/types": "^1.1.9",
|
|
35
39
|
"chai": "^4.3.6",
|
|
36
40
|
"typescript": "^4.7.4"
|
|
37
41
|
}
|
package/src/roles.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clone from 'lodash.clone';
|
|
2
|
-
import { RoleInterface, RolesInterface } from '@unchainedshop/types/roles';
|
|
2
|
+
import type { RoleInterface, RolesInterface } from '@unchainedshop/types/roles';
|
|
3
3
|
import { has } from './utils/has';
|
|
4
4
|
import { isFunction } from './utils/isFunction';
|
|
5
5
|
|
|
File without changes
|
package/tsconfig.json
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./tsconfig.build.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"lib": [
|
|
10
|
+
"esnext"
|
|
11
|
+
],
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"noImplicitReturns": true,
|
|
15
|
+
"noUnusedLocals": false,
|
|
16
|
+
"outDir": "lib",
|
|
17
|
+
"preserveWatchOutput": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"sourceMap": true,
|
|
20
|
+
"target": "esnext",
|
|
21
|
+
"types": [
|
|
22
|
+
"node",
|
|
23
|
+
"jest"
|
|
24
|
+
]
|
|
6
25
|
},
|
|
7
|
-
"include": [
|
|
8
|
-
|
|
26
|
+
"include": [
|
|
27
|
+
"src"
|
|
28
|
+
]
|
|
29
|
+
}
|
package/.versions
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
babel-compiler@7.9.0
|
|
2
|
-
babel-runtime@1.5.1
|
|
3
|
-
dynamic-import@0.7.2
|
|
4
|
-
ecmascript@0.16.2
|
|
5
|
-
ecmascript-runtime@0.8.0
|
|
6
|
-
ecmascript-runtime-client@0.12.1
|
|
7
|
-
ecmascript-runtime-server@0.11.0
|
|
8
|
-
fetch@0.1.1
|
|
9
|
-
inter-process-messaging@0.1.1
|
|
10
|
-
local-test:unchained:roles@1.1.1
|
|
11
|
-
meteor@1.10.0
|
|
12
|
-
modern-browsers@0.1.8
|
|
13
|
-
modules@0.18.0
|
|
14
|
-
modules-runtime@0.13.0
|
|
15
|
-
promise@0.12.0
|
|
16
|
-
react-fast-refresh@0.2.3
|
|
17
|
-
typescript@4.5.4
|
|
18
|
-
unchained:roles@1.1.1
|
package/tsconfig.build.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowJs": true,
|
|
4
|
-
"allowSyntheticDefaultImports": true,
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"lib": ["esnext"],
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"noImplicitReturns": true,
|
|
13
|
-
"noUnusedLocals": false,
|
|
14
|
-
"outDir": "lib",
|
|
15
|
-
"preserveWatchOutput": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"target": "esnext",
|
|
19
|
-
"types": ["node"],
|
|
20
|
-
"baseUrl": ".", // This must be specified if "paths" is.
|
|
21
|
-
"paths": {
|
|
22
|
-
"meteor/unchained:*": ["node_modules/@unchainedshop/types/index.d.ts"]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": ["src"]
|
|
26
|
-
}
|