@blocklet/sdk 1.8.68-beta-500af7e5 → 1.8.69-beta-e0666d0d

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.
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getAuthenticatorProps = exports.getDelegatee = exports.getDelegator = exports.getDelegation = void 0;
7
7
  const url_join_1 = __importDefault(require("url-join"));
8
- const jwt_1 = __importDefault(require("@arcblock/jwt"));
9
8
  const wallet_1 = __importDefault(require("@blocklet/meta/lib/wallet"));
9
+ const jwt_1 = require("@arcblock/jwt");
10
10
  const util_1 = require("@blocklet/meta/lib/util");
11
11
  const constants_1 = require("../util/constants");
12
12
  // wraps value in closure or returns closure
@@ -25,7 +25,7 @@ const getDelegatee = () => {
25
25
  };
26
26
  exports.getDelegatee = getDelegatee;
27
27
  const getDelegation = (delegator, delegatee) => {
28
- return jwt_1.default.signV2(delegator.address, delegator.secretKey, {
28
+ return (0, jwt_1.signV2)(delegator.address, delegator.secretKey, {
29
29
  agentDid: `did:abt:${delegatee.address}`,
30
30
  permissions: [
31
31
  {
package/lib/env.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  declare const _default: Readonly<{
2
2
  appId: string;
3
+ appPid: string;
3
4
  appName: string;
4
5
  appDescription: string;
5
6
  appUrl: string;
package/lib/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { TNavigation, TTheme } from '@blocklet/meta/lib/types';
1
2
  import Auth from './service/auth';
2
3
  import Notification from './service/notification';
3
4
  import WalletAuthenticator from './wallet-authenticator';
@@ -32,6 +33,7 @@ declare global {
32
33
  blocklet: {
33
34
  [x: string]: any;
34
35
  appId: string;
36
+ appPid: string;
35
37
  appName: string;
36
38
  appDescription: string;
37
39
  appLogo: string;
@@ -41,8 +43,8 @@ declare global {
41
43
  prefix: string;
42
44
  groupPrefix: string;
43
45
  version: string;
44
- theme: any;
45
- navigation: any[];
46
+ theme: TTheme;
47
+ navigation: TNavigation[];
46
48
  preferences: any;
47
49
  componentMountPoints: MountPoint[];
48
50
  };
package/lib/util/env.d.ts CHANGED
@@ -4,6 +4,7 @@ type BlockletPreferences = {
4
4
  };
5
5
  export declare function parseEnv(env?: NodeJS.ProcessEnv): Readonly<{
6
6
  appId: string;
7
+ appPid: string;
7
8
  appName: string;
8
9
  appDescription: string;
9
10
  appUrl: string;
package/lib/util/env.js CHANGED
@@ -17,6 +17,7 @@ function parseEnv(env = process.env) {
17
17
  }, {});
18
18
  return Object.freeze({
19
19
  appId: env.BLOCKLET_APP_ID,
20
+ appPid: env.BLOCKLET_APP_PID,
20
21
  appName: env.BLOCKLET_APP_NAME,
21
22
  appDescription: env.BLOCKLET_APP_DESCRIPTION,
22
23
  appUrl: env.BLOCKLET_APP_URL,
package/lib/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const version = "1.8.68";
1
+ declare const version = "1.8.69";
2
2
  export { version };
3
3
  declare const _default: {
4
4
  version: string;
package/lib/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- const version = '1.8.68';
4
+ const version = '1.8.69';
5
5
  exports.version = version;
6
6
  exports.default = { version };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.68-beta-500af7e5",
6
+ "version": "1.8.69-beta-e0666d0d",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -26,14 +26,13 @@
26
26
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@abtnode/client": "1.8.68-beta-500af7e5",
30
- "@abtnode/constant": "1.8.68-beta-500af7e5",
31
- "@abtnode/util": "1.8.68-beta-500af7e5",
29
+ "@abtnode/client": "1.8.69-beta-e0666d0d",
30
+ "@abtnode/constant": "1.8.69-beta-e0666d0d",
32
31
  "@arcblock/did-auth": "1.18.57",
33
32
  "@arcblock/jwt": "1.18.57",
34
33
  "@arcblock/ws": "1.18.57",
35
- "@blocklet/constant": "1.8.68-beta-500af7e5",
36
- "@blocklet/meta": "1.8.68-beta-500af7e5",
34
+ "@blocklet/constant": "1.8.69-beta-e0666d0d",
35
+ "@blocklet/meta": "1.8.69-beta-e0666d0d",
37
36
  "@did-connect/authenticator": "^2.1.41",
38
37
  "@did-connect/handler": "^2.1.41",
39
38
  "@nedb/core": "^2.1.5",
@@ -71,5 +70,5 @@
71
70
  "ts-node": "^10.9.1",
72
71
  "typescript": "^4.8.4"
73
72
  },
74
- "gitHead": "9070621373f317a10ff0d289323bf725e30d3521"
73
+ "gitHead": "acf0373591eaa3aff76483edc4e648afc543f1f7"
75
74
  }