@saasquatch/component-environment 1.0.0-5 → 1.0.0
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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +7 -2
package/dist/index.js
CHANGED
|
@@ -288,8 +288,8 @@ var MemoryHistory = class {
|
|
|
288
288
|
if (typeof to === "string") {
|
|
289
289
|
this.history[this.index] = {
|
|
290
290
|
pathname: to,
|
|
291
|
-
search:
|
|
292
|
-
hash:
|
|
291
|
+
search: "",
|
|
292
|
+
hash: "",
|
|
293
293
|
state
|
|
294
294
|
};
|
|
295
295
|
} else {
|
|
@@ -594,7 +594,7 @@ function setProgramId(programId) {
|
|
|
594
594
|
}
|
|
595
595
|
function getProgramId() {
|
|
596
596
|
var _a;
|
|
597
|
-
return (_a = window.
|
|
597
|
+
return (_a = window.squatchProgramId) == null ? void 0 : _a.context;
|
|
598
598
|
}
|
|
599
599
|
// Annotate the CommonJS export names for ESM import in node:
|
|
600
600
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -240,8 +240,8 @@ var MemoryHistory = class {
|
|
|
240
240
|
if (typeof to === "string") {
|
|
241
241
|
this.history[this.index] = {
|
|
242
242
|
pathname: to,
|
|
243
|
-
search:
|
|
244
|
-
hash:
|
|
243
|
+
search: "",
|
|
244
|
+
hash: "",
|
|
245
245
|
state
|
|
246
246
|
};
|
|
247
247
|
} else {
|
|
@@ -546,7 +546,7 @@ function setProgramId(programId) {
|
|
|
546
546
|
}
|
|
547
547
|
function getProgramId() {
|
|
548
548
|
var _a;
|
|
549
|
-
return (_a = window.
|
|
549
|
+
return (_a = window.squatchProgramId) == null ? void 0 : _a.context;
|
|
550
550
|
}
|
|
551
551
|
export {
|
|
552
552
|
BrowserHistory,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasquatch/component-environment",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Environment and contexts for SaaSquatch components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
12
|
-
"test": "
|
|
12
|
+
"test": "jest"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=16.15"
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"author": "Johan Venter <johan@saasquatch.com>",
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"devDependencies": {
|
|
25
|
+
"@types/jest": "^28.1.4",
|
|
26
|
+
"jest": "^28.1.2",
|
|
27
|
+
"jest-environment-jsdom": "^28.1.2",
|
|
28
|
+
"ts-jest": "^28.0.5",
|
|
29
|
+
"ts-node": "^10.8.2",
|
|
25
30
|
"tsup": "^6.1.2",
|
|
26
31
|
"typescript": "^4.7.3"
|
|
27
32
|
},
|