@naylence/runtime 0.3.5-test.902 → 0.3.5-test.904
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.
- package/dist/browser/index.cjs +9 -0
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.mjs +9 -1
- package/dist/browser/index.mjs.map +1 -1
- package/dist/cjs/naylence/fame/util/runtime-version.js +15 -332
- package/dist/cjs/naylence/fame/util/runtime-version.js.map +1 -1
- package/dist/cjs/node.js +1 -0
- package/dist/cjs/node.js.map +1 -1
- package/dist/cjs/runtime-isomorphic.js +4 -1
- package/dist/cjs/runtime-isomorphic.js.map +1 -1
- package/dist/cjs/version.js +11 -0
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/naylence/fame/util/runtime-version.js +15 -299
- package/dist/esm/naylence/fame/util/runtime-version.js.map +1 -1
- package/dist/esm/node.js +1 -0
- package/dist/esm/node.js.map +1 -1
- package/dist/esm/runtime-isomorphic.js +2 -0
- package/dist/esm/runtime-isomorphic.js.map +1 -1
- package/dist/esm/version.js +8 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/node/index.cjs +9 -0
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +9 -1
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.cjs +2512 -989
- package/dist/node/node.cjs.map +1 -1
- package/dist/node/node.mjs +2511 -989
- package/dist/node/node.mjs.map +1 -1
- package/dist/types/naylence/fame/util/runtime-version.d.ts +12 -0
- package/dist/types/naylence/fame/util/runtime-version.d.ts.map +1 -1
- package/dist/types/node.d.ts +1 -0
- package/dist/types/node.d.ts.map +1 -1
- package/dist/types/runtime-isomorphic.d.ts +1 -0
- package/dist/types/runtime-isomorphic.d.ts.map +1 -1
- package/dist/types/version.d.ts +6 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -1,341 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
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
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.resolveRuntimeVersion = resolveRuntimeVersion;
|
|
37
4
|
exports.resetCachedRuntimeVersionForTesting = resetCachedRuntimeVersionForTesting;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
'./package.json',
|
|
48
|
-
];
|
|
49
|
-
let importWithAttributesFn;
|
|
50
|
-
function getImportWithAttributesFn() {
|
|
51
|
-
if (importWithAttributesFn !== undefined) {
|
|
52
|
-
return importWithAttributesFn;
|
|
53
|
-
}
|
|
54
|
-
try {
|
|
55
|
-
importWithAttributesFn = new Function('specifier', 'options', 'return import(specifier, options);');
|
|
56
|
-
}
|
|
57
|
-
catch {
|
|
58
|
-
importWithAttributesFn = null;
|
|
59
|
-
}
|
|
60
|
-
return importWithAttributesFn;
|
|
61
|
-
}
|
|
62
|
-
let cachedVersion;
|
|
63
|
-
let embeddedPackageVersion;
|
|
64
|
-
let embeddedPackageVersionPromise;
|
|
65
|
-
async function importEmbeddedPackageMetadata() {
|
|
66
|
-
const importOptions = [
|
|
67
|
-
{ 'with': { type: 'json' } },
|
|
68
|
-
{ 'assert': { type: 'json' } },
|
|
69
|
-
];
|
|
70
|
-
const importFn = getImportWithAttributesFn();
|
|
71
|
-
if (!importFn) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
for (const candidatePath of PACKAGE_JSON_RELATIVE_PATHS) {
|
|
75
|
-
for (const options of importOptions) {
|
|
76
|
-
try {
|
|
77
|
-
const result = await importFn(candidatePath, options);
|
|
78
|
-
const candidate = result.default ?? result;
|
|
79
|
-
if (candidate && typeof candidate === 'object') {
|
|
80
|
-
return candidate;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch {
|
|
84
|
-
// Try next option/path combination if current attempt fails.
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
async function resolveEmbeddedPackageVersion() {
|
|
91
|
-
if (embeddedPackageVersion !== undefined) {
|
|
92
|
-
return embeddedPackageVersion;
|
|
93
|
-
}
|
|
94
|
-
if (!embeddedPackageVersionPromise) {
|
|
95
|
-
embeddedPackageVersionPromise = (async () => {
|
|
96
|
-
const metadata = await importEmbeddedPackageMetadata();
|
|
97
|
-
return readVersionFromPackageJson(metadata);
|
|
98
|
-
})();
|
|
99
|
-
}
|
|
100
|
-
embeddedPackageVersion = await embeddedPackageVersionPromise;
|
|
101
|
-
return embeddedPackageVersion;
|
|
102
|
-
}
|
|
103
|
-
function readVersionFromPackageJson(candidate) {
|
|
104
|
-
if (!candidate || typeof candidate !== 'object') {
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
const { name, version } = candidate;
|
|
108
|
-
if (name === '@naylence/runtime' && typeof version === 'string') {
|
|
109
|
-
return version;
|
|
110
|
-
}
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
|
-
async function tryReadPackageVersion(absolutePath) {
|
|
114
|
-
try {
|
|
115
|
-
const [{ readFile }, pathModule] = await Promise.all([
|
|
116
|
-
Promise.resolve().then(() => __importStar(require('node:fs/promises'))),
|
|
117
|
-
Promise.resolve().then(() => __importStar(require('node:path'))),
|
|
118
|
-
]);
|
|
119
|
-
let candidateDir = pathModule.dirname(absolutePath);
|
|
120
|
-
for (let depth = 0; depth < 10; depth += 1) {
|
|
121
|
-
const packageJsonPath = pathModule.join(candidateDir, 'package.json');
|
|
122
|
-
try {
|
|
123
|
-
const contents = await readFile(packageJsonPath, 'utf-8');
|
|
124
|
-
const parsed = JSON.parse(contents);
|
|
125
|
-
const extracted = readVersionFromPackageJson(parsed);
|
|
126
|
-
if (extracted) {
|
|
127
|
-
return extracted;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
catch {
|
|
131
|
-
// Continue traversing upwards until we exhaust likely directories
|
|
132
|
-
}
|
|
133
|
-
const parentDir = pathModule.dirname(candidateDir);
|
|
134
|
-
if (parentDir === candidateDir) {
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
candidateDir = parentDir;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch {
|
|
141
|
-
// Ignore filesystem failures; callers will continue with other strategies
|
|
142
|
-
}
|
|
143
|
-
return null;
|
|
144
|
-
}
|
|
145
|
-
async function tryResolveVersionFromModule(resolveFn) {
|
|
146
|
-
if (!resolveFn) {
|
|
147
|
-
return null;
|
|
148
|
-
}
|
|
149
|
-
try {
|
|
150
|
-
const entryPoint = resolveFn('@naylence/runtime');
|
|
151
|
-
return await tryReadPackageVersion(entryPoint);
|
|
152
|
-
}
|
|
153
|
-
catch {
|
|
154
|
-
return null;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
function tryGetProcessCwdFileUrl(processRef) {
|
|
158
|
-
const candidates = [];
|
|
159
|
-
if (processRef && typeof processRef.cwd === 'function') {
|
|
160
|
-
candidates.push(() => processRef.cwd?.());
|
|
161
|
-
}
|
|
162
|
-
if (typeof process !== 'undefined' && process && process !== processRef) {
|
|
163
|
-
const maybeProcess = process;
|
|
164
|
-
if (maybeProcess &&
|
|
165
|
-
typeof maybeProcess.cwd === 'function') {
|
|
166
|
-
candidates.push(() => maybeProcess.cwd?.());
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
for (const getPath of candidates) {
|
|
170
|
-
try {
|
|
171
|
-
const result = getPath();
|
|
172
|
-
if (typeof result === 'string' && result.length > 0) {
|
|
173
|
-
const normalized = result.endsWith('/') ? result : `${result}/`;
|
|
174
|
-
return new URL('./', `file://${normalized}`);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
catch {
|
|
178
|
-
// Ignore candidates that throw so we can fall back to other strategies.
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
function tryGetImportMetaUrl() {
|
|
184
|
-
try {
|
|
185
|
-
// eslint-disable-next-line no-eval
|
|
186
|
-
return (0, eval)('import.meta.url');
|
|
187
|
-
}
|
|
188
|
-
catch {
|
|
189
|
-
return undefined;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
function readEnvValue(env, aliases) {
|
|
193
|
-
if (!env) {
|
|
194
|
-
return undefined;
|
|
195
|
-
}
|
|
196
|
-
for (const alias of aliases) {
|
|
197
|
-
const value = env[alias];
|
|
198
|
-
if (typeof value === 'string') {
|
|
199
|
-
return value;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return undefined;
|
|
203
|
-
}
|
|
204
|
-
function resolveFromEnv(env) {
|
|
205
|
-
if (!env) {
|
|
206
|
-
return null;
|
|
207
|
-
}
|
|
208
|
-
const explicitRaw = readEnvValue(env, [
|
|
209
|
-
'NAYLENCE_RUNTIME_VERSION',
|
|
210
|
-
'naylence_runtime_version',
|
|
211
|
-
'naylenceRuntimeVersion',
|
|
212
|
-
'NaylenceRuntimeVersion',
|
|
213
|
-
]);
|
|
214
|
-
const explicit = explicitRaw?.trim();
|
|
215
|
-
if (explicit) {
|
|
216
|
-
return explicit;
|
|
217
|
-
}
|
|
218
|
-
const npmName = readEnvValue(env, ['npm_package_name', 'npmPackageName']);
|
|
219
|
-
const npmVersion = readEnvValue(env, [
|
|
220
|
-
'npm_package_version',
|
|
221
|
-
'npmPackageVersion',
|
|
222
|
-
]);
|
|
223
|
-
if (npmName === '@naylence/runtime' && typeof npmVersion === 'string') {
|
|
224
|
-
return npmVersion;
|
|
225
|
-
}
|
|
226
|
-
return null;
|
|
227
|
-
}
|
|
228
|
-
async function resolveFromPackageJson() {
|
|
229
|
-
try {
|
|
230
|
-
const processRef = globalThis?.process;
|
|
231
|
-
const cwdUrl = tryGetProcessCwdFileUrl(processRef);
|
|
232
|
-
try {
|
|
233
|
-
if (typeof require === 'function') {
|
|
234
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require
|
|
235
|
-
const localRequire = require;
|
|
236
|
-
for (const candidate of PACKAGE_JSON_RELATIVE_PATHS) {
|
|
237
|
-
try {
|
|
238
|
-
const result = localRequire(candidate);
|
|
239
|
-
const extracted = readVersionFromPackageJson(result);
|
|
240
|
-
if (extracted) {
|
|
241
|
-
return extracted;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
catch {
|
|
245
|
-
// Continue trying remaining candidates
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
// Fallback: try direct package resolution
|
|
249
|
-
try {
|
|
250
|
-
const result = localRequire('@naylence/runtime/package.json');
|
|
251
|
-
const extracted = readVersionFromPackageJson(result);
|
|
252
|
-
if (extracted) {
|
|
253
|
-
return extracted;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
catch {
|
|
257
|
-
// Continue to next strategy
|
|
258
|
-
}
|
|
259
|
-
const resolvedFromLocalRequire = await tryResolveVersionFromModule(typeof localRequire.resolve === 'function'
|
|
260
|
-
? (specifier) => localRequire.resolve(specifier)
|
|
261
|
-
: undefined);
|
|
262
|
-
if (resolvedFromLocalRequire) {
|
|
263
|
-
return resolvedFromLocalRequire;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
catch {
|
|
268
|
-
// ignore and fall through to dynamic require resolution
|
|
269
|
-
}
|
|
270
|
-
const { createRequire } = await Promise.resolve().then(() => __importStar(require('node:module')));
|
|
271
|
-
const importMetaUrl = tryGetImportMetaUrl();
|
|
272
|
-
const baseSpecifier = importMetaUrl ?? cwdUrl ?? new URL('./', 'file:///');
|
|
273
|
-
const requireForCurrentModule = createRequire(baseSpecifier);
|
|
274
|
-
for (const candidate of PACKAGE_JSON_RELATIVE_PATHS) {
|
|
275
|
-
try {
|
|
276
|
-
const result = requireForCurrentModule(candidate);
|
|
277
|
-
const extracted = readVersionFromPackageJson(result);
|
|
278
|
-
if (extracted) {
|
|
279
|
-
return extracted;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
catch {
|
|
283
|
-
// Continue trying remaining candidates
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
const moduleResolvedVersion = await tryResolveVersionFromModule(typeof requireForCurrentModule.resolve === 'function'
|
|
287
|
-
? (specifier) => requireForCurrentModule.resolve(specifier)
|
|
288
|
-
: undefined);
|
|
289
|
-
if (moduleResolvedVersion) {
|
|
290
|
-
return moduleResolvedVersion;
|
|
291
|
-
}
|
|
292
|
-
const cwdRequire = cwdUrl ? createRequire(cwdUrl) : null;
|
|
293
|
-
if (cwdRequire) {
|
|
294
|
-
const cwdResolvedVersion = await tryResolveVersionFromModule(typeof cwdRequire.resolve === 'function'
|
|
295
|
-
? (specifier) => cwdRequire.resolve(specifier)
|
|
296
|
-
: undefined);
|
|
297
|
-
if (cwdResolvedVersion) {
|
|
298
|
-
return cwdResolvedVersion;
|
|
299
|
-
}
|
|
300
|
-
try {
|
|
301
|
-
const result = cwdRequire('@naylence/runtime/package.json');
|
|
302
|
-
const extracted = readVersionFromPackageJson(result);
|
|
303
|
-
if (extracted) {
|
|
304
|
-
return extracted;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
catch {
|
|
308
|
-
// All attempts failed
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
catch {
|
|
313
|
-
// Ignore failures and fall through to null
|
|
314
|
-
}
|
|
315
|
-
return null;
|
|
316
|
-
}
|
|
5
|
+
const version_js_1 = require("../../../version.js");
|
|
6
|
+
/**
|
|
7
|
+
* Resolves the runtime version.
|
|
8
|
+
*
|
|
9
|
+
* The version is now injected at build time from package.json into version.ts.
|
|
10
|
+
* This function maintains backward compatibility by returning a Promise.
|
|
11
|
+
*
|
|
12
|
+
* @returns The runtime version string, or null if not available.
|
|
13
|
+
*/
|
|
317
14
|
async function resolveRuntimeVersion() {
|
|
318
|
-
|
|
319
|
-
return cachedVersion;
|
|
320
|
-
}
|
|
321
|
-
const envVersion = resolveFromEnv(globalThis?.process?.env);
|
|
322
|
-
if (envVersion) {
|
|
323
|
-
cachedVersion = envVersion;
|
|
324
|
-
return cachedVersion;
|
|
325
|
-
}
|
|
326
|
-
const embeddedVersion = await resolveEmbeddedPackageVersion();
|
|
327
|
-
if (embeddedVersion) {
|
|
328
|
-
cachedVersion = embeddedVersion;
|
|
329
|
-
return cachedVersion;
|
|
330
|
-
}
|
|
331
|
-
const packageVersion = await resolveFromPackageJson();
|
|
332
|
-
cachedVersion = packageVersion ?? null;
|
|
333
|
-
return cachedVersion;
|
|
15
|
+
return version_js_1.VERSION || null;
|
|
334
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* For testing purposes only. No-op since version is now static.
|
|
19
|
+
* Kept for backward compatibility with existing tests.
|
|
20
|
+
*/
|
|
335
21
|
function resetCachedRuntimeVersionForTesting() {
|
|
336
|
-
|
|
337
|
-
embeddedPackageVersion = undefined;
|
|
338
|
-
embeddedPackageVersionPromise = undefined;
|
|
339
|
-
importWithAttributesFn = undefined;
|
|
22
|
+
// No-op: version is now static and injected at build time
|
|
340
23
|
}
|
|
341
24
|
//# sourceMappingURL=runtime-version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-version.js","sourceRoot":"","sources":["../../../../../src/naylence/fame/util/runtime-version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime-version.js","sourceRoot":"","sources":["../../../../../src/naylence/fame/util/runtime-version.ts"],"names":[],"mappings":";;AAUA,sDAEC;AAMD,kFAEC;AApBD,oDAA8C;AAE9C;;;;;;;GAOG;AACI,KAAK,UAAU,qBAAqB;IACzC,OAAO,oBAAO,IAAI,IAAI,CAAC;AACzB,CAAC;AAED;;;GAGG;AACH,SAAgB,mCAAmC;IACjD,0DAA0D;AAC5D,CAAC"}
|
package/dist/cjs/node.js
CHANGED
|
@@ -7,6 +7,7 @@ require("./naylence/fame/connector/websocket-connector-node-ssl.js");
|
|
|
7
7
|
// the isomorphic exports are evaluated. Some factories (SQLite) must be
|
|
8
8
|
// registered early so configuration parsing that happens during runtime
|
|
9
9
|
// initialization can resolve the requested storage profiles.
|
|
10
|
+
require("./naylence/fame/storage/node-index.js"); // Side-effect: registers SQLite profiles
|
|
10
11
|
tslib_1.__exportStar(require("./naylence/fame/storage/node-index.js"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./runtime-isomorphic.js"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./naylence/fame/node/index.js"), exports);
|
package/dist/cjs/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":";;;;AAAA,qEAAmE;AAEnE,2EAA2E;AAC3E,wEAAwE;AACxE,wEAAwE;AACxE,6DAA6D;AAC7D,gFAAsD;AAEtD,kEAAwC;AACxC,wEAA8C;AAC9C,4EAAkD;AAClD,8EAAoD;AACpD,0EAAgD;AAChD,+FAAqE;AACrE,uGAA6E;AAC7E,6FAAmE;AACnE,2EAAiD;AACjD,4EAAkD;AAElD,+DAe4C;AAd1C,kHAAA,sBAAsB,OAAA;AACtB,0GAAA,cAAc,OAAA;AAEd,6GAAA,iBAAiB,OAAA;AACjB,wHAAA,4BAA4B,OAAA;AAC5B,6GAAA,iBAAiB,OAAA;AACjB,gIAAA,oCAAoC,OAAA;AAKpC,6GAAA,iBAAiB,OAAA;AACjB,wGAAA,YAAY,OAAA;AACZ,mHAAA,uBAAuB,OAAA;AAGzB,4DAIyC;AAHvC,+GAAA,mBAAmB,OAAA;AACnB,sHAAA,0BAA0B,OAAA;AAC1B,yHAAA,6BAA6B,OAAA;AAE/B,4DAGyC;AAFvC,uHAAA,2BAA2B,OAAA;AAI7B,8EAGiD;AAF/C,sHAAA,gBAAgB,OAAA;AAGlB,sFAGqD;AAFnD,iIAAA,uBAAuB,OAAA;AAGzB,sGAG6D;AAF3D,iJAAA,+BAA+B,OAAA;AAGjC,0EAG+C;AAF7C,yHAAA,SAAS,OAAyB;AAClC,mHAAA,IAAI,OAAmB"}
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":";;;;AAAA,qEAAmE;AAEnE,2EAA2E;AAC3E,wEAAwE;AACxE,wEAAwE;AACxE,6DAA6D;AAC7D,iDAA+C,CAAE,yCAAyC;AAC1F,gFAAsD;AAEtD,kEAAwC;AACxC,wEAA8C;AAC9C,4EAAkD;AAClD,8EAAoD;AACpD,0EAAgD;AAChD,+FAAqE;AACrE,uGAA6E;AAC7E,6FAAmE;AACnE,2EAAiD;AACjD,4EAAkD;AAElD,+DAe4C;AAd1C,kHAAA,sBAAsB,OAAA;AACtB,0GAAA,cAAc,OAAA;AAEd,6GAAA,iBAAiB,OAAA;AACjB,wHAAA,4BAA4B,OAAA;AAC5B,6GAAA,iBAAiB,OAAA;AACjB,gIAAA,oCAAoC,OAAA;AAKpC,6GAAA,iBAAiB,OAAA;AACjB,wGAAA,YAAY,OAAA;AACZ,mHAAA,uBAAuB,OAAA;AAGzB,4DAIyC;AAHvC,+GAAA,mBAAmB,OAAA;AACnB,sHAAA,0BAA0B,OAAA;AAC1B,yHAAA,6BAA6B,OAAA;AAE/B,4DAGyC;AAFvC,uHAAA,2BAA2B,OAAA;AAI7B,8EAGiD;AAF/C,sHAAA,gBAAgB,OAAA;AAGlB,sFAGqD;AAFnD,iIAAA,uBAAuB,OAAA;AAGzB,sGAG6D;AAF3D,iJAAA,+BAA+B,OAAA;AAGjC,0EAG+C;AAF7C,yHAAA,SAAS,OAAyB;AAClC,mHAAA,IAAI,OAAmB"}
|
|
@@ -8,10 +8,13 @@
|
|
|
8
8
|
* expect access to the Node.js standard library.
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.__runtimePluginLoader = exports.InvalidPassphraseError = exports.BrowserWrappedKeyCredentialProvider = exports.requireCryptoSupport = exports.hasCryptoSupport = exports.registerRuntimeFactories = exports.registerDefaultFactories = exports.operation = exports.RpcMixin = exports.createRpcProxy = exports.RpcProxy = exports._NoopFlowController = exports.WebSocketState = exports.WebSocketConnector = exports.createResource = exports.ConnectorFactory = exports.createConnectorConfig = exports.isConnectorConfig = exports.ConnectorConfigDefaults = exports.BaseAsyncConnector = exports.runWithNodeContext = exports.withNodeContextAsync = exports.getCurrentNode = exports.getNode = void 0;
|
|
11
|
+
exports.__runtimePluginLoader = exports.InvalidPassphraseError = exports.BrowserWrappedKeyCredentialProvider = exports.requireCryptoSupport = exports.hasCryptoSupport = exports.registerRuntimeFactories = exports.registerDefaultFactories = exports.operation = exports.RpcMixin = exports.createRpcProxy = exports.RpcProxy = exports._NoopFlowController = exports.WebSocketState = exports.WebSocketConnector = exports.createResource = exports.ConnectorFactory = exports.createConnectorConfig = exports.isConnectorConfig = exports.ConnectorConfigDefaults = exports.BaseAsyncConnector = exports.runWithNodeContext = exports.withNodeContextAsync = exports.getCurrentNode = exports.getNode = exports.VERSION = void 0;
|
|
12
12
|
const tslib_1 = require("tslib");
|
|
13
13
|
// Re-export everything from naylence-core for protocol primitives
|
|
14
14
|
tslib_1.__exportStar(require("@naylence/core"), exports);
|
|
15
|
+
// Package version
|
|
16
|
+
var version_js_1 = require("./version.js");
|
|
17
|
+
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_js_1.VERSION; } });
|
|
15
18
|
// Cross-platform Fame runtime exports
|
|
16
19
|
tslib_1.__exportStar(require("./naylence/fame/errors/index.js"), exports);
|
|
17
20
|
tslib_1.__exportStar(require("./naylence/fame/util/index.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-isomorphic.js","sourceRoot":"","sources":["../../src/runtime-isomorphic.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;AAEH,kEAAkE;AAClE,yDAA+B;AAE/B,sCAAsC;AACtC,0EAAgD;AAChD,wEAA8C;AAC9C,2EAAiD;AAEjD,uEAAuE;AACvE,2EAAiD;AAEjD,oFAKoD;AAJlD,gHAAA,OAAO,OAAA;AACP,uHAAA,cAAc,OAAA;AACd,6HAAA,oBAAoB,OAAA;AACpB,2HAAA,kBAAkB,OAAA;AAGpB,yCAAyC;AACzC,4EAAkD;AAElD,6DAA6D;AAC7D,6FAG2D;AAFzD,6HAA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AU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,OAAO,GAAG,qBAAqB,GAAG,YAAY,EAAE,CAAC;IACnD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,GAAuB,EAAE;IACzD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAC1B,WAAW,EACX,kCAAkC,CACD,CAAC;IAEpC,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAuB,KAAK,EACtC,SAAiB,EACiB,EAAE;QACpC,IACE,SAAS,KAAK,mBAAmB;YACjC,SAAS,KAAK,oBAAoB;YAClC,SAAS,KAAK,0BAA0B;YACxC,SAAS,KAAK,6BAA6B;YAC3C,SAAS,KAAK,sCAAsC,EACpD,CAAC;YACD,OAAO,0BAA0B,CAAC;QACpC,CAAC;QAEH,MAAM,QAAQ,GAAG,6BAA6B,CAAC,SAAS,CAAC,CAAC;QACxD,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,mBAA0B,QAAQ,+CAExC,CAAC;QACJ,CAAC;QAED,OAAO,mBAA0B,SAAS,+CAEzC,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,kCAAkC,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEW,QAAA,qBAAqB,GAAG,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is auto-generated during build - do not edit manually
|
|
3
|
+
// Generated from package.json version: 0.3.5-test.904
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.VERSION = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* The package version, injected at build time.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
exports.VERSION = '0.3.5-test.904';
|
|
11
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA,kEAAkE;AAClE,sDAAsD;;;AAEtD;;;GAGG;AACU,QAAA,OAAO,GAAG,gBAAgB,CAAC"}
|