Skip to content

Commit 7e17952

Browse files
authored
Apply changes from last plug update (#537)
1 parent e441874 commit 7e17952

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
4343
},
4444
"dependencies": {
45-
"@croct/plug": "^0.18.0",
45+
"@croct/plug": "^0.18.1",
4646
"@croct/sdk": "^0.18.0"
4747
},
4848
"devDependencies": {

src/ssr-polyfills.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {plug, Plug} from '@croct/plug';
1+
import type {Plug} from '@croct/plug';
2+
import {GlobalPlug} from '@croct/plug/plug';
23

34
/**
45
* @internal
@@ -16,7 +17,7 @@ export const croct: Plug = !isSsr()
1617
let resolveCallback: () => void;
1718
let rejectCallback: (reason: any) => void;
1819

19-
return new Proxy(plug, {
20+
return new Proxy(GlobalPlug.GLOBAL, {
2021
get: function getProperty(target, property: keyof Plug): any {
2122
switch (property) {
2223
case 'plug':
@@ -47,7 +48,7 @@ export const croct: Plug = !isSsr()
4748
},
4849
});
4950
}())
50-
: new Proxy(plug, {
51+
: new Proxy(GlobalPlug.GLOBAL, {
5152
get: function getProperty(_, property: keyof Plug): any {
5253
switch (property) {
5354
case 'initialized':

0 commit comments

Comments
 (0)