@objectid/oid-provider 1.0.7 → 1.0.9

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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "main": "../dist-cjs/api.js",
4
+ "module": "../dist/api.js",
5
+ "types": "../dist/api.d.ts"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "main": "../dist-cjs/core.js",
4
+ "module": "../dist/core.js",
5
+ "types": "../dist/core.d.ts"
6
+ }
package/dist/core.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export type { ObjectIdProviderConfig, TxExecResult, ObjectEdge } from "./types/types";
2
+ export type { ObjectIdApi, TxMethodName, TxMethods, MethodParams, MethodReturn } from "./api";
3
+ export { createObjectIdApi } from "./api";
4
+ export { createOid, type Oid, type OidSession, type ConnectParams, type Network } from "./oid";
5
+ export type { ConfigPackageIds, LoadedConfig } from "./onchain/config";
6
+ export { loadPublicConfig, loadConfigJsonByObjectId, loadEffectiveConfig, findUserConfigObjectId, configType, dlvcProxyUrl, } from "./onchain/config";
7
+ export { DEFAULT_CONFIG_PACKAGE_IDS, DEFAULT_SHARED_CONFIG_OBJECT_ID, type CanonicalNetwork } from "./onchain/defaults";
8
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGtF,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AAG/F,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,UAAU,EACV,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
package/dist/core.js ADDED
@@ -0,0 +1,6 @@
1
+ export { createObjectIdApi } from "./api";
2
+ // OID high-level wrapper
3
+ export { createOid } from "./oid";
4
+ export { loadPublicConfig, loadConfigJsonByObjectId, loadEffectiveConfig, findUserConfigObjectId, configType, dlvcProxyUrl, } from "./onchain/config";
5
+ export { DEFAULT_CONFIG_PACKAGE_IDS, DEFAULT_SHARED_CONFIG_OBJECT_ID } from "./onchain/defaults";
6
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,yBAAyB;AACzB,OAAO,EAAE,SAAS,EAA+D,MAAM,OAAO,CAAC;AAI/F,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,UAAU,EACV,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,+BAA+B,EAAyB,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_SHARED_CONFIG_OBJECT_ID = exports.DEFAULT_CONFIG_PACKAGE_IDS = exports.dlvcProxyUrl = exports.configType = exports.findUserConfigObjectId = exports.loadEffectiveConfig = exports.loadConfigJsonByObjectId = exports.loadPublicConfig = exports.createOid = exports.createObjectIdApi = void 0;
4
+ var api_1 = require("./api");
5
+ Object.defineProperty(exports, "createObjectIdApi", { enumerable: true, get: function () { return api_1.createObjectIdApi; } });
6
+ // OID high-level wrapper
7
+ var oid_1 = require("./oid");
8
+ Object.defineProperty(exports, "createOid", { enumerable: true, get: function () { return oid_1.createOid; } });
9
+ var config_1 = require("./onchain/config");
10
+ Object.defineProperty(exports, "loadPublicConfig", { enumerable: true, get: function () { return config_1.loadPublicConfig; } });
11
+ Object.defineProperty(exports, "loadConfigJsonByObjectId", { enumerable: true, get: function () { return config_1.loadConfigJsonByObjectId; } });
12
+ Object.defineProperty(exports, "loadEffectiveConfig", { enumerable: true, get: function () { return config_1.loadEffectiveConfig; } });
13
+ Object.defineProperty(exports, "findUserConfigObjectId", { enumerable: true, get: function () { return config_1.findUserConfigObjectId; } });
14
+ Object.defineProperty(exports, "configType", { enumerable: true, get: function () { return config_1.configType; } });
15
+ Object.defineProperty(exports, "dlvcProxyUrl", { enumerable: true, get: function () { return config_1.dlvcProxyUrl; } });
16
+ var defaults_1 = require("./onchain/defaults");
17
+ Object.defineProperty(exports, "DEFAULT_CONFIG_PACKAGE_IDS", { enumerable: true, get: function () { return defaults_1.DEFAULT_CONFIG_PACKAGE_IDS; } });
18
+ Object.defineProperty(exports, "DEFAULT_SHARED_CONFIG_OBJECT_ID", { enumerable: true, get: function () { return defaults_1.DEFAULT_SHARED_CONFIG_OBJECT_ID; } });
19
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;AAKA,6BAA0C;AAAjC,wGAAA,iBAAiB,OAAA;AAE1B,yBAAyB;AACzB,6BAA+F;AAAtF,gGAAA,SAAS,OAAA;AAIlB,2CAO0B;AANxB,0GAAA,gBAAgB,OAAA;AAChB,kHAAA,wBAAwB,OAAA;AACxB,6GAAA,mBAAmB,OAAA;AACnB,gHAAA,sBAAsB,OAAA;AACtB,oGAAA,UAAU,OAAA;AACV,sGAAA,YAAY,OAAA;AAEd,+CAAwH;AAA/G,sHAAA,0BAA0B,OAAA;AAAE,2HAAA,+BAA+B,OAAA"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "main": "../dist-cjs/env.js",
4
+ "module": "../dist/env.js",
5
+ "types": "../dist/env.d.ts"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "main": "../dist-cjs/methods.js",
4
+ "module": "../dist/methods.js",
5
+ "types": "../dist/methods.d.ts"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "main": "../dist-cjs/oid/index.js",
4
+ "module": "../dist/oid/index.js",
5
+ "types": "../dist/oid/index.d.ts"
6
+ }
package/package.json CHANGED
@@ -1,60 +1,109 @@
1
- {
2
- "name": "@objectid/oid-provider",
3
- "version": "1.0.7",
4
- "description": "Client-side ObjectID Provider SDK: executes Move calls directly (no backend).",
5
- "license": "MIT",
6
- "type": "module",
7
- "main": "./dist-cjs/index.js",
8
- "module": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
14
- "require": "./dist-cjs/index.js"
15
- },
16
- "./react": {
17
- "types": "./dist/react/index.d.ts",
18
- "import": "./dist/react/index.js",
19
- "require": "./dist-cjs/react/index.js"
20
- }
21
- },
22
- "files": [
23
- "dist",
24
- "dist-cjs",
25
- "README.md"
26
- ],
27
- "sideEffects": false,
28
- "scripts": {
29
- "build": "node scripts/build.mjs",
30
- "prepublishOnly": "npm run build"
31
- },
32
- "publishConfig": {
33
- "registry": "https://registry.npmjs.org/",
34
- "access": "public"
35
- },
36
- "peerDependencies": {
37
- "@iota/identity-wasm": "^1.8.0-beta.2",
38
- "react": "^18.0.0 || ^19.0.0"
39
- },
40
- "peerDependenciesMeta": {
41
- "react": {
42
- "optional": true
43
- }
44
- },
45
- "dependencies": {
46
- "@iota/iota-sdk": "^1.0.0",
47
- "axios": "^1.13.2",
48
- "open-location-code-typescript": "^1.5.0"
49
- },
50
- "devDependencies": {
51
- "@iota/identity-wasm": "^1.8.0-beta.2",
52
- "@types/react": "^18.3.5",
53
- "react": "^18.3.1",
54
- "typescript": "^5.5.4"
55
- },
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/ObjectID-io/oid-provider.git"
59
- }
60
- }
1
+ {
2
+ "name": "@objectid/oid-provider",
3
+ "version": "1.0.9",
4
+ "description": "Client-side ObjectID Provider SDK: executes Move calls directly (no backend).",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist-cjs/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist-cjs/index.js"
15
+ },
16
+ "./react": {
17
+ "types": "./dist/react/index.d.ts",
18
+ "import": "./dist/react/index.js",
19
+ "require": "./dist-cjs/react/index.js"
20
+ },
21
+ "./core": {
22
+ "types": "./dist/core.d.ts",
23
+ "import": "./dist/core.js",
24
+ "require": "./dist-cjs/core.js"
25
+ },
26
+ "./api": {
27
+ "types": "./dist/api.d.ts",
28
+ "import": "./dist/api.js",
29
+ "require": "./dist-cjs/api.js"
30
+ },
31
+ "./methods": {
32
+ "types": "./dist/methods.d.ts",
33
+ "import": "./dist/methods.js",
34
+ "require": "./dist-cjs/methods.js"
35
+ },
36
+ "./env": {
37
+ "types": "./dist/env.d.ts",
38
+ "import": "./dist/env.js",
39
+ "require": "./dist-cjs/env.js"
40
+ },
41
+ "./oid": {
42
+ "types": "./dist/oid/index.d.ts",
43
+ "import": "./dist/oid/index.js",
44
+ "require": "./dist-cjs/oid/index.js"
45
+ }
46
+ },
47
+ "files": [
48
+ "README.md",
49
+ "api",
50
+ "core",
51
+ "dist",
52
+ "dist-cjs",
53
+ "env",
54
+ "methods",
55
+ "oid"
56
+ ],
57
+ "sideEffects": false,
58
+ "scripts": {
59
+ "build": "node scripts/build.mjs",
60
+ "prepublishOnly": "npm run build"
61
+ },
62
+ "publishConfig": {
63
+ "registry": "https://registry.npmjs.org/",
64
+ "access": "public"
65
+ },
66
+ "peerDependencies": {
67
+ "@iota/identity-wasm": "^1.8.0-beta.2",
68
+ "react": "^18.0.0 || ^19.0.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "react": {
72
+ "optional": true
73
+ }
74
+ },
75
+ "dependencies": {
76
+ "@iota/iota-sdk": "^1.0.0",
77
+ "axios": "^1.13.2",
78
+ "open-location-code-typescript": "^1.5.0"
79
+ },
80
+ "devDependencies": {
81
+ "@iota/identity-wasm": "^1.8.0-beta.2",
82
+ "@types/react": "^18.3.5",
83
+ "react": "^18.3.1",
84
+ "typescript": "^5.5.4"
85
+ },
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "git+https://github.com/ObjectID-io/oid-provider.git"
89
+ },
90
+ "typesVersions": {
91
+ "*": {
92
+ "core": [
93
+ "dist/core.d.ts"
94
+ ],
95
+ "api": [
96
+ "dist/api.d.ts"
97
+ ],
98
+ "methods": [
99
+ "dist/methods.d.ts"
100
+ ],
101
+ "env": [
102
+ "dist/env.d.ts"
103
+ ],
104
+ "oid": [
105
+ "dist/oid/index.d.ts"
106
+ ]
107
+ }
108
+ }
109
+ }