@browsermation/test 0.0.9 → 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,7 +42871,7 @@ var {
42871
42871
  // package.json
42872
42872
  var package_default = {
42873
42873
  name: "@browsermation/test",
42874
- version: "0.0.9",
42874
+ version: "0.0.10",
42875
42875
  description: "The testing platform for Playwright by Browsermation.",
42876
42876
  main: "./dist/index.js",
42877
42877
  types: "./dist/index.d.ts",
@@ -42920,6 +42920,7 @@ var package_default = {
42920
42920
  commander: "^14.0.0",
42921
42921
  "form-data": "^4.0.3",
42922
42922
  ora: "^8.2.0",
42923
+ "tiny-invariant": "^1.3.3",
42923
42924
  "ts-morph": "^26.0.0",
42924
42925
  "ts-node": "^10.9.2"
42925
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -49,6 +49,7 @@
49
49
  "commander": "^14.0.0",
50
50
  "form-data": "^4.0.3",
51
51
  "ora": "^8.2.0",
52
+ "tiny-invariant": "^1.3.3",
52
53
  "ts-morph": "^26.0.0",
53
54
  "ts-node": "^10.9.2"
54
55
  },