@kynesyslabs/demosdk 2.8.7 → 2.8.8
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,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TLSNotary Auto-Init Module
|
|
3
|
+
*
|
|
4
|
+
* Provides automatic WASM initialization with bundled files from the SDK.
|
|
5
|
+
* This module simplifies setup by handling WASM file paths automatically.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module tlsnotary/auto-init
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* // Simple usage - WASM files must be copied to your build output
|
|
13
|
+
* import { initTlsn } from '@kynesyslabs/demosdk/tlsnotary';
|
|
14
|
+
*
|
|
15
|
+
* // Initialize with automatic WASM loading
|
|
16
|
+
* await initTlsn({ wasmBasePath: '/tlsn-wasm/' });
|
|
17
|
+
*
|
|
18
|
+
* // Now you can use TLSNotary
|
|
19
|
+
* const tlsn = new TLSNotary({ notaryUrl: '...' });
|
|
20
|
+
* await tlsn.initialize();
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example With webpack helper for automatic setup
|
|
24
|
+
* ```javascript
|
|
25
|
+
* // webpack.config.js
|
|
26
|
+
* const { mergeTlsnWebpackConfig } = require('@kynesyslabs/demosdk/tlsnotary/webpack');
|
|
27
|
+
*
|
|
28
|
+
* module.exports = mergeTlsnWebpackConfig({
|
|
29
|
+
* // your config
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
import init, { type LoggingLevel } from "tlsn-js";
|
|
34
|
+
/**
|
|
35
|
+
* Configuration options for auto-initialization
|
|
36
|
+
*/
|
|
37
|
+
export interface AutoInitOptions {
|
|
38
|
+
/**
|
|
39
|
+
* Base path where WASM files are served from.
|
|
40
|
+
* This should be the URL path (not filesystem path) where you've copied
|
|
41
|
+
* the WASM files from the SDK.
|
|
42
|
+
*
|
|
43
|
+
* @default '/' (root of your web app)
|
|
44
|
+
*
|
|
45
|
+
* @example '/tlsn-wasm/'
|
|
46
|
+
* @example '/assets/wasm/'
|
|
47
|
+
*/
|
|
48
|
+
wasmBasePath?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Logging level for WASM initialization
|
|
51
|
+
* @default 'Info'
|
|
52
|
+
*/
|
|
53
|
+
loggingLevel?: LoggingLevel;
|
|
54
|
+
/**
|
|
55
|
+
* Hardware concurrency for WASM threads
|
|
56
|
+
* @default navigator.hardwareConcurrency
|
|
57
|
+
*/
|
|
58
|
+
hardwareConcurrency?: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* WASM file manifest - these files must be available at wasmBasePath
|
|
62
|
+
*/
|
|
63
|
+
export declare const WASM_FILES: {
|
|
64
|
+
/** Main WASM binary */
|
|
65
|
+
readonly wasm: "96d038089797746d7695.wasm";
|
|
66
|
+
/** Alternative WASM binary name (for compatibility) */
|
|
67
|
+
readonly wasmAlt: "tlsn_wasm_bg.wasm";
|
|
68
|
+
/** Main library JS */
|
|
69
|
+
readonly lib: "lib.js";
|
|
70
|
+
/** WASM loader JS */
|
|
71
|
+
readonly wasmLoader: "tlsn_wasm.js";
|
|
72
|
+
/** Spawn helper JS */
|
|
73
|
+
readonly spawn: "spawn.js";
|
|
74
|
+
/** Worker helper JS */
|
|
75
|
+
readonly worker: "a6de6b189c13ad309102.js";
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Check if WASM files are accessible at the given path
|
|
79
|
+
*
|
|
80
|
+
* @param basePath - Base URL path to check
|
|
81
|
+
* @returns Promise resolving to true if files are accessible
|
|
82
|
+
*/
|
|
83
|
+
export declare function checkWasmAvailability(basePath?: string): Promise<{
|
|
84
|
+
available: boolean;
|
|
85
|
+
missingFiles: string[];
|
|
86
|
+
error?: string;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Initialize TLSNotary WASM module
|
|
90
|
+
*
|
|
91
|
+
* This function initializes the underlying tlsn-js WASM module.
|
|
92
|
+
* The WASM files must be accessible from your web server.
|
|
93
|
+
*
|
|
94
|
+
* **Setup Options:**
|
|
95
|
+
*
|
|
96
|
+
* 1. **Using webpack helper (recommended)**:
|
|
97
|
+
* ```javascript
|
|
98
|
+
* const { mergeTlsnWebpackConfig } = require('@kynesyslabs/demosdk/tlsnotary/webpack');
|
|
99
|
+
* module.exports = mergeTlsnWebpackConfig({ ... });
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* 2. **Manual copy**: Copy WASM files from `node_modules/@kynesyslabs/demosdk/build/tlsnotary/wasm/`
|
|
103
|
+
* to your build output directory.
|
|
104
|
+
*
|
|
105
|
+
* @param options - Initialization options
|
|
106
|
+
* @throws Error if WASM initialization fails
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```typescript
|
|
110
|
+
* import { initTlsn } from '@kynesyslabs/demosdk/tlsnotary';
|
|
111
|
+
*
|
|
112
|
+
* // Initialize before using TLSNotary
|
|
113
|
+
* await initTlsn({
|
|
114
|
+
* wasmBasePath: '/tlsn-wasm/', // Where you copied the WASM files
|
|
115
|
+
* loggingLevel: 'Info',
|
|
116
|
+
* });
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
export declare function initTlsn(options?: AutoInitOptions): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Get the path to WASM files bundled with the SDK.
|
|
122
|
+
*
|
|
123
|
+
* This is the filesystem path (not URL) to the WASM files in node_modules.
|
|
124
|
+
* Use this with your bundler's copy plugin.
|
|
125
|
+
*
|
|
126
|
+
* @returns Filesystem path to WASM directory
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```javascript
|
|
130
|
+
* // In webpack.config.js
|
|
131
|
+
* const { getWasmSourcePath } = require('@kynesyslabs/demosdk/tlsnotary/auto-init');
|
|
132
|
+
* const CopyPlugin = require('copy-webpack-plugin');
|
|
133
|
+
*
|
|
134
|
+
* plugins: [
|
|
135
|
+
* new CopyPlugin({
|
|
136
|
+
* patterns: [{ from: getWasmSourcePath(), to: 'tlsn-wasm' }]
|
|
137
|
+
* })
|
|
138
|
+
* ]
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare function getWasmSourcePath(): string;
|
|
142
|
+
/**
|
|
143
|
+
* Re-export the underlying init function for advanced usage
|
|
144
|
+
*/
|
|
145
|
+
export { init as rawInit };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* TLSNotary Auto-Init Module
|
|
4
|
+
*
|
|
5
|
+
* Provides automatic WASM initialization with bundled files from the SDK.
|
|
6
|
+
* This module simplifies setup by handling WASM file paths automatically.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module tlsnotary/auto-init
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // Simple usage - WASM files must be copied to your build output
|
|
14
|
+
* import { initTlsn } from '@kynesyslabs/demosdk/tlsnotary';
|
|
15
|
+
*
|
|
16
|
+
* // Initialize with automatic WASM loading
|
|
17
|
+
* await initTlsn({ wasmBasePath: '/tlsn-wasm/' });
|
|
18
|
+
*
|
|
19
|
+
* // Now you can use TLSNotary
|
|
20
|
+
* const tlsn = new TLSNotary({ notaryUrl: '...' });
|
|
21
|
+
* await tlsn.initialize();
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example With webpack helper for automatic setup
|
|
25
|
+
* ```javascript
|
|
26
|
+
* // webpack.config.js
|
|
27
|
+
* const { mergeTlsnWebpackConfig } = require('@kynesyslabs/demosdk/tlsnotary/webpack');
|
|
28
|
+
*
|
|
29
|
+
* module.exports = mergeTlsnWebpackConfig({
|
|
30
|
+
* // your config
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.rawInit = exports.WASM_FILES = void 0;
|
|
39
|
+
exports.checkWasmAvailability = checkWasmAvailability;
|
|
40
|
+
exports.initTlsn = initTlsn;
|
|
41
|
+
exports.getWasmSourcePath = getWasmSourcePath;
|
|
42
|
+
const tlsn_js_1 = __importDefault(require("tlsn-js"));
|
|
43
|
+
exports.rawInit = tlsn_js_1.default;
|
|
44
|
+
/**
|
|
45
|
+
* WASM file manifest - these files must be available at wasmBasePath
|
|
46
|
+
*/
|
|
47
|
+
exports.WASM_FILES = {
|
|
48
|
+
/** Main WASM binary */
|
|
49
|
+
wasm: "96d038089797746d7695.wasm",
|
|
50
|
+
/** Alternative WASM binary name (for compatibility) */
|
|
51
|
+
wasmAlt: "tlsn_wasm_bg.wasm",
|
|
52
|
+
/** Main library JS */
|
|
53
|
+
lib: "lib.js",
|
|
54
|
+
/** WASM loader JS */
|
|
55
|
+
wasmLoader: "tlsn_wasm.js",
|
|
56
|
+
/** Spawn helper JS */
|
|
57
|
+
spawn: "spawn.js",
|
|
58
|
+
/** Worker helper JS */
|
|
59
|
+
worker: "a6de6b189c13ad309102.js",
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Check if WASM files are accessible at the given path
|
|
63
|
+
*
|
|
64
|
+
* @param basePath - Base URL path to check
|
|
65
|
+
* @returns Promise resolving to true if files are accessible
|
|
66
|
+
*/
|
|
67
|
+
async function checkWasmAvailability(basePath = "/") {
|
|
68
|
+
const normalizedPath = basePath.endsWith("/") ? basePath : `${basePath}/`;
|
|
69
|
+
const criticalFiles = [exports.WASM_FILES.wasm, exports.WASM_FILES.wasmLoader];
|
|
70
|
+
const missingFiles = [];
|
|
71
|
+
for (const file of criticalFiles) {
|
|
72
|
+
try {
|
|
73
|
+
const response = await fetch(`${normalizedPath}${file}`, {
|
|
74
|
+
method: "HEAD",
|
|
75
|
+
});
|
|
76
|
+
if (!response.ok) {
|
|
77
|
+
missingFiles.push(file);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
missingFiles.push(file);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
available: missingFiles.length === 0,
|
|
86
|
+
missingFiles,
|
|
87
|
+
error: missingFiles.length > 0
|
|
88
|
+
? `Missing WASM files at ${normalizedPath}: ${missingFiles.join(", ")}. ` +
|
|
89
|
+
"Use the webpack helper from '@kynesyslabs/demosdk/tlsnotary/webpack' " +
|
|
90
|
+
"to automatically copy WASM files to your build output."
|
|
91
|
+
: undefined,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Initialize TLSNotary WASM module
|
|
96
|
+
*
|
|
97
|
+
* This function initializes the underlying tlsn-js WASM module.
|
|
98
|
+
* The WASM files must be accessible from your web server.
|
|
99
|
+
*
|
|
100
|
+
* **Setup Options:**
|
|
101
|
+
*
|
|
102
|
+
* 1. **Using webpack helper (recommended)**:
|
|
103
|
+
* ```javascript
|
|
104
|
+
* const { mergeTlsnWebpackConfig } = require('@kynesyslabs/demosdk/tlsnotary/webpack');
|
|
105
|
+
* module.exports = mergeTlsnWebpackConfig({ ... });
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* 2. **Manual copy**: Copy WASM files from `node_modules/@kynesyslabs/demosdk/build/tlsnotary/wasm/`
|
|
109
|
+
* to your build output directory.
|
|
110
|
+
*
|
|
111
|
+
* @param options - Initialization options
|
|
112
|
+
* @throws Error if WASM initialization fails
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```typescript
|
|
116
|
+
* import { initTlsn } from '@kynesyslabs/demosdk/tlsnotary';
|
|
117
|
+
*
|
|
118
|
+
* // Initialize before using TLSNotary
|
|
119
|
+
* await initTlsn({
|
|
120
|
+
* wasmBasePath: '/tlsn-wasm/', // Where you copied the WASM files
|
|
121
|
+
* loggingLevel: 'Info',
|
|
122
|
+
* });
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
async function initTlsn(options = {}) {
|
|
126
|
+
const { loggingLevel = "Info", hardwareConcurrency } = options;
|
|
127
|
+
// Note: tlsn-js's init() function looks for WASM files relative to the
|
|
128
|
+
// current page's base URL. The wasmBasePath option in our config is meant
|
|
129
|
+
// to help users understand where to place files, but the actual loading
|
|
130
|
+
// is handled by tlsn-js's bundled webpack config.
|
|
131
|
+
//
|
|
132
|
+
// Users need to ensure WASM files are at the root (or configure their
|
|
133
|
+
// bundler to place them where tlsn-js expects them).
|
|
134
|
+
await (0, tlsn_js_1.default)({
|
|
135
|
+
loggingLevel,
|
|
136
|
+
hardwareConcurrency,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Get the path to WASM files bundled with the SDK.
|
|
141
|
+
*
|
|
142
|
+
* This is the filesystem path (not URL) to the WASM files in node_modules.
|
|
143
|
+
* Use this with your bundler's copy plugin.
|
|
144
|
+
*
|
|
145
|
+
* @returns Filesystem path to WASM directory
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```javascript
|
|
149
|
+
* // In webpack.config.js
|
|
150
|
+
* const { getWasmSourcePath } = require('@kynesyslabs/demosdk/tlsnotary/auto-init');
|
|
151
|
+
* const CopyPlugin = require('copy-webpack-plugin');
|
|
152
|
+
*
|
|
153
|
+
* plugins: [
|
|
154
|
+
* new CopyPlugin({
|
|
155
|
+
* patterns: [{ from: getWasmSourcePath(), to: 'tlsn-wasm' }]
|
|
156
|
+
* })
|
|
157
|
+
* ]
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
function getWasmSourcePath() {
|
|
161
|
+
// This returns the path relative to where this file is in the build output
|
|
162
|
+
// In build/tlsnotary/auto-init.js, WASM files are in build/tlsnotary/wasm/
|
|
163
|
+
return require("path").resolve(__dirname, "wasm");
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=auto-init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-init.js","sourceRoot":"","sources":["../../../src/tlsnotary/auto-init.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;AAyDH,sDAgCC;AAiCD,4BAeC;AAuBD,8CAIC;AAlKD,sDAAiD;AAuKhC,kBAvKV,iBAAI,CAuKa;AAxIxB;;GAEG;AACU,QAAA,UAAU,GAAG;IACtB,uBAAuB;IACvB,IAAI,EAAE,2BAA2B;IACjC,uDAAuD;IACvD,OAAO,EAAE,mBAAmB;IAC5B,sBAAsB;IACtB,GAAG,EAAE,QAAQ;IACb,qBAAqB;IACrB,UAAU,EAAE,cAAc;IAC1B,sBAAsB;IACtB,KAAK,EAAE,UAAU;IACjB,uBAAuB;IACvB,MAAM,EAAE,yBAAyB;CAC3B,CAAA;AAEV;;;;;GAKG;AACI,KAAK,UAAU,qBAAqB,CAAC,WAAmB,GAAG;IAK9D,MAAM,cAAc,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,CAAA;IACzE,MAAM,aAAa,GAAG,CAAC,kBAAU,CAAC,IAAI,EAAE,kBAAU,CAAC,UAAU,CAAC,CAAA;IAC9D,MAAM,YAAY,GAAa,EAAE,CAAA;IAEjC,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;QAC/B,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,cAAc,GAAG,IAAI,EAAE,EAAE;gBACrD,MAAM,EAAE,MAAM;aACjB,CAAC,CAAA;YACF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;gBACf,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC3B,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACL,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,CAAC;IACL,CAAC;IAED,OAAO;QACH,SAAS,EAAE,YAAY,CAAC,MAAM,KAAK,CAAC;QACpC,YAAY;QACZ,KAAK,EACD,YAAY,CAAC,MAAM,GAAG,CAAC;YACnB,CAAC,CAAC,yBAAyB,cAAc,KAAK,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;gBACvE,uEAAuE;gBACvE,wDAAwD;YAC1D,CAAC,CAAC,SAAS;KACtB,CAAA;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACI,KAAK,UAAU,QAAQ,CAAC,UAA2B,EAAE;IACxD,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAA;IAE9D,uEAAuE;IACvE,0EAA0E;IAC1E,wEAAwE;IACxE,kDAAkD;IAClD,EAAE;IACF,sEAAsE;IACtE,qDAAqD;IAErD,MAAM,IAAA,iBAAI,EAAC;QACP,YAAY;QACZ,mBAAmB;KACtB,CAAC,CAAA;AACN,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,iBAAiB;IAC7B,2EAA2E;IAC3E,2EAA2E;IAC3E,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;AACrD,CAAC"}
|
|
@@ -58,6 +58,7 @@ export { TLSNotaryService, type AttestationTokenResponse, type StoreProofRespons
|
|
|
58
58
|
export type { TLSNotaryConfig, TLSNotaryDiscoveryInfo, AttestRequest, AttestResult, AttestOptions, CommitRanges, Range, PresentationJSON, VerificationResult, TranscriptInfo, StatusCallback, ProxyRequestResponse, ProxyRequestError, } from "./types";
|
|
59
59
|
export { default } from "./TLSNotary";
|
|
60
60
|
export { calculateStorageFee } from "./helpers";
|
|
61
|
+
export { initTlsn, checkWasmAvailability, getWasmSourcePath, WASM_FILES, type AutoInitOptions, } from "./auto-init";
|
|
61
62
|
/**
|
|
62
63
|
* Re-export tlsn-js classes and functions for convenience.
|
|
63
64
|
*
|
package/build/tlsnotary/index.js
CHANGED
|
@@ -58,7 +58,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
58
58
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
59
59
|
};
|
|
60
60
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61
|
-
exports.Transcript = exports.NotaryServer = exports.Presentation = exports.Prover = exports.init = exports.calculateStorageFee = exports.default = exports.TLSNotaryService = exports.TLSNotary = void 0;
|
|
61
|
+
exports.Transcript = exports.NotaryServer = exports.Presentation = exports.Prover = exports.init = exports.WASM_FILES = exports.getWasmSourcePath = exports.checkWasmAvailability = exports.initTlsn = exports.calculateStorageFee = exports.default = exports.TLSNotaryService = exports.TLSNotary = void 0;
|
|
62
62
|
// Core TLSNotary class for attestation
|
|
63
63
|
var TLSNotary_1 = require("./TLSNotary");
|
|
64
64
|
Object.defineProperty(exports, "TLSNotary", { enumerable: true, get: function () { return TLSNotary_1.TLSNotary; } });
|
|
@@ -71,6 +71,12 @@ Object.defineProperty(exports, "default", { enumerable: true, get: function () {
|
|
|
71
71
|
// Helper function exports
|
|
72
72
|
var helpers_1 = require("./helpers");
|
|
73
73
|
Object.defineProperty(exports, "calculateStorageFee", { enumerable: true, get: function () { return helpers_1.calculateStorageFee; } });
|
|
74
|
+
// Auto-init helper for simplified WASM setup
|
|
75
|
+
var auto_init_1 = require("./auto-init");
|
|
76
|
+
Object.defineProperty(exports, "initTlsn", { enumerable: true, get: function () { return auto_init_1.initTlsn; } });
|
|
77
|
+
Object.defineProperty(exports, "checkWasmAvailability", { enumerable: true, get: function () { return auto_init_1.checkWasmAvailability; } });
|
|
78
|
+
Object.defineProperty(exports, "getWasmSourcePath", { enumerable: true, get: function () { return auto_init_1.getWasmSourcePath; } });
|
|
79
|
+
Object.defineProperty(exports, "WASM_FILES", { enumerable: true, get: function () { return auto_init_1.WASM_FILES; } });
|
|
74
80
|
/**
|
|
75
81
|
* Re-export tlsn-js classes and functions for convenience.
|
|
76
82
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tlsnotary/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;;;;;;AAEH,uCAAuC;AACvC,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAElB,2DAA2D;AAC3D,uDAU2B;AATvB,oHAAA,gBAAgB,OAAA;AA4BpB,oBAAoB;AACpB,yCAAqC;AAA5B,qHAAA,OAAO,OAAA;AAEhB,0BAA0B;AAC1B,qCAA+C;AAAtC,8GAAA,mBAAmB,OAAA;AAE5B;;;;;;;;GAQG;AACH,mCAegB;AAdZ,sBAAsB;AACtB,gHAAA,OAAO,OAAQ;AACf,eAAe;AACf,iGAAA,MAAM,OAAA;AACN,uGAAA,YAAY,OAAA;AACZ,uGAAA,YAAY,OAAA;AACZ,qGAAA,UAAU,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tlsnotary/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;;;;;;AAEH,uCAAuC;AACvC,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAElB,2DAA2D;AAC3D,uDAU2B;AATvB,oHAAA,gBAAgB,OAAA;AA4BpB,oBAAoB;AACpB,yCAAqC;AAA5B,qHAAA,OAAO,OAAA;AAEhB,0BAA0B;AAC1B,qCAA+C;AAAtC,8GAAA,mBAAmB,OAAA;AAE5B,6CAA6C;AAC7C,yCAMoB;AALhB,qGAAA,QAAQ,OAAA;AACR,kHAAA,qBAAqB,OAAA;AACrB,8GAAA,iBAAiB,OAAA;AACjB,uGAAA,UAAU,OAAA;AAId;;;;;;;;GAQG;AACH,mCAegB;AAdZ,sBAAsB;AACtB,gHAAA,OAAO,OAAQ;AACf,eAAe;AACf,iGAAA,MAAM,OAAA;AACN,uGAAA,YAAY,OAAA;AACZ,uGAAA,YAAY,OAAA;AACZ,qGAAA,UAAU,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kynesyslabs/demosdk",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.8",
|
|
4
4
|
"description": "Demosdk is a JavaScript/TypeScript SDK that provides a unified interface for interacting with Demos network",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"./tlsnotary": "./build/tlsnotary/index.js",
|
|
60
60
|
"./tlsnotary/service": "./build/tlsnotary/service.js",
|
|
61
61
|
"./tlsnotary/webpack": "./build/tlsnotary/webpack.js",
|
|
62
|
+
"./tlsnotary/auto-init": "./build/tlsnotary/auto-init.js",
|
|
62
63
|
"./tlsnotary/wasm/*": "./build/tlsnotary/wasm/*"
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|