@namiml/web-sdk 3.4.1-dev.202605280043 → 3.4.1-dev.202605281900
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/components/PaywallScreen.d.ts +1 -0
- package/dist/legacy-support.d.ts +1 -49
- package/dist/nami-web.cjs +28 -27
- package/dist/nami-web.d.ts +1 -50
- package/dist/nami-web.mjs +28 -27
- package/dist/nami-web.umd.js +28 -27
- package/dist/shims/getAttributeNames.d.ts +1 -0
- package/dist/shims/globalThis.d.ts +1 -0
- package/dist/utils/tts.d.ts +15 -14
- package/package.json +2 -2
package/dist/legacy-support.d.ts
CHANGED
|
@@ -1,49 +1 @@
|
|
|
1
|
-
|
|
2
|
-
(() => {
|
|
3
|
-
if (typeof globalThis !== 'undefined') {
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const resolveGlobal = () => {
|
|
8
|
-
if (typeof self !== 'undefined') {
|
|
9
|
-
return self;
|
|
10
|
-
}
|
|
11
|
-
if (typeof window !== 'undefined') {
|
|
12
|
-
return window;
|
|
13
|
-
}
|
|
14
|
-
if (typeof global !== 'undefined') {
|
|
15
|
-
return global;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return Function('return this')();
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const resolvedGlobal = resolveGlobal();
|
|
22
|
-
|
|
23
|
-
Object.defineProperty(resolvedGlobal, 'globalThis', {
|
|
24
|
-
value: resolvedGlobal,
|
|
25
|
-
writable: true,
|
|
26
|
-
enumerable: false,
|
|
27
|
-
configurable: true,
|
|
28
|
-
});
|
|
29
|
-
})();
|
|
30
|
-
|
|
31
|
-
(() => {
|
|
32
|
-
if (
|
|
33
|
-
typeof Element === "undefined" ||
|
|
34
|
-
typeof Element.prototype.getAttributeNames === "function"
|
|
35
|
-
) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
Element.prototype.getAttributeNames = function getAttributeNames() {
|
|
40
|
-
const attributes = this.attributes;
|
|
41
|
-
const names = new Array(attributes.length);
|
|
42
|
-
|
|
43
|
-
for (let i = 0; i < attributes.length; i += 1) {
|
|
44
|
-
names[i] = attributes[i].name;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return names;
|
|
48
|
-
};
|
|
49
|
-
})();
|
|
1
|
+
export {};
|