@scrypted/core 0.0.154 → 0.0.158
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/client/index.ts +3 -3
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/ui/package-lock.json +99 -1
- package/ui/package.json +2 -0
package/client/index.ts
CHANGED
|
@@ -12,14 +12,14 @@ export interface ScryptedClientStatic extends ScryptedStatic {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
|
-
connect(baseUrl: string): Promise<ScryptedClientStatic> {
|
|
15
|
+
connect(baseUrl: string, pluginId: string): Promise<ScryptedClientStatic> {
|
|
16
16
|
const rootLocation = baseUrl || `${window.location.protocol}//${window.location.host}`;
|
|
17
|
-
const endpointPath = `/endpoint
|
|
17
|
+
const endpointPath = `/endpoint/${pluginId}`;
|
|
18
18
|
|
|
19
19
|
return new Promise((resolve, reject) => {
|
|
20
20
|
|
|
21
21
|
const options: SocketOptions = {
|
|
22
|
-
path: `${endpointPath}/engine.io/`,
|
|
22
|
+
path: `${endpointPath}/engine.io/api/`,
|
|
23
23
|
};
|
|
24
24
|
const socket = eio(rootLocation, options);
|
|
25
25
|
|
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/ui/package-lock.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"apexcharts": "^3.28.3",
|
|
20
20
|
"axios": "^0.19.2",
|
|
21
21
|
"core-js": "^2.6.12",
|
|
22
|
+
"draggabilly": "^2.3.0",
|
|
22
23
|
"engine.io-client": "^5.2.0",
|
|
23
24
|
"feather-icons": "^4.28.0",
|
|
24
25
|
"lodash": "^4.17.21",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"@babel/preset-typescript": "^7.13.0",
|
|
55
56
|
"@types/blob-stream": "^0.1.30",
|
|
56
57
|
"@types/dom-webcodecs": "^0.1.0",
|
|
58
|
+
"@types/draggabilly": "^2.1.3",
|
|
57
59
|
"@types/engine.io-client": "^3.1.5",
|
|
58
60
|
"@types/lodash": "^4.14.172",
|
|
59
61
|
"@types/mkdirp": "^1.0.1",
|
|
@@ -91,7 +93,7 @@
|
|
|
91
93
|
},
|
|
92
94
|
"../../../sdk": {
|
|
93
95
|
"name": "@scrypted/sdk",
|
|
94
|
-
"version": "0.0.
|
|
96
|
+
"version": "0.0.131",
|
|
95
97
|
"license": "ISC",
|
|
96
98
|
"dependencies": {
|
|
97
99
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
@@ -107,9 +109,13 @@
|
|
|
107
109
|
"babel-loader": "^8.2.3",
|
|
108
110
|
"babel-plugin-const-enum": "^1.1.0",
|
|
109
111
|
"esbuild": "^0.13.8",
|
|
112
|
+
"ncp": "^2.0.0",
|
|
110
113
|
"raw-loader": "^4.0.2",
|
|
111
114
|
"rimraf": "^3.0.2",
|
|
115
|
+
"stringify-object": "^3.3.0",
|
|
116
|
+
"tmp": "^0.2.1",
|
|
112
117
|
"ts-loader": "^9.2.6",
|
|
118
|
+
"typedoc": "^0.22.8",
|
|
113
119
|
"typescript-json-schema": "^0.50.1",
|
|
114
120
|
"webpack": "^5.59.0"
|
|
115
121
|
},
|
|
@@ -120,6 +126,10 @@
|
|
|
120
126
|
"scrypted-package-json": "bin/scrypted-package-json.js",
|
|
121
127
|
"scrypted-readme": "bin/scrypted-readme.js",
|
|
122
128
|
"scrypted-webpack": "bin/scrypted-webpack.js"
|
|
129
|
+
},
|
|
130
|
+
"devDependencies": {
|
|
131
|
+
"@types/stringify-object": "^4.0.0",
|
|
132
|
+
"ts-node": "^10.4.0"
|
|
123
133
|
}
|
|
124
134
|
},
|
|
125
135
|
"../../sdk": {
|
|
@@ -2149,6 +2159,12 @@
|
|
|
2149
2159
|
"integrity": "sha512-e5DuY7mZedrV8rrgEnm1gPmy4h2x11ryUTnkjmbdR6SWGCS3Qvz1ZJudtBIrbPNEhnpGM634SL7ZHQDz7dsBCg==",
|
|
2150
2160
|
"dev": true
|
|
2151
2161
|
},
|
|
2162
|
+
"node_modules/@types/draggabilly": {
|
|
2163
|
+
"version": "2.1.3",
|
|
2164
|
+
"resolved": "https://registry.npmjs.org/@types/draggabilly/-/draggabilly-2.1.3.tgz",
|
|
2165
|
+
"integrity": "sha512-cMscIZh3/Re/4APHOuod1PwfGeKXW5LID4VFD/By8lWNWR1s+zqRaXT5WDShDX3zKJHF33iabKgzCTAfgGcm5g==",
|
|
2166
|
+
"dev": true
|
|
2167
|
+
},
|
|
2152
2168
|
"node_modules/@types/engine.io-client": {
|
|
2153
2169
|
"version": "3.1.5",
|
|
2154
2170
|
"resolved": "https://registry.npmjs.org/@types/engine.io-client/-/engine.io-client-3.1.5.tgz",
|
|
@@ -7242,6 +7258,15 @@
|
|
|
7242
7258
|
"integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==",
|
|
7243
7259
|
"dev": true
|
|
7244
7260
|
},
|
|
7261
|
+
"node_modules/draggabilly": {
|
|
7262
|
+
"version": "2.3.0",
|
|
7263
|
+
"resolved": "https://registry.npmjs.org/draggabilly/-/draggabilly-2.3.0.tgz",
|
|
7264
|
+
"integrity": "sha512-gSsHrIE3rYK9fhK2vQC83t2YsbKbAHQkLsxsXw9TI3LUziq8EZXjX8g7eaf/NlrtWTFqgz7FmP/kdIvLjt64wA==",
|
|
7265
|
+
"dependencies": {
|
|
7266
|
+
"get-size": "^2.0.2",
|
|
7267
|
+
"unidragger": "^2.3.0"
|
|
7268
|
+
}
|
|
7269
|
+
},
|
|
7245
7270
|
"node_modules/duplexer": {
|
|
7246
7271
|
"version": "0.1.2",
|
|
7247
7272
|
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",
|
|
@@ -7997,6 +8022,11 @@
|
|
|
7997
8022
|
"node": ">= 0.6"
|
|
7998
8023
|
}
|
|
7999
8024
|
},
|
|
8025
|
+
"node_modules/ev-emitter": {
|
|
8026
|
+
"version": "1.1.1",
|
|
8027
|
+
"resolved": "https://registry.npmjs.org/ev-emitter/-/ev-emitter-1.1.1.tgz",
|
|
8028
|
+
"integrity": "sha512-ipiDYhdQSCZ4hSbX4rMW+XzNKMD1prg/sTvoVmSLkuQ1MVlwjJQQA+sW8tMYR3BLUr9KjodFV4pvzunvRhd33Q=="
|
|
8029
|
+
},
|
|
8000
8030
|
"node_modules/event-pubsub": {
|
|
8001
8031
|
"version": "4.3.0",
|
|
8002
8032
|
"resolved": "https://registry.npmjs.org/event-pubsub/-/event-pubsub-4.3.0.tgz",
|
|
@@ -9286,6 +9316,11 @@
|
|
|
9286
9316
|
"integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==",
|
|
9287
9317
|
"dev": true
|
|
9288
9318
|
},
|
|
9319
|
+
"node_modules/get-size": {
|
|
9320
|
+
"version": "2.0.3",
|
|
9321
|
+
"resolved": "https://registry.npmjs.org/get-size/-/get-size-2.0.3.tgz",
|
|
9322
|
+
"integrity": "sha512-lXNzT/h/dTjTxRbm9BXb+SGxxzkm97h/PCIKtlN/CBCxxmkkIVV21udumMS93MuVTDX583gqc94v3RjuHmI+2Q=="
|
|
9323
|
+
},
|
|
9289
9324
|
"node_modules/get-stream": {
|
|
9290
9325
|
"version": "4.1.0",
|
|
9291
9326
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
|
|
@@ -16581,6 +16616,14 @@
|
|
|
16581
16616
|
"node": ">=4"
|
|
16582
16617
|
}
|
|
16583
16618
|
},
|
|
16619
|
+
"node_modules/unidragger": {
|
|
16620
|
+
"version": "2.3.1",
|
|
16621
|
+
"resolved": "https://registry.npmjs.org/unidragger/-/unidragger-2.3.1.tgz",
|
|
16622
|
+
"integrity": "sha512-u+IgG7AG0MXJTKcdzAIYxCm+W5FcnA9M28203Awl6jIcE3/+9OtEyUX4Wv64y7XNKEVRKPot52IV4V6x7FlF5Q==",
|
|
16623
|
+
"dependencies": {
|
|
16624
|
+
"unipointer": "^2.3.0"
|
|
16625
|
+
}
|
|
16626
|
+
},
|
|
16584
16627
|
"node_modules/union-value": {
|
|
16585
16628
|
"version": "1.0.1",
|
|
16586
16629
|
"resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz",
|
|
@@ -16605,6 +16648,14 @@
|
|
|
16605
16648
|
"node": ">=0.10.0"
|
|
16606
16649
|
}
|
|
16607
16650
|
},
|
|
16651
|
+
"node_modules/unipointer": {
|
|
16652
|
+
"version": "2.3.0",
|
|
16653
|
+
"resolved": "https://registry.npmjs.org/unipointer/-/unipointer-2.3.0.tgz",
|
|
16654
|
+
"integrity": "sha512-m85sAoELCZhogI1owtJV3Dva7GxkHk2lI7A0otw3o0OwCuC/Q9gi7ehddigEYIAYbhkqNdri+dU1QQkrcBvirQ==",
|
|
16655
|
+
"dependencies": {
|
|
16656
|
+
"ev-emitter": "^1.0.1"
|
|
16657
|
+
}
|
|
16658
|
+
},
|
|
16608
16659
|
"node_modules/uniq": {
|
|
16609
16660
|
"version": "1.0.1",
|
|
16610
16661
|
"resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",
|
|
@@ -20658,14 +20709,20 @@
|
|
|
20658
20709
|
"@babel/plugin-transform-typescript": "^7.15.8",
|
|
20659
20710
|
"@babel/preset-typescript": "^7.15.0",
|
|
20660
20711
|
"@types/node": "^16.11.1",
|
|
20712
|
+
"@types/stringify-object": "^4.0.0",
|
|
20661
20713
|
"adm-zip": "^0.4.13",
|
|
20662
20714
|
"axios": "^0.21.4",
|
|
20663
20715
|
"babel-loader": "^8.2.3",
|
|
20664
20716
|
"babel-plugin-const-enum": "^1.1.0",
|
|
20665
20717
|
"esbuild": "^0.13.8",
|
|
20718
|
+
"ncp": "^2.0.0",
|
|
20666
20719
|
"raw-loader": "^4.0.2",
|
|
20667
20720
|
"rimraf": "^3.0.2",
|
|
20721
|
+
"stringify-object": "^3.3.0",
|
|
20722
|
+
"tmp": "^0.2.1",
|
|
20668
20723
|
"ts-loader": "^9.2.6",
|
|
20724
|
+
"ts-node": "^10.4.0",
|
|
20725
|
+
"typedoc": "^0.22.8",
|
|
20669
20726
|
"typescript-json-schema": "^0.50.1",
|
|
20670
20727
|
"webpack": "^5.59.0"
|
|
20671
20728
|
}
|
|
@@ -20732,6 +20789,12 @@
|
|
|
20732
20789
|
"integrity": "sha512-e5DuY7mZedrV8rrgEnm1gPmy4h2x11ryUTnkjmbdR6SWGCS3Qvz1ZJudtBIrbPNEhnpGM634SL7ZHQDz7dsBCg==",
|
|
20733
20790
|
"dev": true
|
|
20734
20791
|
},
|
|
20792
|
+
"@types/draggabilly": {
|
|
20793
|
+
"version": "2.1.3",
|
|
20794
|
+
"resolved": "https://registry.npmjs.org/@types/draggabilly/-/draggabilly-2.1.3.tgz",
|
|
20795
|
+
"integrity": "sha512-cMscIZh3/Re/4APHOuod1PwfGeKXW5LID4VFD/By8lWNWR1s+zqRaXT5WDShDX3zKJHF33iabKgzCTAfgGcm5g==",
|
|
20796
|
+
"dev": true
|
|
20797
|
+
},
|
|
20735
20798
|
"@types/engine.io-client": {
|
|
20736
20799
|
"version": "3.1.5",
|
|
20737
20800
|
"resolved": "https://registry.npmjs.org/@types/engine.io-client/-/engine.io-client-3.1.5.tgz",
|
|
@@ -24868,6 +24931,15 @@
|
|
|
24868
24931
|
"integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==",
|
|
24869
24932
|
"dev": true
|
|
24870
24933
|
},
|
|
24934
|
+
"draggabilly": {
|
|
24935
|
+
"version": "2.3.0",
|
|
24936
|
+
"resolved": "https://registry.npmjs.org/draggabilly/-/draggabilly-2.3.0.tgz",
|
|
24937
|
+
"integrity": "sha512-gSsHrIE3rYK9fhK2vQC83t2YsbKbAHQkLsxsXw9TI3LUziq8EZXjX8g7eaf/NlrtWTFqgz7FmP/kdIvLjt64wA==",
|
|
24938
|
+
"requires": {
|
|
24939
|
+
"get-size": "^2.0.2",
|
|
24940
|
+
"unidragger": "^2.3.0"
|
|
24941
|
+
}
|
|
24942
|
+
},
|
|
24871
24943
|
"duplexer": {
|
|
24872
24944
|
"version": "0.1.2",
|
|
24873
24945
|
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",
|
|
@@ -25440,6 +25512,11 @@
|
|
|
25440
25512
|
"integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
|
|
25441
25513
|
"dev": true
|
|
25442
25514
|
},
|
|
25515
|
+
"ev-emitter": {
|
|
25516
|
+
"version": "1.1.1",
|
|
25517
|
+
"resolved": "https://registry.npmjs.org/ev-emitter/-/ev-emitter-1.1.1.tgz",
|
|
25518
|
+
"integrity": "sha512-ipiDYhdQSCZ4hSbX4rMW+XzNKMD1prg/sTvoVmSLkuQ1MVlwjJQQA+sW8tMYR3BLUr9KjodFV4pvzunvRhd33Q=="
|
|
25519
|
+
},
|
|
25443
25520
|
"event-pubsub": {
|
|
25444
25521
|
"version": "4.3.0",
|
|
25445
25522
|
"resolved": "https://registry.npmjs.org/event-pubsub/-/event-pubsub-4.3.0.tgz",
|
|
@@ -26482,6 +26559,11 @@
|
|
|
26482
26559
|
"integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==",
|
|
26483
26560
|
"dev": true
|
|
26484
26561
|
},
|
|
26562
|
+
"get-size": {
|
|
26563
|
+
"version": "2.0.3",
|
|
26564
|
+
"resolved": "https://registry.npmjs.org/get-size/-/get-size-2.0.3.tgz",
|
|
26565
|
+
"integrity": "sha512-lXNzT/h/dTjTxRbm9BXb+SGxxzkm97h/PCIKtlN/CBCxxmkkIVV21udumMS93MuVTDX583gqc94v3RjuHmI+2Q=="
|
|
26566
|
+
},
|
|
26485
26567
|
"get-stream": {
|
|
26486
26568
|
"version": "4.1.0",
|
|
26487
26569
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
|
|
@@ -32345,6 +32427,14 @@
|
|
|
32345
32427
|
"integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==",
|
|
32346
32428
|
"dev": true
|
|
32347
32429
|
},
|
|
32430
|
+
"unidragger": {
|
|
32431
|
+
"version": "2.3.1",
|
|
32432
|
+
"resolved": "https://registry.npmjs.org/unidragger/-/unidragger-2.3.1.tgz",
|
|
32433
|
+
"integrity": "sha512-u+IgG7AG0MXJTKcdzAIYxCm+W5FcnA9M28203Awl6jIcE3/+9OtEyUX4Wv64y7XNKEVRKPot52IV4V6x7FlF5Q==",
|
|
32434
|
+
"requires": {
|
|
32435
|
+
"unipointer": "^2.3.0"
|
|
32436
|
+
}
|
|
32437
|
+
},
|
|
32348
32438
|
"union-value": {
|
|
32349
32439
|
"version": "1.0.1",
|
|
32350
32440
|
"resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz",
|
|
@@ -32365,6 +32455,14 @@
|
|
|
32365
32455
|
}
|
|
32366
32456
|
}
|
|
32367
32457
|
},
|
|
32458
|
+
"unipointer": {
|
|
32459
|
+
"version": "2.3.0",
|
|
32460
|
+
"resolved": "https://registry.npmjs.org/unipointer/-/unipointer-2.3.0.tgz",
|
|
32461
|
+
"integrity": "sha512-m85sAoELCZhogI1owtJV3Dva7GxkHk2lI7A0otw3o0OwCuC/Q9gi7ehddigEYIAYbhkqNdri+dU1QQkrcBvirQ==",
|
|
32462
|
+
"requires": {
|
|
32463
|
+
"ev-emitter": "^1.0.1"
|
|
32464
|
+
}
|
|
32465
|
+
},
|
|
32368
32466
|
"uniq": {
|
|
32369
32467
|
"version": "1.0.1",
|
|
32370
32468
|
"resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",
|
package/ui/package.json
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"apexcharts": "^3.28.3",
|
|
23
23
|
"axios": "^0.19.2",
|
|
24
24
|
"core-js": "^2.6.12",
|
|
25
|
+
"draggabilly": "^2.3.0",
|
|
25
26
|
"engine.io-client": "^5.2.0",
|
|
26
27
|
"feather-icons": "^4.28.0",
|
|
27
28
|
"lodash": "^4.17.21",
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"@babel/preset-typescript": "^7.13.0",
|
|
58
59
|
"@types/blob-stream": "^0.1.30",
|
|
59
60
|
"@types/dom-webcodecs": "^0.1.0",
|
|
61
|
+
"@types/draggabilly": "^2.1.3",
|
|
60
62
|
"@types/engine.io-client": "^3.1.5",
|
|
61
63
|
"@types/lodash": "^4.14.172",
|
|
62
64
|
"@types/mkdirp": "^1.0.1",
|