@browsermation/test 0.0.8 → 0.0.10

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/bin/cli.js CHANGED
@@ -42871,15 +42871,18 @@ var {
42871
42871
  // package.json
42872
42872
  var package_default = {
42873
42873
  name: "@browsermation/test",
42874
- version: "0.0.8",
42874
+ version: "0.0.10",
42875
42875
  description: "The testing platform for Playwright by Browsermation.",
42876
- main: "dist/index.js",
42877
- types: "dist/index.d.ts",
42876
+ main: "./dist/index.js",
42877
+ types: "./dist/index.d.ts",
42878
42878
  exports: {
42879
42879
  ".": {
42880
42880
  import: "./dist/index.js",
42881
- types: "./dist/index.d.ts"
42882
- }
42881
+ require: "./dist/index.js",
42882
+ types: "./dist/index.d.ts",
42883
+ default: "./dist/index.js"
42884
+ },
42885
+ "./package.json": "./package.json"
42883
42886
  },
42884
42887
  bin: {
42885
42888
  browsermation: "dist/bin/cli.js"
@@ -42917,6 +42920,7 @@ var package_default = {
42917
42920
  commander: "^14.0.0",
42918
42921
  "form-data": "^4.0.3",
42919
42922
  ora: "^8.2.0",
42923
+ "tiny-invariant": "^1.3.3",
42920
42924
  "ts-morph": "^26.0.0",
42921
42925
  "ts-node": "^10.9.2"
42922
42926
  },
package/dist/index.js CHANGED
@@ -37,7 +37,28 @@ module.exports = __toCommonJS(index_exports);
37
37
 
38
38
  // src/defineConfig.ts
39
39
  var import_node_https = __toESM(require("node:https"));
40
+
41
+ // ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
42
+ var isProduction = process.env.NODE_ENV === "production";
43
+ var prefix = "Invariant failed";
44
+ function invariant(condition, message) {
45
+ if (condition) {
46
+ return;
47
+ }
48
+ if (isProduction) {
49
+ throw new Error(prefix);
50
+ }
51
+ var provided = typeof message === "function" ? message() : message;
52
+ var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
53
+ throw new Error(value);
54
+ }
55
+
56
+ // src/defineConfig.ts
40
57
  async function fetchEndpoint() {
58
+ invariant(
59
+ process.env.SERVER_URL,
60
+ "SERVER_URL environment variable is not set"
61
+ );
41
62
  return new Promise((resolve, reject) => {
42
63
  import_node_https.default.get(process.env.SERVER_URL || "", (res) => {
43
64
  res.on("data", async (chunk) => {
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
10
- "types": "./dist/index.d.ts"
11
- }
10
+ "require": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./package.json": "./package.json"
12
15
  },
13
16
  "bin": {
14
17
  "browsermation": "dist/bin/cli.js"
@@ -46,6 +49,7 @@
46
49
  "commander": "^14.0.0",
47
50
  "form-data": "^4.0.3",
48
51
  "ora": "^8.2.0",
52
+ "tiny-invariant": "^1.3.3",
49
53
  "ts-morph": "^26.0.0",
50
54
  "ts-node": "^10.9.2"
51
55
  },