@logto/core-kit 1.0.0-beta.11 → 1.0.0-beta.13
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/lib/scope.d.ts
CHANGED
package/lib/scope.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.userClaims = exports.userinfoClaims = exports.idTokenClaims = exports.UserScope = exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(
|
|
3
|
+
exports.userClaims = exports.userinfoClaims = exports.idTokenClaims = exports.UserScope = exports.ReservedScope = void 0;
|
|
4
|
+
var ReservedScope;
|
|
5
|
+
(function (ReservedScope) {
|
|
6
|
+
ReservedScope["OpenId"] = "openid";
|
|
7
|
+
ReservedScope["OfflineAccess"] = "offline_access";
|
|
8
|
+
})(ReservedScope = exports.ReservedScope || (exports.ReservedScope = {}));
|
|
9
9
|
/**
|
|
10
10
|
* Scopes for ID Token and Userinfo Endpoint.
|
|
11
11
|
*/
|
package/lib/utilities/index.d.ts
CHANGED
package/lib/utilities/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./file"), exports);
|
|
18
|
-
__exportStar(require("./react-router"), exports);
|
|
19
18
|
__exportStar(require("./color"), exports);
|
|
20
19
|
__exportStar(require("./string"), exports);
|
|
21
20
|
__exportStar(require("./zod"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/core-kit",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"lint": "eslint --ext .ts src",
|
|
17
17
|
"lint:report": "pnpm lint --format json --output-file report.json",
|
|
18
18
|
"prepack": "pnpm build",
|
|
19
|
-
"stylelint": "stylelint \"scss/**/*.scss\""
|
|
19
|
+
"stylelint": "stylelint \"scss/**/*.scss\"",
|
|
20
|
+
"test": "jest",
|
|
21
|
+
"test:coverage": "jest --silent --coverage"
|
|
20
22
|
},
|
|
21
23
|
"engines": {
|
|
22
24
|
"node": "^16.0.0"
|
|
@@ -27,23 +29,27 @@
|
|
|
27
29
|
"zod": "^3.18.0"
|
|
28
30
|
},
|
|
29
31
|
"devDependencies": {
|
|
32
|
+
"@jest/types": "^29.0.3",
|
|
30
33
|
"@silverhand/eslint-config": "1.0.0",
|
|
31
34
|
"@silverhand/eslint-config-react": "1.0.0",
|
|
32
|
-
"@silverhand/essentials": "^1.2.
|
|
35
|
+
"@silverhand/essentials": "^1.2.1",
|
|
33
36
|
"@silverhand/ts-config": "1.0.0",
|
|
34
|
-
"@silverhand/ts-config-react": "1.0.0",
|
|
35
37
|
"@types/color": "^3.0.3",
|
|
38
|
+
"@types/jest": "^29.0.3",
|
|
36
39
|
"@types/node": "^16.3.1",
|
|
37
40
|
"@types/react": "^18.0.20",
|
|
38
41
|
"eslint": "^8.21.0",
|
|
42
|
+
"jest": "^29.0.3",
|
|
43
|
+
"jest-matcher-specific-error": "^1.0.0",
|
|
39
44
|
"lint-staged": "^13.0.0",
|
|
40
45
|
"postcss": "^8.4.6",
|
|
41
46
|
"prettier": "^2.7.1",
|
|
42
47
|
"stylelint": "^14.9.1",
|
|
48
|
+
"ts-jest": "^29.0.1",
|
|
43
49
|
"typescript": "^4.7.4"
|
|
44
50
|
},
|
|
45
51
|
"eslintConfig": {
|
|
46
|
-
"extends": "@silverhand
|
|
52
|
+
"extends": "@silverhand"
|
|
47
53
|
},
|
|
48
54
|
"stylelint": {
|
|
49
55
|
"extends": "@silverhand/eslint-config-react/.stylelintrc"
|
|
@@ -52,5 +58,5 @@
|
|
|
52
58
|
"publishConfig": {
|
|
53
59
|
"access": "public"
|
|
54
60
|
},
|
|
55
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "e411efdb15370ecc8d85f634f204492ba0beb379"
|
|
56
62
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getBasename: (prefix: string, developmentPort: string) => string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBasename = void 0;
|
|
4
|
-
const getBasename = (prefix, developmentPort) => {
|
|
5
|
-
const isBasenameNeeded = process.env.NODE_ENV !== 'development' || process.env.PORT === developmentPort;
|
|
6
|
-
return isBasenameNeeded ? '/' + prefix : '';
|
|
7
|
-
};
|
|
8
|
-
exports.getBasename = getBasename;
|