Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@godscene/shared

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@godscene/shared - npm Package Compare versions

Comparing version
1.7.16
to
1.7.17
+1
-1
dist/es/env/parse-model-config.mjs

@@ -8,3 +8,3 @@ import { DEFAULT_MODEL_CONFIG_KEYS, INSIGHT_MODEL_CONFIG_KEYS, PLANNING_MODEL_CONFIG_KEYS } from "./constants.mjs";

const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-common-config.html';
const getCurrentVersion = ()=>"1.7.15";
const getCurrentVersion = ()=>"1.7.16";
const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;

@@ -11,0 +11,0 @@ const KEYS_MAP = {

@@ -167,2 +167,3 @@ const attributeValue = (value)=>{

const getBaseSelectors = (dom)=>{
if (!dom) return [];
const locators = [];

@@ -511,2 +512,3 @@ const { id, name, classList } = dom;

const getLocators = (dom)=>{
if (!dom) return [];
const locators = getBaseSelectors(dom);

@@ -513,0 +515,0 @@ const locatorByGetLocatorUntilFieldid = getLocatorUntilFieldid(dom);

@@ -385,2 +385,6 @@ import { CONTAINER_MINI_HEIGHT, CONTAINER_MINI_WIDTH, NodeType } from "../constants/index.mjs";

}
if (!dom) return {
allPaths: [],
containerPaths: []
};
{

@@ -387,0 +391,0 @@ const elementInfo = {

@@ -40,3 +40,3 @@ "use strict";

const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-common-config.html';
const getCurrentVersion = ()=>"1.7.15";
const getCurrentVersion = ()=>"1.7.16";
const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${external_types_js_namespaceObject.MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;

@@ -43,0 +43,0 @@ const KEYS_MAP = {

@@ -201,2 +201,3 @@ "use strict";

const getBaseSelectors = (dom)=>{
if (!dom) return [];
const locators = [];

@@ -545,2 +546,3 @@ const { id, name, classList } = dom;

const getLocators = (dom)=>{
if (!dom) return [];
const locators = getBaseSelectors(dom);

@@ -547,0 +549,0 @@ const locatorByGetLocatorUntilFieldid = getLocatorUntilFieldid(dom);

@@ -418,2 +418,6 @@ "use strict";

}
if (!dom) return {
allPaths: [],
containerPaths: []
};
{

@@ -420,0 +424,0 @@ const elementInfo = {

{
"name": "@godscene/shared",
"version": "1.7.16",
"version": "1.7.17",
"repository": "https://github.com/web-infra-dev/midscene",

@@ -5,0 +5,0 @@ "homepage": "https://midscenejs.com/",

@@ -326,2 +326,5 @@ /**

const getBaseSelectors = (dom: any) => {
if (!dom) {
return []
}
const locators = [];

@@ -946,2 +949,5 @@ const { id, name, classList } = dom;

const getLocators = (dom: any) => {
if (!dom) {
return []
}
const locators = getBaseSelectors(dom);

@@ -948,0 +954,0 @@

@@ -170,4 +170,4 @@ import {

? {
svgContent: 'true',
}
svgContent: 'true',
}
: {}),

@@ -287,3 +287,3 @@ nodeType: NodeType.IMG,

debugMode = false,
): Promise<WebElementInfo[]> {
): Promise<WebElementInfo[]> {
const elementNode = await extractTreeNode(initNode, debugMode);

@@ -309,3 +309,3 @@

debugMode = false,
): Promise<string> {
): Promise<string> {
const elementNode = await extractTreeNode(initNode, debugMode);

@@ -600,2 +600,3 @@ return descriptionOfTree(elementNode, undefined, false, visibleOnly);

const dom: any = document.elementFromPoint(args.x, args.y);
if (dom?.nodeName === 'IFRAME') {

@@ -614,3 +615,3 @@ const containerPath: any = getContainerPath(dom);

});
} else {
} else if (dom) {
const elementInfo = {

@@ -621,3 +622,8 @@ allPaths: getLocators(dom),

return elementInfo;
} else {
return {
allPaths: [],
containerPaths: []
}
}
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display