@kiwano/core 3.0.0-beta.1 → 3.0.0-beta.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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +11 -10
- package/LICENSE +0 -21
package/dist/index.cjs
CHANGED
|
@@ -1606,7 +1606,7 @@ function graphQLAclMiddleware(acl, schemaName, options = null) {
|
|
|
1606
1606
|
const parsedConfig = {
|
|
1607
1607
|
resource: `${schemaName}:${pathResource}`
|
|
1608
1608
|
};
|
|
1609
|
-
const role =
|
|
1609
|
+
const role = (0, compat_namespaceObject.get)(context, fullOptions.rolePath) ?? null;
|
|
1610
1610
|
const allowed = acl.validate(parsedConfig, role);
|
|
1611
1611
|
if (!allowed) fullOptions.onForbidden(pathResource);
|
|
1612
1612
|
return resolve(root, args, context, info);
|
package/dist/index.js
CHANGED
|
@@ -1479,7 +1479,7 @@ function graphQLAclMiddleware(acl, schemaName, options = null) {
|
|
|
1479
1479
|
const parsedConfig = {
|
|
1480
1480
|
resource: `${schemaName}:${pathResource}`
|
|
1481
1481
|
};
|
|
1482
|
-
const role =
|
|
1482
|
+
const role = (0, __WEBPACK_EXTERNAL_MODULE_es_toolkit_compat_a17790f0__.get)(context, fullOptions.rolePath) ?? null;
|
|
1483
1483
|
const allowed = acl.validate(parsedConfig, role);
|
|
1484
1484
|
if (!allowed) fullOptions.onForbidden(pathResource);
|
|
1485
1485
|
return resolve(root, args, context, info);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiwano/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.3",
|
|
4
4
|
"description": "Kiwano lets you create GraphQL schemas programmatically, enabling you to write dynamic and modular schemas, and preventing you from writing repeating declarations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"source": "./src/ts/index.ts",
|
|
19
18
|
"types": "./dist/types/index.d.ts",
|
|
20
19
|
"import": "./dist/index.js",
|
|
21
20
|
"require": "./dist/index.cjs"
|
|
@@ -28,6 +27,9 @@
|
|
|
28
27
|
"dist"
|
|
29
28
|
],
|
|
30
29
|
"sideEffects": false,
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
31
33
|
"homepage": "https://github.com/kiwano-js/kiwano#readme",
|
|
32
34
|
"repository": {
|
|
33
35
|
"type": "git",
|
|
@@ -36,6 +38,11 @@
|
|
|
36
38
|
"bugs": {
|
|
37
39
|
"url": "https://github.com/kiwano-js/kiwano/issues"
|
|
38
40
|
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "rslib build",
|
|
43
|
+
"dev": "rslib build --watch",
|
|
44
|
+
"test": "vitest run"
|
|
45
|
+
},
|
|
39
46
|
"peerDependencies": {
|
|
40
47
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
41
48
|
"@graphql-tools/schema": "^10.0.3",
|
|
@@ -48,12 +55,6 @@
|
|
|
48
55
|
"@wittignl/js-config": "^1.1.0",
|
|
49
56
|
"@types/node": "^22.13.10",
|
|
50
57
|
"typescript": "^5.8.2",
|
|
51
|
-
"vitest": "^3.0.8"
|
|
52
|
-
"@rsbuild/plugin-source-build": "^1.0.2"
|
|
53
|
-
},
|
|
54
|
-
"scripts": {
|
|
55
|
-
"build": "rslib build",
|
|
56
|
-
"dev": "rslib build --watch",
|
|
57
|
-
"test": "vitest run"
|
|
58
|
+
"vitest": "^3.0.8"
|
|
58
59
|
}
|
|
59
|
-
}
|
|
60
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 kiwano-js
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|