Skip to content
GitLab
Explore
Sign in
Register
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WebSDK
usp-js
Commits
2c53f42c
Commit
2c53f42c
authored
4 years ago
by
Marin Karamihalev
Browse files
Options
Downloads
Patches
Plain Diff
commands/notify: added unflatten to decoding
parent
bd580bc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#15282
failed
4 years ago
Stage: install
Stage: build
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.json
+1
-1
1 addition, 1 deletion
package.json
public/modules/_commands_recipes_resolve_.html
+3
-3
3 additions, 3 deletions
public/modules/_commands_recipes_resolve_.html
src/commands/notify.ts
+1
-1
1 addition, 1 deletion
src/commands/notify.ts
with
5 additions
and
5 deletions
package.json
+
1
−
1
View file @
2c53f42c
{
"name"
:
"usp-js"
,
"version"
:
"0.1.
9
"
,
"version"
:
"0.1.
10
"
,
"description"
:
"Helper library for easy usp communication using mqtt over tcp or ws."
,
"main"
:
"build/src/index.js"
,
"scripts"
:
{
...
...
This diff is collapsed.
Click to expand it.
public/modules/_commands_recipes_resolve_.html
+
3
−
3
View file @
2c53f42c
...
...
@@ -141,7 +141,7 @@
<li
class=
"tsd-description"
>
<aside
class=
"tsd-sources"
>
<ul>
<li>
Defined in commands/recipes/resolve.ts:
29
</li>
<li>
Defined in commands/recipes/resolve.ts:
30
</li>
</ul>
</aside>
<h4
class=
"tsd-parameters-title"
>
Parameters
</h4>
...
...
@@ -158,7 +158,7 @@
<a
name=
"resolvereferences"
class=
"tsd-anchor"
></a>
<h3><span
class=
"tsd-flag ts-flagConst"
>
Const
</span>
resolve
<wbr>
References
</h3>
<ul
class=
"tsd-signatures tsd-kind-function tsd-parent-kind-module tsd-is-not-exported"
>
<li
class=
"tsd-signature tsd-kind-icon"
>
resolve
<wbr>
References
<span
class=
"tsd-signature-symbol"
>
(
</span>
m
sg
<span
class=
"tsd-signature-symbol"
>
:
</span><a
href=
"_types_.html#getreturn"
class=
"tsd-signature-type"
>
GetReturn
</a>
, call
<span
class=
"tsd-signature-symbol"
>
:
</span><a
href=
"_types_.html#callfn"
class=
"tsd-signature-type"
>
CallFn
</a>
, level
<span
class=
"tsd-signature-symbol"
>
:
</span><span
class=
"tsd-signature-type"
>
number
</span><span
class=
"tsd-signature-symbol"
>
)
</span><span
class=
"tsd-signature-symbol"
>
:
</span><span
class=
"tsd-signature-type"
>
Promise
</span><span
class=
"tsd-signature-symbol"
>
<
</span><a
href=
"_types_.html#getreturn"
class=
"tsd-signature-type"
>
GetReturn
</a><span
class=
"tsd-signature-symbol"
>
>
</span></li>
<li
class=
"tsd-signature tsd-kind-icon"
>
resolve
<wbr>
References
<span
class=
"tsd-signature-symbol"
>
(
</span>
m
essage
<span
class=
"tsd-signature-symbol"
>
:
</span><a
href=
"_types_.html#getreturn"
class=
"tsd-signature-type"
>
GetReturn
</a>
, call
<span
class=
"tsd-signature-symbol"
>
:
</span><a
href=
"_types_.html#callfn"
class=
"tsd-signature-type"
>
CallFn
</a>
, level
<span
class=
"tsd-signature-symbol"
>
:
</span><span
class=
"tsd-signature-type"
>
number
</span><span
class=
"tsd-signature-symbol"
>
)
</span><span
class=
"tsd-signature-symbol"
>
:
</span><span
class=
"tsd-signature-type"
>
Promise
</span><span
class=
"tsd-signature-symbol"
>
<
</span><a
href=
"_types_.html#getreturn"
class=
"tsd-signature-type"
>
GetReturn
</a><span
class=
"tsd-signature-symbol"
>
>
</span></li>
</ul>
<ul
class=
"tsd-descriptions"
>
<li
class=
"tsd-description"
>
...
...
@@ -170,7 +170,7 @@
<h4
class=
"tsd-parameters-title"
>
Parameters
</h4>
<ul
class=
"tsd-parameters"
>
<li>
<h5>
m
sg
:
<a
href=
"_types_.html#getreturn"
class=
"tsd-signature-type"
>
GetReturn
</a></h5>
<h5>
m
essage
:
<a
href=
"_types_.html#getreturn"
class=
"tsd-signature-type"
>
GetReturn
</a></h5>
</li>
<li>
<h5>
call:
<a
href=
"_types_.html#callfn"
class=
"tsd-signature-type"
>
CallFn
</a></h5>
...
...
This diff is collapsed.
Click to expand it.
src/commands/notify.ts
+
1
−
1
View file @
2c53f42c
import
{
DecodeFn
,
EncodeFn
,
GetCommand
,
MakeFn
}
from
"
../types
"
;
import
*
as
util
from
"
./util
"
;
const
parseInfo
=
(
key
:
string
,
data
:
Record
<
string
,
any
>
)
=>
util
.
search
(
data
,
key
===
"
operComplete
"
?
"
outputArgs
"
:
key
)
const
parseInfo
=
(
key
:
string
,
data
:
Record
<
string
,
any
>
)
=>
util
.
unflatten
(
util
.
search
(
data
,
key
===
"
operComplete
"
?
"
outputArgs
"
:
key
)
)
const
decode
:
DecodeFn
=
(
msg
)
=>
{
const
parent
=
util
.
searchParent
(
msg
,
'
subscriptionId
'
)
...
...
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
register
or
sign in
to comment