@haibun/web-playwright 1.9.3 → 1.9.5
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/package.json
CHANGED
package/build/files-exist.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"files-exist.d.ts","sourceRoot":"","sources":["../src/files-exist.ts"],"names":[],"mappings":""}
|
package/build/files-exist.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const defs_1 = require("@haibun/core/build/lib/defs");
|
|
4
|
-
const util_1 = require("@haibun/core/build/lib/util");
|
|
5
|
-
const domain_storage_1 = require("@haibun/domain-storage");
|
|
6
|
-
const STORAGE = 'STORAGE';
|
|
7
|
-
const FilesExist = class FilesExist extends defs_1.AStepper {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.requireDomains = [domain_storage_1.STORAGE_LOCATION, domain_storage_1.STORAGE_ITEM];
|
|
11
|
-
this.options = {
|
|
12
|
-
[STORAGE]: {
|
|
13
|
-
required: true,
|
|
14
|
-
desc: 'Storage for output',
|
|
15
|
-
parse: (input) => (0, util_1.stringOrError)(input),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
this.steps = {
|
|
19
|
-
fileExists: {
|
|
20
|
-
gwta: `file {what} exists`,
|
|
21
|
-
action: async ({ what }) => {
|
|
22
|
-
const exists = this.storage?.exists(what);
|
|
23
|
-
return exists ? defs_1.OK : (0, util_1.actionNotOK)(`${what} does not exist`);
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
fileDoesNotExist: {
|
|
27
|
-
gwta: `file {what} does not exist`,
|
|
28
|
-
action: async ({ what }) => {
|
|
29
|
-
const exists = this.storage?.exists(what);
|
|
30
|
-
return exists ? defs_1.OK : (0, util_1.actionNotOK)(`${what} does not exist`);
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
async setWorld(world, steppers) {
|
|
36
|
-
super.setWorld(world, steppers);
|
|
37
|
-
this.storage = (0, util_1.findStepperFromOption)(steppers, this, this.getWorld().extraOptions, STORAGE);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=files-exist.js.map
|
package/build/files-exist.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"files-exist.js","sourceRoot":"","sources":["../src/files-exist.ts"],"names":[],"mappings":";;AACA,sDAAyG;AACzG,sDAAgG;AAChG,2DAAwE;AAGxE,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,UAAU,GAAG,MAAM,UAAW,SAAQ,eAAQ;IAAjC;;QAEf,mBAAc,GAAG,CAAC,iCAAgB,EAAE,6BAAY,CAAC,CAAC;QAClD,YAAO,GAAG;YACN,CAAC,OAAO,CAAC,EAAE;gBACP,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,IAAA,oBAAa,EAAC,KAAK,CAAC;aACjD;SACJ,CAAC;QAMF,UAAK,GAAG;YACJ,UAAU,EAAE;gBACR,IAAI,EAAE,oBAAoB;gBAC1B,MAAM,EAAE,KAAK,EAAE,EAAE,IAAI,EAAU,EAAE,EAAE;oBAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC1C,OAAO,MAAM,CAAC,CAAC,CAAC,SAAE,CAAC,CAAC,CAAC,IAAA,kBAAW,EAAC,GAAG,IAAI,iBAAiB,CAAC,CAAC;gBAC/D,CAAC;aACJ;YACD,gBAAgB,EAAE;gBACd,IAAI,EAAE,4BAA4B;gBAClC,MAAM,EAAE,KAAK,EAAE,EAAE,IAAI,EAAU,EAAE,EAAE;oBAC/B,MAAM,MAAM,GAAG,IAA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