@wormhole-foundation/sdk-solana-ntt 4.0.16-beta.4 → 4.0.17
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/cjs/ts/sdk/index.d.ts +1 -1
- package/dist/cjs/ts/sdk/index.d.ts.map +1 -1
- package/dist/cjs/ts/sdk/index.js +11 -6
- package/dist/cjs/ts/sdk/index.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/ts/sdk/index.d.ts +1 -1
- package/dist/esm/ts/sdk/index.d.ts.map +1 -1
- package/dist/esm/ts/sdk/index.js +11 -6
- package/dist/esm/ts/sdk/index.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./side-effects";
|
|
2
2
|
/** Explicitly register Solana NTT protocols. Idempotent — safe to call multiple times. */
|
|
3
|
-
export declare function register(
|
|
3
|
+
export declare function register(_deprecatedTopLevel?: boolean): void;
|
|
4
4
|
export * from "./ntt.js";
|
|
5
5
|
export * from "./nttWithExecutor.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ts/sdk/index.ts"],"names":[],"mappings":"AAQA,OAAO,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ts/sdk/index.ts"],"names":[],"mappings":"AAQA,OAAO,gBAAgB,CAAC;AAIxB,0FAA0F;AAC1F,wBAAgB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,GAAG,IAAI,CAS5D;AAcD,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC"}
|
package/dist/cjs/ts/sdk/index.js
CHANGED
|
@@ -21,11 +21,10 @@ const ntt_js_1 = require("./ntt.js");
|
|
|
21
21
|
const nttWithExecutor_js_1 = require("./nttWithExecutor.js");
|
|
22
22
|
const sdk_definitions_ntt_1 = require("@wormhole-foundation/sdk-definitions-ntt");
|
|
23
23
|
require("./side-effects");
|
|
24
|
+
let _explicitlyRegistered = false;
|
|
24
25
|
/** Explicitly register Solana NTT protocols. Idempotent — safe to call multiple times. */
|
|
25
|
-
function register(
|
|
26
|
-
|
|
27
|
-
console.warn("@wormhole-foundation/sdk-solana-ntt: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
28
|
-
}
|
|
26
|
+
function register(_deprecatedTopLevel) {
|
|
27
|
+
_explicitlyRegistered = true;
|
|
29
28
|
(0, sdk_definitions_ntt_1.register)();
|
|
30
29
|
if (!(0, sdk_definitions_1.protocolIsRegistered)(sdk_solana_1._platform, "Ntt")) {
|
|
31
30
|
(0, sdk_definitions_1.registerProtocol)(sdk_solana_1._platform, "Ntt", ntt_js_1.SolanaNtt);
|
|
@@ -34,9 +33,15 @@ function register(topLevel = false) {
|
|
|
34
33
|
(0, sdk_definitions_1.registerProtocol)(sdk_solana_1._platform, "NttWithExecutor", nttWithExecutor_js_1.SolanaNttWithExecutor);
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
// Backward-compatible: auto-register on import
|
|
36
|
+
// Backward-compatible: auto-register on import.
|
|
37
|
+
// Deferred so that consumers who call register() explicitly don't see the warning.
|
|
38
38
|
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
39
|
-
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
if (!_explicitlyRegistered) {
|
|
41
|
+
console.warn("@wormhole-foundation/sdk-solana-ntt: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
42
|
+
}
|
|
43
|
+
register();
|
|
44
|
+
}, 0);
|
|
40
45
|
__exportStar(require("./ntt.js"), exports);
|
|
41
46
|
__exportStar(require("./nttWithExecutor.js"), exports);
|
|
42
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../ts/sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../ts/sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAaA,4BASC;AAtBD,0EAG8C;AAC9C,gEAA4D;AAC5D,qCAAqC;AACrC,6DAA6D;AAC7D,kFAA2F;AAC3F,0BAAwB;AAExB,IAAI,qBAAqB,GAAG,KAAK,CAAC;AAElC,0FAA0F;AAC1F,SAAgB,QAAQ,CAAC,mBAA6B;IACpD,qBAAqB,GAAG,IAAI,CAAC;IAC7B,IAAA,8BAAmB,GAAE,CAAC;IACtB,IAAI,CAAC,IAAA,sCAAoB,EAAC,sBAAS,EAAE,KAAK,CAAC,EAAE,CAAC;QAC5C,IAAA,kCAAgB,EAAC,sBAAS,EAAE,KAAK,EAAE,kBAAS,CAAC,CAAC;IAChD,CAAC;IACD,IAAI,CAAC,IAAA,sCAAoB,EAAC,sBAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC;QACxD,IAAA,kCAAgB,EAAC,sBAAS,EAAE,iBAAiB,EAAE,0CAAqB,CAAC,CAAC;IACxE,CAAC;AACH,CAAC;AAED,gDAAgD;AAChD,mFAAmF;AACnF,0HAA0H;AAC1H,UAAU,CAAC,GAAG,EAAE;IACd,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3B,OAAO,CAAC,IAAI,CACV,6HAA6H,CAC9H,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,CAAC;AACb,CAAC,EAAE,CAAC,CAAC,CAAC;AAEN,2CAAyB;AACzB,uDAAqC"}
|