@logto/js 0.1.2 → 0.1.7

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.
@@ -8,6 +8,7 @@ const parseUriParameters = (uri) => {
8
8
  return new URLSearchParams(queryString);
9
9
  };
10
10
  exports.parseUriParameters = parseUriParameters;
11
+ // eslint-disable-next-line complexity
11
12
  const verifyAndParseCodeFromCallbackUri = (callbackUri, redirectUri, state) => {
12
13
  if (!callbackUri.startsWith(redirectUri)) {
13
14
  throw new errors_1.LogtoError('callback_uri_verification.redirect_uri_mismatched');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/js",
3
- "version": "0.1.2",
3
+ "version": "0.1.7",
4
4
  "main": "./lib/index.js",
5
5
  "exports": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -8,6 +8,11 @@
8
8
  "lib"
9
9
  ],
10
10
  "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/logto-io/js.git",
14
+ "directory": "packages/js"
15
+ },
11
16
  "scripts": {
12
17
  "dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
13
18
  "preinstall": "npx only-allow pnpm",
@@ -16,7 +21,7 @@
16
21
  "lint": "eslint --ext .ts src",
17
22
  "test": "jest",
18
23
  "test:coverage": "jest --silent --env=jsdom && jest --silent --coverage",
19
- "prepack": "pnpm test && pnpm build"
24
+ "prepack": "pnpm test"
20
25
  },
21
26
  "dependencies": {
22
27
  "@silverhand/essentials": "^1.1.6",
@@ -29,15 +34,15 @@
29
34
  "devDependencies": {
30
35
  "@jest/types": "^27.5.1",
31
36
  "@peculiar/webcrypto": "^1.1.7",
32
- "@silverhand/eslint-config": "^0.9.1",
33
- "@silverhand/ts-config": "^0.9.1",
37
+ "@silverhand/eslint-config": "^0.14.0",
38
+ "@silverhand/ts-config": "^0.14.0",
34
39
  "@types/jest": "^27.4.1",
35
40
  "@types/lodash.get": "^4.4.6",
36
41
  "@types/node": "^17.0.19",
37
42
  "eslint": "^8.9.0",
38
43
  "jest": "^27.5.1",
39
44
  "jest-matcher-specific-error": "^1.0.0",
40
- "lint-staged": "^11.1.2",
45
+ "lint-staged": "^12.0.0",
41
46
  "nock": "^13.1.3",
42
47
  "node-fetch": "^2.6.7",
43
48
  "prettier": "^2.3.2",
@@ -53,5 +58,5 @@
53
58
  "publishConfig": {
54
59
  "access": "public"
55
60
  },
56
- "gitHead": "74bd01ec73a5215b26a96f426b874de9ad474dae"
61
+ "gitHead": "45f2ad06fa069eac66016696703b1a37e1509ffb"
57
62
  }