ff-dom 1.0.4 → 1.0.6
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/utils/getElementsFromHTML.js +2 -1
- package/package.json +21 -21
- package/src/index.ts +1 -1
- package/src/utils/getElementsFromHTML.ts +3 -1
- package/tsconfig.json +13 -13
|
@@ -170,7 +170,7 @@ function checkReferenceElementIsValid(locator, relation, tempDiv) {
|
|
|
170
170
|
}
|
|
171
171
|
return null;
|
|
172
172
|
}
|
|
173
|
-
const getElementsFromHTML = (name, desc, type, locators, isShared, projectId, projectType, isRecorded, folder, parentId, parentName, platform, licenseId, userId, htmlString) => {
|
|
173
|
+
const getElementsFromHTML = (name, desc, type, locators, isShared, projectId, projectType, isRecorded, folder, parentId, parentName, platform, licenseId, licenseType, userId, htmlString) => {
|
|
174
174
|
var _a;
|
|
175
175
|
const dom = new jsdom_1.JSDOM(htmlString);
|
|
176
176
|
const document = dom.window.document;
|
|
@@ -376,6 +376,7 @@ const getElementsFromHTML = (name, desc, type, locators, isShared, projectId, pr
|
|
|
376
376
|
parentName: `${parentName}`,
|
|
377
377
|
platform: `${platform}`,
|
|
378
378
|
licenseId: `${licenseId}`,
|
|
379
|
+
licenseType: `${licenseType}`,
|
|
379
380
|
userId: `${userId}`,
|
|
380
381
|
},
|
|
381
382
|
];
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ff-dom",
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"author": "",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"jsdom": "^25.0.1"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/jsdom": "^21.1.7",
|
|
19
|
+
"typescript": "^5.6.3"
|
|
20
|
+
}
|
|
21
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -267,6 +267,7 @@ const getElementsFromHTML = (
|
|
|
267
267
|
parentName: string,
|
|
268
268
|
platform: string,
|
|
269
269
|
licenseId: string,
|
|
270
|
+
licenseType: string,
|
|
270
271
|
userId: string,
|
|
271
272
|
htmlString: string
|
|
272
273
|
): ElementDetails | null => {
|
|
@@ -515,6 +516,7 @@ const getElementsFromHTML = (
|
|
|
515
516
|
parentName: `${parentName}`,
|
|
516
517
|
platform: `${platform}`,
|
|
517
518
|
licenseId: `${licenseId}`,
|
|
519
|
+
licenseType: `${licenseType}`,
|
|
518
520
|
userId: `${userId}`,
|
|
519
521
|
},
|
|
520
522
|
];
|
|
@@ -534,4 +536,4 @@ const getElementsFromHTML = (
|
|
|
534
536
|
return null;
|
|
535
537
|
};
|
|
536
538
|
|
|
537
|
-
export { getElementsFromHTML };
|
|
539
|
+
export { getElementsFromHTML };
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2019", // or "es2020", "es2021", etc.
|
|
4
|
+
"lib": ["dom", "es2019"],
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"outDir": "./dist"
|
|
11
|
+
},
|
|
12
|
+
"include": ["**/*.ts"],
|
|
13
|
+
"exclude": ["node_modules"]
|
|
14
|
+
}
|