atriusmaps-node-sdk 3.3.258 → 3.3.259
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/cjs/nodesdk/nodeEntry.js +2 -2
- package/dist/cjs/package.json.js +9 -5
- package/dist/cjs/plugins/venueDataLoader/src/venueDataLoader.js +2 -2
- package/dist/cjs/plugins/wayfinder/src/navGraph.js +5 -5
- package/dist/cjs/src/extModules/flexapi/src/validate.js +58 -58
- package/dist/package.json.js +1 -1
- package/package.json +1 -1
|
@@ -43,8 +43,8 @@ const log = function () {
|
|
|
43
43
|
if (lines.length > 1)
|
|
44
44
|
msg = lines[0] + `… (+ ${lines.length - 1} lines)`;
|
|
45
45
|
else
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
if (msg.length > 256)
|
|
47
|
+
msg = msg.substring(0, 255) + `… (length: ${msg.length} chars)`;
|
|
48
48
|
console.log(msg);
|
|
49
49
|
}
|
|
50
50
|
};
|
package/dist/cjs/package.json.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var name = "web-engine";
|
|
6
|
-
var version = "3.3.
|
|
6
|
+
var version = "3.3.259";
|
|
7
7
|
var license = "UNLICENSED";
|
|
8
8
|
var type = "module";
|
|
9
9
|
var main = "src/main.js";
|
|
@@ -12,7 +12,8 @@ var workspaces = [
|
|
|
12
12
|
"deploy",
|
|
13
13
|
"nodesdk",
|
|
14
14
|
"pagesSrc",
|
|
15
|
-
"src/extModules/flexapi"
|
|
15
|
+
"src/extModules/flexapi",
|
|
16
|
+
"services/*"
|
|
16
17
|
];
|
|
17
18
|
var scripts = {
|
|
18
19
|
colors: "cat utils/colors1.txt && node utils/processColors.js | pbcopy && cat utils/colors2.txt",
|
|
@@ -113,6 +114,7 @@ var dependencies = {
|
|
|
113
114
|
var devDependencies = {
|
|
114
115
|
"@applitools/eyes-cypress": "^3.44.0",
|
|
115
116
|
"@babel/core": "^7.14.8",
|
|
117
|
+
"@babel/eslint-parser": "^7.24.7",
|
|
116
118
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
117
119
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
118
120
|
"@babel/plugin-syntax-import-assertions": "^7.20.0",
|
|
@@ -122,7 +124,8 @@ var devDependencies = {
|
|
|
122
124
|
"@babel/preset-react": "^7.8.3",
|
|
123
125
|
"@percy/cli": "^1.0.0-beta.60",
|
|
124
126
|
"@percy/cypress": "^3.1.0",
|
|
125
|
-
"
|
|
127
|
+
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
|
128
|
+
"@typescript-eslint/parser": "^7.13.0",
|
|
126
129
|
"babel-jest": "^27.0.6",
|
|
127
130
|
"babel-loader": "^8.2.2",
|
|
128
131
|
"babel-plugin-inline-json-import": "^0.3.2",
|
|
@@ -134,11 +137,11 @@ var devDependencies = {
|
|
|
134
137
|
"cypress-browser-permissions": "^1.1.0",
|
|
135
138
|
"cypress-real-events": "^1.11.0",
|
|
136
139
|
"cypress-wait-until": "^1.7.1",
|
|
137
|
-
eslint: "^
|
|
140
|
+
eslint: "^8.57.0",
|
|
138
141
|
"eslint-config-standard": "^16.0.3",
|
|
139
142
|
"eslint-plugin-cypress": "^2.11.1",
|
|
140
143
|
"eslint-plugin-import": "^2.16.0",
|
|
141
|
-
"eslint-plugin-jest": "^
|
|
144
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
142
145
|
"eslint-plugin-node": "^11.1.0",
|
|
143
146
|
"eslint-plugin-promise": "^5.1.0",
|
|
144
147
|
"eslint-plugin-react": "^7.12.4",
|
|
@@ -151,6 +154,7 @@ var devDependencies = {
|
|
|
151
154
|
"node-fetch": "^2.6.0",
|
|
152
155
|
"null-loader": "^4.0.1",
|
|
153
156
|
"start-server-and-test": "^2.0.0",
|
|
157
|
+
typescript: "^5.4.5",
|
|
154
158
|
vite: "^4.3.9",
|
|
155
159
|
webpack: "^5.84.1",
|
|
156
160
|
"webpack-merge": "^5.8.0"
|
|
@@ -169,8 +169,8 @@ async function create (app, config) {
|
|
|
169
169
|
if (poi.mapLabel)
|
|
170
170
|
f.properties.text = poi.mapLabel;
|
|
171
171
|
else
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
if (config.copyPOINamesToMap !== false)
|
|
173
|
+
f.properties.text = poiMapNameXForm(poi);
|
|
174
174
|
}
|
|
175
175
|
}));
|
|
176
176
|
|
|
@@ -276,12 +276,12 @@ function findShortestPath (start, end, nodes, securityWaitTimes = {}, securityLa
|
|
|
276
276
|
cost[e.dst] = ccost + weight;
|
|
277
277
|
visitQueue.offerWithPriority(e.dst, ccost + weight); // add node to the toCheck array
|
|
278
278
|
} else
|
|
279
|
-
|
|
279
|
+
if (cost[e.dst] > (ccost + weight)) { // is this a shorter path? Relaxation...
|
|
280
280
|
// if so, update the cost and parent
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
cost[e.dst] = ccost + weight;
|
|
282
|
+
prev[e.dst] = node;
|
|
283
|
+
visitQueue.raisePriority(e.dst, ccost + weight);
|
|
284
|
+
}
|
|
285
285
|
}
|
|
286
286
|
visited[node.id] = true; // we have now been selected
|
|
287
287
|
}
|
|
@@ -58,63 +58,63 @@ function checkType (customTypes, typeSpec, value) {
|
|
|
58
58
|
throw Error('expected integer argument for argument ' + sqStr(name) + ' but received ' + value)
|
|
59
59
|
checkMinMax(name, typeSpec, value);
|
|
60
60
|
} else
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
61
|
+
if (typeSpec.type === 'float') {
|
|
62
|
+
if (typeof value === 'string')
|
|
63
|
+
value = parseFloat(value);
|
|
64
|
+
if (!Number.isFinite(value))
|
|
65
|
+
throw Error('expected float argument for argument ' + sqStr(name) + ' but received \'' + value + '\'')
|
|
66
|
+
checkMinMax(name, typeSpec, value);
|
|
67
|
+
} else
|
|
68
|
+
if (typeSpec.type === 'string') {
|
|
69
|
+
if (typeof value !== 'string')
|
|
70
|
+
throw Error(`argument ${sqStr(name)} must be a string but is not (value: ${value})`)
|
|
71
|
+
if (typeSpec.minLength && value.length < typeSpec.minLength)
|
|
72
|
+
throw Error(`argument ${sqStr(name)} must be a at least ${typeSpec.minLength} characters but is '${value}' (${value.length} chars)`)
|
|
73
|
+
if (typeSpec.maxLength && value.length > typeSpec.maxLength)
|
|
74
|
+
throw Error(`argument ${sqStr(name)} must be a at most ${typeSpec.maxLength} characters but is '${value}' (${value.length} chars)`)
|
|
75
|
+
} else
|
|
76
|
+
if (typeSpec.type === 'boolean') {
|
|
77
|
+
if (value !== true && value !== false && value !== 'false' && value !== 'true' && value !== 'yes' && value !== 'no') { throw Error('argument ' + sqStr(name) + ' must be a boolean but is type ' + (typeof value) + ' with value of ' + value) }
|
|
78
|
+
} else
|
|
79
|
+
if (typeSpec.type === 'list') {
|
|
80
|
+
if (!Array.isArray(value))
|
|
81
|
+
throw Error('argument ' + sqStr(name) + ' must be a list but is not. Value = ' + value)
|
|
82
|
+
if (typeSpec.minLength !== undefined && typeSpec.minLength > value.length)
|
|
83
|
+
throw Error('argument ' + sqStr(name) + ' must contain at least ' + typeSpec.minLength + ' items but only contains ' + value.length + ' items')
|
|
84
|
+
if (typeSpec.maxLength !== undefined && typeSpec.maxLength < value.length)
|
|
85
|
+
throw Error('argument ' + sqStr(name) + ' must contain at most ' + typeSpec.maxLength + ' items but contains ' + value.length + ' items')
|
|
86
|
+
if (typeSpec.itemType) {
|
|
87
|
+
const allItemsValid = value.reduce(function (isValid, curItem) {
|
|
88
|
+
try {
|
|
89
|
+
checkType(customTypes, typeSpec.itemType, curItem);
|
|
90
|
+
} catch (e) { return false }
|
|
91
|
+
return isValid
|
|
92
|
+
}, true);
|
|
93
|
+
if (!allItemsValid) { throw Error(`argument ${sqStr(name)} contains an invalid item(s). All items in the list must be of type: ${JSON.stringify(typeSpec.itemType)} - list: ${JSON.stringify(value)}`) }
|
|
94
|
+
}
|
|
95
|
+
} else
|
|
96
|
+
if (typeSpec.type === 'object') {
|
|
97
|
+
if (typeof (value) !== 'object' || Array.isArray(value))
|
|
98
|
+
throw Error('argument ' + sqStr(name) + ' must be an object but is not. Value = ' + value)
|
|
99
|
+
try {
|
|
100
|
+
if (typeSpec.props)
|
|
101
|
+
checkTypeList(customTypes, typeSpec.props, value);
|
|
102
|
+
} catch (e) {
|
|
103
|
+
throw Error('Within ' + name + ', ' + e.message)
|
|
104
|
+
}
|
|
105
|
+
} else
|
|
106
|
+
if (typeSpec.type === 'multi') {
|
|
107
|
+
const oneTypeValid = typeSpec.types
|
|
108
|
+
.reduce((isValid, curType) => {
|
|
109
|
+
try {
|
|
110
|
+
checkType(customTypes, curType, value);
|
|
111
|
+
} catch (e) { return isValid }
|
|
112
|
+
return true
|
|
113
|
+
}, false);
|
|
114
|
+
if (!oneTypeValid)
|
|
115
|
+
throw Error(`Argument ${sqStr(name)} can be of several types, but is not valid for any: ${value}`)
|
|
116
|
+
} else
|
|
117
|
+
throw Error('type ' + typeSpec.type + ' is an unknown type')
|
|
118
118
|
|
|
119
119
|
return true
|
|
120
120
|
}
|
|
@@ -128,7 +128,7 @@ function checkType (customTypes, typeSpec, value) {
|
|
|
128
128
|
function checkTypeList (customTypes, typeList, args) {
|
|
129
129
|
typeList.forEach(nextType => {
|
|
130
130
|
if (args[nextType.name] !== undefined) { checkType(customTypes, nextType, args[nextType.name]); } else
|
|
131
|
-
|
|
131
|
+
if (!nextType.optional) { throw Error('you must include a value for ' + nextType.name) }
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
|
package/dist/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="web-engine",s="3.3.
|
|
1
|
+
var e="web-engine",s="3.3.259",o="UNLICENSED",l="module",t="src/main.js",r=["demo","deploy","nodesdk","pagesSrc","src/extModules/flexapi","services/*"],a={colors:"cat utils/colors1.txt && node utils/processColors.js | pbcopy && cat utils/colors2.txt","cypress:a11y":"APPLITOOLS_IS_DISABLED=true && cypress open --browser chrome --env INPUT_MODALITY='keyboard'","cypress:comp":"APPLITOOLS_IS_DISABLED=true && cypress open --component --browser chrome","cypress:e2e":"APPLITOOLS_IS_DISABLED=true && cypress open --e2e --browser chrome",demo:"cd demo/ && yarn start","e2e:record":"yarn cypress run --env RECORD_MODE=true",e2eTest:"percy exec -- cypress run --browser chrome",goProd:"cd deploy && scripts/goProd.sh",goStaging:"deploy/scripts/goStaging.sh",lint:"eslint . --max-warnings=0",mod:"demo/startMod.sh",mol:"demo/startMol.sh",molProd:"cd deploy && yarn buildAndRunMol",mos:"demo/startMos.sh",prepare:"husky install",test:"jest --no-cache --verbose","test-watch":"jest --verbose --watch","test:e2e:video":"cypress run"},n=["defaults"],i={"@azure/event-hubs":"^5.6.0","@dnd-kit/core":"^6.0.8","@dnd-kit/sortable":"^7.0.2","@dnd-kit/utilities":"^3.2.1","@john-osullivan/react-window-dynamic-fork":"^1.9.0-alpha.1","@locus-labs/mod-badge":"^0.1.102","@locus-labs/mod-default-theme":"^0.0.113","@locus-labs/mod-footer":"^0.0.111","@locus-labs/mod-header":"^0.0.105","@locus-labs/mod-location-marker":"^0.0.104","@locus-labs/mod-map-legend":"^0.0.104","@locus-labs/mod-offscreen-indicator":"^0.0.104","@locus-labs/mod-pin":"^0.0.104","@locus-labs/mod-qr-code-card":"^0.0.104","@locus-labs/mod-qr-code-window":"^0.0.105","@locus-labs/mod-walk-time-matrix":"^0.0.103","@locus-labs/mol-desktop-building-level-selector":"^0.1.119","@locus-labs/mol-desktop-compass":"^0.1.120","@locus-labs/mol-desktop-default-theme":"^0.2.105","@locus-labs/mol-desktop-icon":"^0.1.131","@locus-labs/mol-desktop-logo":"^0.1.101","@locus-labs/mol-desktop-map-nav-button":"^0.1.130","@locus-labs/mol-desktop-submenu":"^0.1.124","@locus-labs/mol-desktop-tooltip":"^0.3.102","@locus-labs/mol-desktop-zoom-control":"^0.1.134","@locus-labs/mol-mobile-floating-action-button":"^0.0.117","@locus-labs/mol-mobile-toast":"^0.1.102","@mapbox/mapbox-gl-draw":"^1.3.0","@mapbox/mapbox-gl-draw-static-mode":"^1.0.1","@microsoft/applicationinsights-web":"^3.1.2","@turf/circle":"^6.5.0","@turf/helpers":"^6.5.0","@turf/point-to-line-distance":"^6.5.0","@vitejs/plugin-react":"^4.0.1",IObject:"^0.7.2","axe-core":"^4.9.0","crypto-browserify":"^3.12.0","cypress-axe":"^1.5.0","file-loader":"^6.2.0",flexsearch:"^0.7.31","h3-js":"^4.1.0",i18next:"^20.3.4","i18next-browser-languagedetector":"^6.1.1","jest-transform-css":"4.0.1",jsonschema:"^1.2.6",luxon:"^3.3.0","maplibre-gl":"~2.1.9","mini-css-extract-plugin":"^1.6.0","node-polyfill-webpack-plugin":"^1.1.4","path-browserify":"^1.0.1",polished:"^4.0.2","prop-types":"^15.7.2","query-string":"^8.1.0",ramda:"^0.28.0",react:"^17.0.2","react-compound-slider":"^3.3.1","react-dom":"^17.0.2","react-json-editor-ajrm":"^2.5.13","react-qr-svg":"^2.2.1","react-svg":"^16.1.29","react-tageditor":"^0.2.3","react-virtualized-auto-sizer":"^1.0.2","smoothscroll-polyfill":"^0.4.4","styled-components":"5.1.0","styled-normalize":"^8.0.6","throttle-debounce":"^3.0.1",trackjs:"^3.7.4","ua-parser-js":"^0.7.23",uuid:"3.3.2",zousan:"^3.0.1","zousan-plus":"^4.0.1"},c={"@applitools/eyes-cypress":"^3.44.0","@babel/core":"^7.14.8","@babel/eslint-parser":"^7.24.7","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-syntax-import-assertions":"^7.20.0","@babel/plugin-transform-modules-commonjs":"^7.8.3","@babel/plugin-transform-runtime":"^7.8.3","@babel/preset-env":"^7.14.8","@babel/preset-react":"^7.8.3","@percy/cli":"^1.0.0-beta.60","@percy/cypress":"^3.1.0","@typescript-eslint/eslint-plugin":"^7.13.0","@typescript-eslint/parser":"^7.13.0","babel-jest":"^27.0.6","babel-loader":"^8.2.2","babel-plugin-inline-json-import":"^0.3.2","babel-plugin-module-resolver":"^5.0.0","babel-polyfill":"^6.26.0","chai-colors":"^1.0.1","css-loader":"^5.2.4",cypress:"^12.17.2","cypress-browser-permissions":"^1.1.0","cypress-real-events":"^1.11.0","cypress-wait-until":"^1.7.1",eslint:"^8.57.0","eslint-config-standard":"^16.0.3","eslint-plugin-cypress":"^2.11.1","eslint-plugin-import":"^2.16.0","eslint-plugin-jest":"^28.6.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","eslint-plugin-react":"^7.12.4","eslint-plugin-standard":"^5.0.0","fetch-mock-jest":"^1.3.0",glob:"^10.3.3",husky:"^6.0.0",jest:"27.5.1","lint-staged":"^11.0.1","node-fetch":"^2.6.0","null-loader":"^4.0.1","start-server-and-test":"^2.0.0",typescript:"^5.4.5",vite:"^4.3.9",webpack:"^5.84.1","webpack-merge":"^5.8.0"},p="yarn@4.0.2",d={node:">=20"},u={name:e,version:s,private:!0,license:o,type:l,main:t,workspaces:r,scripts:a,"lint-staged":{"*.js":["eslint --fix"]},browserslist:n,dependencies:i,devDependencies:c,packageManager:p,engines:d};export{n as browserslist,u as default,i as dependencies,c as devDependencies,d as engines,o as license,t as main,e as name,p as packageManager,a as scripts,l as type,s as version,r as workspaces};
|
package/package.json
CHANGED