@zeesoft/i18n-verify 3.1.8 → 3.2.1

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/genrc.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./executor.cjs"),t=e.getRootProjectMainDir(),c=e.getRootProjectPackageJson(t);let s="";if(c){const n=JSON.parse(c),i=JSON.stringify({...n?.dependencies||{},...n?.devDependencies||{}});i.includes('"nightwatch"')?s=e.SYSTEM_TYPES.NIGHT_WATCH:i.includes('"cypress"')?s=e.SYSTEM_TYPES.CYPRESS:i.includes('"selenium-webdriver"')?s=e.SYSTEM_TYPES.SELENIUMJS:(i.includes('"@wdio"')||i.includes("@wdio"))&&(s=e.SYSTEM_TYPES.WEB_DRIVER_IO)}e.checkAndExportConfig(e.joinPaths(t,e.CONFIG_FILE_NAME),s);
package/dist/genrc.mjs CHANGED
@@ -1 +1,11 @@
1
- import{g as e,a as i,c as t,j as o,S as r,b as s}from"./executor.mjs";import"fs";import"path";import"console-table-printer";import"chrome-remote-interface";import"globalize";import"cldr-data";import"chrono-node";import"luxon";import"@isdk/detect-text-language";import"jimp";const n=e(),c=i(n);let p="";if(c){const e=JSON.parse(c),i=JSON.stringify({...e?.dependencies||{},...e?.devDependencies||{}});i.includes('"nightwatch"')?p=r.NIGHT_WATCH:i.includes('"cypress"')?p=r.CYPRESS:i.includes('"selenium-webdriver"')?p=r.SELENIUMJS:(i.includes('"@wdio"')||i.includes("@wdio"))&&(p=r.WEB_DRIVER_IO)}t(o(n,s),p);
1
+ import { g as t, a, c as d, j as r, b as l, S as i } from "./executor.mjs";
2
+ const o = t(), c = a(o);
3
+ let s = "";
4
+ if (c) {
5
+ const n = JSON.parse(c), e = JSON.stringify({
6
+ ...n?.dependencies || {},
7
+ ...n?.devDependencies || {}
8
+ });
9
+ e.includes('"nightwatch"') ? s = i.NIGHT_WATCH : e.includes('"cypress"') ? s = i.CYPRESS : e.includes('"selenium-webdriver"') ? s = i.SELENIUMJS : (e.includes('"@wdio"') || e.includes("@wdio")) && (s = i.WEB_DRIVER_IO);
10
+ }
11
+ d(r(o, l), s);
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./executor.cjs"),i=e.Logger,c=e.SYSTEM_TYPES,a=t=>{e.Config.setDriver(t),e.loadDependencies()},g=t=>{e.Config.setLocale(t),e.Config.setIsLoaded(!1),e.loadDependencies()},l=()=>{e.Reports.generateAsciiTable(),e.Reports.generateHtml()},u=()=>e.Config.getLocale(),f=async({verificationArea:t,staticLocators:s,useSmartSelector:n,description:r})=>{const o=e.Config.getExecutor();if(!o||!(o instanceof e.Executor))throw new Error("Executor is missing, make sure to set configuration");await o.start({verificationArea:t,staticLocators:s,useSmartSelector:n,description:r})};e.Config.init();exports.genReportTable=l;exports.getLocale=u;exports.logger=i;exports.setLocale=g;exports.setRuntime=a;exports.systems=c;exports.verify=f;
package/dist/index.mjs CHANGED
@@ -1 +1,33 @@
1
- import{C as t,L as e,S as o,l as r,R as i,E as a}from"./executor.mjs";import"fs";import"path";import"console-table-printer";import"chrome-remote-interface";import"globalize";import"cldr-data";import"chrono-node";import"luxon";import"@isdk/detect-text-language";import"jimp";const s=e,c=o,n=e=>{t.setDriver(e),r()},m=e=>{t.setLocale(e),t.setIsLoaded(!1),r()},p=()=>{i.generateAsciiTable(),i.generateHtml()},l=()=>t.getLocale(),d=async({verificationArea:e,staticLocators:o,useSmartSelector:r,description:i})=>{const s=t.getExecutor();if(!(s&&s instanceof a))throw new Error("Executor is missing, make sure to set configuration");await s.start({verificationArea:e,staticLocators:o,useSmartSelector:r,description:i})};t.init();export{p as genReportTable,l as getLocale,s as logger,m as setLocale,n as setRuntime,c as systems,d as verify};
1
+ import { C as e, L as i, S as g, l as r, R as o, E as l } from "./executor.mjs";
2
+ const f = i, m = g, E = (t) => {
3
+ e.setDriver(t), r();
4
+ }, L = (t) => {
5
+ e.setLocale(t), e.setIsLoaded(!1), r();
6
+ }, p = () => {
7
+ o.generateAsciiTable(), o.generateHtml();
8
+ }, x = () => e.getLocale(), d = async ({
9
+ verificationArea: t,
10
+ staticLocators: a,
11
+ useSmartSelector: n,
12
+ description: c
13
+ }) => {
14
+ const s = e.getExecutor();
15
+ if (!s || !(s instanceof l))
16
+ throw new Error("Executor is missing, make sure to set configuration");
17
+ await s.start({
18
+ verificationArea: t,
19
+ staticLocators: a,
20
+ useSmartSelector: n,
21
+ description: c
22
+ });
23
+ };
24
+ e.init();
25
+ export {
26
+ p as genReportTable,
27
+ x as getLocale,
28
+ f as logger,
29
+ L as setLocale,
30
+ E as setRuntime,
31
+ m as systems,
32
+ d as verify
33
+ };
package/package.json CHANGED
@@ -1,19 +1,23 @@
1
1
  {
2
2
  "name": "@zeesoft/i18n-verify",
3
- "version": "3.1.8",
4
- "description": "Library to perform I18n verification on Nightwatch, WebdriverIO or Selenuium framework projects",
5
- "main": "dist/index.mjs",
3
+ "version": "3.2.1",
4
+ "description": "Library to perform I18n verification on Nightwatch, WebdriverIO or Selenium framework projects",
5
+ "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
+ "type": "module",
7
8
  "exports": {
8
9
  ".": {
9
- "require": "./dist/index.mjs",
10
10
  "import": "./dist/index.mjs",
11
- "types": "./types/index.d.ts"
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./genrc": {
14
+ "import": "./dist/genrc.mjs",
15
+ "require": "./dist/genrc.cjs"
12
16
  }
13
17
  },
14
18
  "scripts": {
15
19
  "clean": "rimraf dist",
16
- "build": "npm run clean && rollup -c --silent",
20
+ "build": "npm run clean && vite build",
17
21
  "prepack": "npm run build",
18
22
  "postinstall": "node postinstall.js",
19
23
  "dev": "node src/test.js"
@@ -21,7 +25,7 @@
21
25
  "files": [
22
26
  "dist",
23
27
  "readme.md",
24
- "types",
28
+ "index.d.ts",
25
29
  "postinstall.js"
26
30
  ],
27
31
  "keywords": [
@@ -33,15 +37,15 @@
33
37
  "I18n Automation",
34
38
  "I18n Report",
35
39
  "Nightwatch Automation",
36
- "Selenuium Automation",
40
+ "Selenium Automation",
37
41
  "WebdriverIO Automation"
38
42
  ],
39
43
  "author": "Jitendra Maheshwari<jm@zeesoft.com>",
40
44
  "license": "MIT",
41
45
  "engines": {
42
- "node": ">=16"
46
+ "node": ">=22.0.0"
43
47
  },
44
- "types": "types/index.d.ts",
48
+ "types": "index.d.ts",
45
49
  "dependencies": {
46
50
  "@isdk/detect-text-language": "^0.1.2",
47
51
  "chrome-remote-interface": "^0.33.2",
@@ -51,19 +55,15 @@
51
55
  "global": "^4.4.0",
52
56
  "globalize": "^1.7.0",
53
57
  "jimp": "^0.22.12",
54
- "luxon": "^3.4.4",
55
- "rimraf": "^6.0.1"
58
+ "luxon": "^3.4.4"
56
59
  },
57
60
  "devDependencies": {
58
- "@rollup/plugin-commonjs": "^28.0.1",
59
- "@rollup/plugin-json": "^6.1.0",
60
- "@rollup/plugin-node-resolve": "^15.3.0",
61
- "@rollup/plugin-terser": "^0.4.4",
62
61
  "@types/nightwatch": "^2.3.31",
63
62
  "@types/node": "^22.10.1",
64
63
  "@types/selenium-webdriver": "^4.1.26",
65
64
  "@wdio/types": "^9.0.8",
66
- "rollup": "^2.79.2"
65
+ "vite": "^5.4.8",
66
+ "rimraf": "^6.0.1"
67
67
  },
68
68
  "repository": {
69
69
  "type": "git",
File without changes