@chrryai/waffles 1.1.83 → 1.1.85
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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +20 -182
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -182
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Page, Browser } from '@playwright/test';
|
|
2
|
-
import { Page as Page$1 } from 'playwright';
|
|
3
2
|
|
|
4
3
|
declare const TEST_GUEST_FINGERPRINTS: string[];
|
|
5
4
|
declare const TEST_MEMBER_FINGERPRINTS: string[];
|
|
@@ -73,7 +72,7 @@ declare const chat: ({ artifacts, page, isMember, isSubscriber, instruction, pro
|
|
|
73
72
|
}) => Promise<void>;
|
|
74
73
|
|
|
75
74
|
declare function collaboration({ page, isLive, isMember, browser, withShareLink, fingerprint, collaborate, }: {
|
|
76
|
-
page: Page
|
|
75
|
+
page: Page;
|
|
77
76
|
isLive?: boolean;
|
|
78
77
|
isMember?: boolean;
|
|
79
78
|
browser: Browser;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Page, Browser } from '@playwright/test';
|
|
2
|
-
import { Page as Page$1 } from 'playwright';
|
|
3
2
|
|
|
4
3
|
declare const TEST_GUEST_FINGERPRINTS: string[];
|
|
5
4
|
declare const TEST_MEMBER_FINGERPRINTS: string[];
|
|
@@ -73,7 +72,7 @@ declare const chat: ({ artifacts, page, isMember, isSubscriber, instruction, pro
|
|
|
73
72
|
}) => Promise<void>;
|
|
74
73
|
|
|
75
74
|
declare function collaboration({ page, isLive, isMember, browser, withShareLink, fingerprint, collaborate, }: {
|
|
76
|
-
page: Page
|
|
75
|
+
page: Page;
|
|
77
76
|
isLive?: boolean;
|
|
78
77
|
isMember?: boolean;
|
|
79
78
|
browser: Browser;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var dotenv = require('dotenv');
|
|
3
4
|
var test = require('@playwright/test');
|
|
4
5
|
var path = require('path');
|
|
5
6
|
var process2 = require('process');
|
|
@@ -7,192 +8,29 @@ var faker = require('@faker-js/faker');
|
|
|
7
8
|
|
|
8
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
21
|
-
}) : x)(function(x) {
|
|
22
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
23
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
24
|
-
});
|
|
25
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
26
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
|
-
};
|
|
28
|
-
var __copyProps = (to, from, except, desc) => {
|
|
29
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
-
for (let key of __getOwnPropNames(from))
|
|
31
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
32
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
33
|
-
}
|
|
34
|
-
return to;
|
|
35
|
-
};
|
|
36
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
37
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
38
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
39
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
40
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
41
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
42
|
-
mod
|
|
43
|
-
));
|
|
44
|
-
|
|
45
|
-
// ../../node_modules/dotenv/package.json
|
|
46
|
-
var require_package = __commonJS({
|
|
47
|
-
"../../node_modules/dotenv/package.json"(exports, module) {
|
|
48
|
-
module.exports = {
|
|
49
|
-
name: "dotenv",
|
|
50
|
-
version: "16.0.3",
|
|
51
|
-
description: "Loads environment variables from .env file",
|
|
52
|
-
main: "lib/main.js",
|
|
53
|
-
types: "lib/main.d.ts",
|
|
54
|
-
exports: {
|
|
55
|
-
".": {
|
|
56
|
-
require: "./lib/main.js",
|
|
57
|
-
types: "./lib/main.d.ts",
|
|
58
|
-
default: "./lib/main.js"
|
|
59
|
-
},
|
|
60
|
-
"./config": "./config.js",
|
|
61
|
-
"./config.js": "./config.js",
|
|
62
|
-
"./lib/env-options": "./lib/env-options.js",
|
|
63
|
-
"./lib/env-options.js": "./lib/env-options.js",
|
|
64
|
-
"./lib/cli-options": "./lib/cli-options.js",
|
|
65
|
-
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
66
|
-
"./package.json": "./package.json"
|
|
67
|
-
},
|
|
68
|
-
scripts: {
|
|
69
|
-
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
70
|
-
lint: "standard",
|
|
71
|
-
"lint-readme": "standard-markdown",
|
|
72
|
-
pretest: "npm run lint && npm run dts-check",
|
|
73
|
-
test: "tap tests/*.js --100 -Rspec",
|
|
74
|
-
prerelease: "npm test",
|
|
75
|
-
release: "standard-version"
|
|
76
|
-
},
|
|
77
|
-
repository: {
|
|
78
|
-
type: "git",
|
|
79
|
-
url: "git://github.com/motdotla/dotenv.git"
|
|
80
|
-
},
|
|
81
|
-
keywords: [
|
|
82
|
-
"dotenv",
|
|
83
|
-
"env",
|
|
84
|
-
".env",
|
|
85
|
-
"environment",
|
|
86
|
-
"variables",
|
|
87
|
-
"config",
|
|
88
|
-
"settings"
|
|
89
|
-
],
|
|
90
|
-
readmeFilename: "README.md",
|
|
91
|
-
license: "BSD-2-Clause",
|
|
92
|
-
devDependencies: {
|
|
93
|
-
"@types/node": "^17.0.9",
|
|
94
|
-
decache: "^4.6.1",
|
|
95
|
-
dtslint: "^3.7.0",
|
|
96
|
-
sinon: "^12.0.1",
|
|
97
|
-
standard: "^16.0.4",
|
|
98
|
-
"standard-markdown": "^7.1.0",
|
|
99
|
-
"standard-version": "^9.3.2",
|
|
100
|
-
tap: "^15.1.6",
|
|
101
|
-
tar: "^6.1.11",
|
|
102
|
-
typescript: "^4.5.4"
|
|
103
|
-
},
|
|
104
|
-
engines: {
|
|
105
|
-
node: ">=12"
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
// ../../node_modules/dotenv/lib/main.js
|
|
112
|
-
var require_main = __commonJS({
|
|
113
|
-
"../../node_modules/dotenv/lib/main.js"(exports, module) {
|
|
114
|
-
var fs = __require("fs");
|
|
115
|
-
var path2 = __require("path");
|
|
116
|
-
var os = __require("os");
|
|
117
|
-
var packageJson = require_package();
|
|
118
|
-
var version = packageJson.version;
|
|
119
|
-
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
120
|
-
function parse(src) {
|
|
121
|
-
const obj = {};
|
|
122
|
-
let lines = src.toString();
|
|
123
|
-
lines = lines.replace(/\r\n?/mg, "\n");
|
|
124
|
-
let match;
|
|
125
|
-
while ((match = LINE.exec(lines)) != null) {
|
|
126
|
-
const key = match[1];
|
|
127
|
-
let value = match[2] || "";
|
|
128
|
-
value = value.trim();
|
|
129
|
-
const maybeQuote = value[0];
|
|
130
|
-
value = value.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
131
|
-
if (maybeQuote === '"') {
|
|
132
|
-
value = value.replace(/\\n/g, "\n");
|
|
133
|
-
value = value.replace(/\\r/g, "\r");
|
|
134
|
-
}
|
|
135
|
-
obj[key] = value;
|
|
136
|
-
}
|
|
137
|
-
return obj;
|
|
138
|
-
}
|
|
139
|
-
function _log(message) {
|
|
140
|
-
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
141
|
-
}
|
|
142
|
-
function _resolveHome(envPath) {
|
|
143
|
-
return envPath[0] === "~" ? path2.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
144
|
-
}
|
|
145
|
-
function config2(options) {
|
|
146
|
-
let dotenvPath = path2.resolve(process.cwd(), ".env");
|
|
147
|
-
let encoding = "utf8";
|
|
148
|
-
const debug = Boolean(options && options.debug);
|
|
149
|
-
const override = Boolean(options && options.override);
|
|
150
|
-
if (options) {
|
|
151
|
-
if (options.path != null) {
|
|
152
|
-
dotenvPath = _resolveHome(options.path);
|
|
153
|
-
}
|
|
154
|
-
if (options.encoding != null) {
|
|
155
|
-
encoding = options.encoding;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
try {
|
|
159
|
-
const parsed = DotenvModule.parse(fs.readFileSync(dotenvPath, { encoding }));
|
|
160
|
-
Object.keys(parsed).forEach(function(key) {
|
|
161
|
-
if (!Object.prototype.hasOwnProperty.call(process.env, key)) {
|
|
162
|
-
process.env[key] = parsed[key];
|
|
163
|
-
} else {
|
|
164
|
-
if (override === true) {
|
|
165
|
-
process.env[key] = parsed[key];
|
|
166
|
-
}
|
|
167
|
-
if (debug) {
|
|
168
|
-
if (override === true) {
|
|
169
|
-
_log(`"${key}" is already defined in \`process.env\` and WAS overwritten`);
|
|
170
|
-
} else {
|
|
171
|
-
_log(`"${key}" is already defined in \`process.env\` and was NOT overwritten`);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
175
21
|
});
|
|
176
|
-
return { parsed };
|
|
177
|
-
} catch (e) {
|
|
178
|
-
if (debug) {
|
|
179
|
-
_log(`Failed to load ${dotenvPath} ${e.message}`);
|
|
180
|
-
}
|
|
181
|
-
return { error: e };
|
|
182
22
|
}
|
|
183
|
-
}
|
|
184
|
-
var DotenvModule = {
|
|
185
|
-
config: config2,
|
|
186
|
-
parse
|
|
187
|
-
};
|
|
188
|
-
module.exports.config = DotenvModule.config;
|
|
189
|
-
module.exports.parse = DotenvModule.parse;
|
|
190
|
-
module.exports = DotenvModule;
|
|
23
|
+
});
|
|
191
24
|
}
|
|
192
|
-
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var dotenv__namespace = /*#__PURE__*/_interopNamespace(dotenv);
|
|
30
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
31
|
+
var process2__default = /*#__PURE__*/_interopDefault(process2);
|
|
193
32
|
|
|
194
33
|
// src/utils.ts
|
|
195
|
-
var dotenv = __toESM(require_main());
|
|
196
34
|
var TEST_GUEST_FINGERPRINTS = ["052b1051-35e9-4264-97ac-2f0f67761869"];
|
|
197
35
|
var TEST_MEMBER_FINGERPRINTS = [
|
|
198
36
|
"0493b6d8-80d6-477c-addd-b6b8ccd73e82",
|
|
@@ -213,7 +51,7 @@ var VEX_TEST_FINGERPRINT_2 = TEST_MEMBER_FINGERPRINTS[1];
|
|
|
213
51
|
var VEX_TEST_EMAIL_3 = process.env.VEX_TEST_EMAIL_3;
|
|
214
52
|
var VEX_TEST_PASSWORD_3 = process.env.VEX_TEST_PASSWORD_3;
|
|
215
53
|
var VEX_TEST_FINGERPRINT_3 = TEST_MEMBER_FINGERPRINTS[2];
|
|
216
|
-
|
|
54
|
+
dotenv__namespace.config();
|
|
217
55
|
var TEST_URL = process.env.TEST_URL;
|
|
218
56
|
var LIVE_URL = "https://askvex.com";
|
|
219
57
|
var wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|