@blocklet/aigne-hub 0.7.0 → 0.7.1

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.
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.aiKitApi = void 0;
27
37
  exports.catchAndRethrowUpstreamError = catchAndRethrowUpstreamError;
@@ -20,7 +20,7 @@ const ADMIN_ROLES = ['owner', 'admin'];
20
20
  exports.ensureAdmin = (0, middlewares_1.auth)({ roles: ADMIN_ROLES });
21
21
  const signer = (0, mcrypto_1.getSigner)((0, did_1.DidType)('default').pk);
22
22
  const getStringify = ({ appId, timestamp, data, userDid, }) => {
23
- return (0, json_stable_stringify_1.default)({ appId, timestamp, data: data || {}, userDid });
23
+ return (0, json_stable_stringify_1.default)({ appId, timestamp, data: data || {}, userDid }) || '';
24
24
  };
25
25
  function hashData({ appId, timestamp, data, userDid, }) {
26
26
  const hasher = (0, mcrypto_1.getHasher)((0, did_1.DidType)('default').hash);
@@ -11,7 +11,7 @@ const ADMIN_ROLES = ['owner', 'admin'];
11
11
  export const ensureAdmin = auth({ roles: ADMIN_ROLES });
12
12
  const signer = getSigner(DidType('default').pk);
13
13
  const getStringify = ({ appId, timestamp, data, userDid, }) => {
14
- return stringify({ appId, timestamp, data: data || {}, userDid });
14
+ return stringify({ appId, timestamp, data: data || {}, userDid }) || '';
15
15
  };
16
16
  function hashData({ appId, timestamp, data, userDid, }) {
17
17
  const hasher = getHasher(DidType('default').hash);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/aigne-hub",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "The react.js component library for AIGNE Hub",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -103,9 +103,9 @@
103
103
  "@arcblock/did": "^1.27.15",
104
104
  "@arcblock/ux": "^3.2.15",
105
105
  "@blocklet/error": "0.3.5",
106
- "@blocklet/logger": "^1.17.6-beta-20251216-081847-bf91c4db",
106
+ "@blocklet/logger": "^1.17.6-beta-20251217-011553-818fcc8e",
107
107
  "@blocklet/payment-js": "^1.23.2",
108
- "@blocklet/sdk": "^1.17.6-beta-20251216-081847-bf91c4db",
108
+ "@blocklet/sdk": "^1.17.6-beta-20251217-011553-818fcc8e",
109
109
  "@emotion/css": "^11.13.5",
110
110
  "@emotion/react": "^11.14.0",
111
111
  "@emotion/styled": "^11.14.1",