@dynamic-labs/utils 3.4.0 → 3.4.1

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/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
 
2
+ ### [3.4.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.0...v3.4.1) (2024-10-17)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * bug where embeddedWalletCreated event was fired before listener was attached ([#7154](https://github.com/dynamic-labs/DynamicAuth/issues/7154)) ([c782de2](https://github.com/dynamic-labs/DynamicAuth/commit/c782de2900097c389f8e388807b63820827ca430)), closes [#7151](https://github.com/dynamic-labs/DynamicAuth/issues/7151)
8
+
2
9
  ## [3.4.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.3.0...v3.4.0) (2024-10-16)
3
10
 
4
11
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "3.4.0";
6
+ var version = "3.4.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "3.4.0";
2
+ var version = "3.4.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -26,11 +26,11 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.545",
29
+ "@dynamic-labs/sdk-api-core": "0.0.547",
30
30
  "tldts": "6.0.16",
31
- "@dynamic-labs/assert-package-version": "3.4.0",
32
- "@dynamic-labs/logger": "3.4.0",
33
- "@dynamic-labs/types": "3.4.0",
31
+ "@dynamic-labs/assert-package-version": "3.4.1",
32
+ "@dynamic-labs/logger": "3.4.1",
33
+ "@dynamic-labs/types": "3.4.1",
34
34
  "buffer": "6.0.3",
35
35
  "eventemitter3": "5.0.1"
36
36
  },
package/src/index.cjs CHANGED
@@ -76,6 +76,7 @@ var isHex = require('./isHex/isHex.cjs');
76
76
  var StorageService = require('./services/StorageService/StorageService.cjs');
77
77
  var createStorageService = require('./services/StorageService/createStorageService/createStorageService.cjs');
78
78
  var cloneObjectWithOverrides = require('./cloneObjectWithOverrides/cloneObjectWithOverrides.cjs');
79
+ var isInIframe = require('./isInIframe/isInIframe.cjs');
79
80
 
80
81
  assertPackageVersion.assertPackageVersion('@dynamic-labs/utils', _package.version);
81
82
 
@@ -164,3 +165,4 @@ exports.isHex = isHex.isHex;
164
165
  exports.StorageService = StorageService.StorageService;
165
166
  exports.createStorageService = createStorageService.createStorageService;
166
167
  exports.cloneObjectWithOverrides = cloneObjectWithOverrides.cloneObjectWithOverrides;
168
+ exports.isInIframe = isInIframe.isInIframe;
package/src/index.d.ts CHANGED
@@ -32,3 +32,4 @@ export { hexToString } from './hexToString';
32
32
  export { isHex } from './isHex';
33
33
  export { type IStorageService, type StorageOptions, StorageService, createStorageService, } from './services/StorageService';
34
34
  export { cloneObjectWithOverrides } from './cloneObjectWithOverrides';
35
+ export { isInIframe } from './isInIframe';
package/src/index.js CHANGED
@@ -72,5 +72,6 @@ export { isHex } from './isHex/isHex.js';
72
72
  export { StorageService } from './services/StorageService/StorageService.js';
73
73
  export { createStorageService } from './services/StorageService/createStorageService/createStorageService.js';
74
74
  export { cloneObjectWithOverrides } from './cloneObjectWithOverrides/cloneObjectWithOverrides.js';
75
+ export { isInIframe } from './isInIframe/isInIframe.js';
75
76
 
76
77
  assertPackageVersion('@dynamic-labs/utils', version);
@@ -0,0 +1 @@
1
+ export { isInIframe } from './isInIframe';
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ const isInIframe = () => window.self !== window.top;
7
+
8
+ exports.isInIframe = isInIframe;
@@ -0,0 +1 @@
1
+ export declare const isInIframe: () => boolean;
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ const isInIframe = () => window.self !== window.top;
3
+
4
+ export { isInIframe };