Skip to content

Commit e441874

Browse files
authored
Fix import to use named export from Plug package (#536)
1 parent 2e068f0 commit e441874

3 files changed

Lines changed: 12 additions & 15 deletions

File tree

‎package-lock.json‎

Lines changed: 8 additions & 11 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.17.2",
45+
"@croct/plug": "^0.18.0",
4646
"@croct/sdk": "^0.18.0"
4747
},
4848
"devDependencies": {

‎src/ssr-polyfills.ts‎

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

33
/**
44
* @internal
@@ -16,7 +16,7 @@ export const croct: Plug = !isSsr()
1616
let resolveCallback: () => void;
1717
let rejectCallback: (reason: any) => void;
1818

19-
return new Proxy(csrPlug, {
19+
return new Proxy(plug, {
2020
get: function getProperty(target, property: keyof Plug): any {
2121
switch (property) {
2222
case 'plug':
@@ -47,7 +47,7 @@ export const croct: Plug = !isSsr()
4747
},
4848
});
4949
}())
50-
: new Proxy(csrPlug, {
50+
: new Proxy(plug, {
5151
get: function getProperty(_, property: keyof Plug): any {
5252
switch (property) {
5353
case 'initialized':

0 commit comments

Comments
 (0)