Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
usp-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WebSDK
usp-js
Commits
a3c9d2ab
Commit
a3c9d2ab
authored
Jan 17, 2022
by
Marin Karamihalev
Browse files
Options
Downloads
Patches
Plain Diff
merged quickjs changes, minor fix to get command decoding
parent
f39381e4
No related branches found
No related tags found
No related merge requests found
Pipeline
#39644
passed
Jan 17, 2022
Stage: install
Stage: build
Stage: deploy-pages
Changes
4
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/commands/get.ts
+1
-1
1 addition, 1 deletion
src/commands/get.ts
tests/integration/config.json
+1
-1
1 addition, 1 deletion
tests/integration/config.json
tests/integration/index.test.ts
+1
-1
1 addition, 1 deletion
tests/integration/index.test.ts
yarn.lock
+3387
-3531
3387 additions, 3531 deletions
yarn.lock
with
3390 additions
and
3534 deletions
src/commands/get.ts
+
1
−
1
View file @
a3c9d2ab
...
@@ -20,7 +20,7 @@ const decode: DecodeFn = (msg) => {
...
@@ -20,7 +20,7 @@ const decode: DecodeFn = (msg) => {
pathSplit
pathSplit
);
);
const
shouldBeArray
=
pathIncludesSearch
||
hasMultipleIndexes
;
const
shouldBeArray
=
pathIncludesSearch
||
hasMultipleIndexes
||
resolvedPathResultsArr
.
length
>
1
;
const
unflattened
=
util
.
convertToNestedObject
(
resolvedPathResultsArr
);
const
unflattened
=
util
.
convertToNestedObject
(
resolvedPathResultsArr
);
const
unwrapped
=
util
.
fullyUnwrapObject
(
unflattened
,
shouldBeArray
);
const
unwrapped
=
util
.
fullyUnwrapObject
(
unflattened
,
shouldBeArray
);
return
[
unwrapped
];
return
[
unwrapped
];
...
...
...
...
This diff is collapsed.
Click to expand it.
tests/integration/config.json
+
1
−
1
View file @
a3c9d2ab
{
{
"ws"
:
{
"ws"
:
{
"host"
:
"
192.168.1.1
"
,
"host"
:
"
iopsys.lan
"
,
"username"
:
"admin"
,
"username"
:
"admin"
,
"password"
:
"admin"
,
"password"
:
"admin"
,
"port"
:
9001
,
"port"
:
9001
,
...
...
...
...
This diff is collapsed.
Click to expand it.
tests/integration/index.test.ts
+
1
−
1
View file @
a3c9d2ab
...
@@ -98,7 +98,7 @@ describe("Test general API", () => {
...
@@ -98,7 +98,7 @@ describe("Test general API", () => {
const
msg
=
await
device
const
msg
=
await
device
.
get
(
"
Device.Bridging.Bridge.1.Port.1.LowerLayers
"
)
.
get
(
"
Device.Bridging.Bridge.1.Port.1.LowerLayers
"
)
.
then
(
device
.
resolve
);
.
then
(
device
.
resolve
);
assert
.
strictEqual
(
Array
.
isArray
(
msg
)
,
true
);
assert
.
strictEqual
(
typeof
msg
,
"
object
"
);
});
});
it
(
"
returns string when it cannot resolve path
"
,
async
()
=>
{
it
(
"
returns string when it cannot resolve path
"
,
async
()
=>
{
...
...
...
...
This diff is collapsed.
Click to expand it.
yarn.lock
+
3387
−
3531
View file @
a3c9d2ab
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment