Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions dist/tebex.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3992,9 +3992,9 @@
}
var WildCard = function() {};
function getWildcard() {
var global = global_getGlobal();
global.WINDOW_WILDCARD = global.WINDOW_WILDCARD || new WildCard;
return global.WINDOW_WILDCARD;
var zoidGlobal = global_getGlobal();
zoidGlobal.WINDOW_WILDCARD = zoidGlobal.WINDOW_WILDCARD || new WildCard;
return zoidGlobal.WINDOW_WILDCARD;
}
function windowStore(key, defStore) {
void 0 === key && (key = "store");
Expand Down Expand Up @@ -8773,9 +8773,9 @@
}
var WildCard = function() {};
function getWildcard() {
var global = global_getGlobal();
global.WINDOW_WILDCARD = global.WINDOW_WILDCARD || new WildCard;
return global.WINDOW_WILDCARD;
var zoidGlobal = global_getGlobal();
zoidGlobal.WINDOW_WILDCARD = zoidGlobal.WINDOW_WILDCARD || new WildCard;
return zoidGlobal.WINDOW_WILDCARD;
}
function windowStore(key, defStore) {
void 0 === key && (key = "store");
Expand Down Expand Up @@ -12791,7 +12791,7 @@
origin: url.origin,
path: url.pathname,
params: url.search,
version: "1.6.0",
version: "1.6.1",
});
await this.zoid.renderTo(window, container, popup ? "popup" : "iframe");
__classPrivateFieldSet(this, _Checkout_didRender, true, "f");
Expand Down Expand Up @@ -13000,7 +13000,7 @@
/**
* Current Tebex.js package version
*/
const version = "1.6.0";
const version = "1.6.1";
/**
* Tebex checkout API
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/tebex.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tebex.min.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/tebex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3986,9 +3986,9 @@ function requireZoid_frame () {
}
var WildCard = function() {};
function getWildcard() {
var global = global_getGlobal();
global.WINDOW_WILDCARD = global.WINDOW_WILDCARD || new WildCard;
return global.WINDOW_WILDCARD;
var zoidGlobal = global_getGlobal();
zoidGlobal.WINDOW_WILDCARD = zoidGlobal.WINDOW_WILDCARD || new WildCard;
return zoidGlobal.WINDOW_WILDCARD;
}
function windowStore(key, defStore) {
void 0 === key && (key = "store");
Expand Down Expand Up @@ -8767,9 +8767,9 @@ function requireZoid () {
}
var WildCard = function() {};
function getWildcard() {
var global = global_getGlobal();
global.WINDOW_WILDCARD = global.WINDOW_WILDCARD || new WildCard;
return global.WINDOW_WILDCARD;
var zoidGlobal = global_getGlobal();
zoidGlobal.WINDOW_WILDCARD = zoidGlobal.WINDOW_WILDCARD || new WildCard;
return zoidGlobal.WINDOW_WILDCARD;
}
function windowStore(key, defStore) {
void 0 === key && (key = "store");
Expand Down Expand Up @@ -12785,7 +12785,7 @@ _Checkout_didRender = new WeakMap(), _Checkout_onRender = new WeakMap(), _Checko
origin: url.origin,
path: url.pathname,
params: url.search,
version: "1.6.0",
version: "1.6.1",
});
await this.zoid.renderTo(window, container, popup ? "popup" : "iframe");
__classPrivateFieldSet(this, _Checkout_didRender, true, "f");
Expand Down Expand Up @@ -12994,7 +12994,7 @@ if (isEnvBrowser())
/**
* Current Tebex.js package version
*/
const version = "1.6.0";
const version = "1.6.1";
/**
* Tebex checkout API
*/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tebexio/tebex.js",
"version": "1.6.0",
"version": "1.6.1",
"description": "Integrate Tebex Checkout directly into your own website or game using our embedded checkout experience.",
"type": "module",
"main": "dist/tebex.cjs",
Expand Down
13 changes: 13 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ export default [
include: "node_modules/zoid/**/*",
window: path.resolve("src/stubs/window.ts"),
}),
replace({
// required for zoid support in nuxt
// Nuxt tries to change instances of "global" to "globalThis", however it's a little overzealous
// It ends up breaking zoid/postrobot since it replaces a local variable named "global" inside the getWildcard function
// This particular line in Nuxt is the culprit:
// https://github.com/nuxt/nuxt/blob/a69751b96d35b0b2a4d7674652c604e45370f60c/packages/vite/src/vite.ts#L243
include: "node_modules/zoid/**/*",
values: {
"var global = global_getGlobal();": "var zoidGlobal = global_getGlobal();",
"global.WINDOW_WILDCARD": "zoidGlobal.WINDOW_WILDCARD"
},
delimiters: ["", ""]
}),
typescript({
outputToFilesystem: true,
exclude: "tests/**/*",
Expand Down