+46
| const mqtt = require('mqtt') | ||
| class Hub { | ||
| constructor(accountID, apiKey, clientID) { | ||
| this.accountID = accountID | ||
| this.apiKey = apiKey | ||
| this.handlers = {} | ||
| } | ||
| connect(handler) { | ||
| this.client = mqtt.connect('mqtt://hub.labstack.com', { | ||
| username: this.accountID, | ||
| password: this.apiKey | ||
| }) | ||
| this.client.on('connect', function () { | ||
| if (handler) { | ||
| handler() | ||
| } | ||
| }) | ||
| this.client.on('message', (topic, message) => { | ||
| this.handlers[topic](message.toString()) | ||
| }) | ||
| // this.client.on('end', () => { | ||
| // }) | ||
| } | ||
| publish(topic, message) { | ||
| this.client.publish(topic, message) | ||
| } | ||
| subscribe(topic, handler) { | ||
| topic = `${this.accountID}/${topic}` | ||
| this.client.subscribe(topic) | ||
| this.handlers[topic] = handler | ||
| } | ||
| unsubscribe(self, topic) { | ||
| this.client.unsubscribe(topic) | ||
| } | ||
| disconnect(self) { | ||
| this.client.end() | ||
| } | ||
| } | ||
| module.exports = Hub |
+29
| const express = require('express') | ||
| const labstack = require('..') | ||
| const Hub = labstack.Hub | ||
| const hub = new Hub('ie8t5fgcb6s2vaxgg02y', 'VouXFKK2A1TkuMUVz3wV2zvmapIdRuFM') | ||
| hub.connect(() => { | ||
| console.log('connect') | ||
| }) | ||
| hub.subscribe('hello', (message) => { | ||
| console.log(message) | ||
| }) | ||
| // const app = express() | ||
| // const {cube} = labstack.express | ||
| // app.use(cube(process.env.LABSTACK_KEY, { | ||
| // batchSize: 1 | ||
| // })) | ||
| // app.get('/', (req, res, next) => { | ||
| // res.send('Hello, World!') | ||
| // }) | ||
| // app.get('/error', (req, res, next) => { | ||
| // throw new Error('Error!') | ||
| // }) | ||
| // app.use((err, req, res, next) => { | ||
| // next(err) | ||
| // }) | ||
| // app.listen(3001) |
+1
-0
| module.exports = { | ||
| Client: require('./lib/client').Client, | ||
| APIError: require('./lib/client').APIError, | ||
| Hub: require('./lib/hub'), | ||
| express: require('./lib/express'), | ||
| koa: require('./lib/koa') | ||
| } |
+2
-1
| { | ||
| "name": "labstack", | ||
| "version": "0.31.6", | ||
| "version": "0.31.7", | ||
| "description": "Official Node.js client library for the LabStack platform", | ||
@@ -26,2 +26,3 @@ "main": "index.js", | ||
| "microtime": "^2.1.8", | ||
| "mqtt": "^2.18.0", | ||
| "pidusage": "^2.0.6" | ||
@@ -28,0 +29,0 @@ }, |
+312
-10
@@ -39,2 +39,6 @@ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
| async-limiter@~1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" | ||
| asynckit@^0.4.0: | ||
@@ -44,2 +48,6 @@ version "0.4.0" | ||
| balanced-match@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" | ||
| bindings@1.3.x: | ||
@@ -49,3 +57,3 @@ version "1.3.0" | ||
| bl@^1.0.0: | ||
| bl@^1.0.0, bl@^1.2.1: | ||
| version "1.2.2" | ||
@@ -72,2 +80,9 @@ resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.2.tgz#a160911717103c07410cef63ef51b397c025af9c" | ||
| brace-expansion@^1.1.7: | ||
| version "1.1.11" | ||
| resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" | ||
| dependencies: | ||
| balanced-match "^1.0.0" | ||
| concat-map "0.0.1" | ||
| buffer-alloc-unsafe@^0.1.0: | ||
@@ -88,2 +103,6 @@ version "0.1.1" | ||
| buffer-from@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.0.0.tgz#4cb8832d23612589b0406e9e2956c17f06fdf531" | ||
| bytes@3.0.0: | ||
@@ -93,2 +112,9 @@ version "3.0.0" | ||
| callback-stream@^1.0.2: | ||
| version "1.1.0" | ||
| resolved "https://registry.yarnpkg.com/callback-stream/-/callback-stream-1.1.0.tgz#4701a51266f06e06eaa71fc17233822d875f4908" | ||
| dependencies: | ||
| inherits "^2.0.1" | ||
| readable-stream "> 1.0.0 < 3.0.0" | ||
| chownr@^1.0.1: | ||
@@ -112,2 +138,22 @@ version "1.0.1" | ||
| commist@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/commist/-/commist-1.0.0.tgz#c0c352501cf6f52e9124e3ef89c9806e2022ebef" | ||
| dependencies: | ||
| leven "^1.0.0" | ||
| minimist "^1.1.0" | ||
| concat-map@0.0.1: | ||
| version "0.0.1" | ||
| resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" | ||
| concat-stream@^1.6.2: | ||
| version "1.6.2" | ||
| resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" | ||
| dependencies: | ||
| buffer-from "^1.0.0" | ||
| inherits "^2.0.3" | ||
| readable-stream "^2.2.2" | ||
| typedarray "^0.0.6" | ||
| console-control-strings@^1.0.0, console-control-strings@~1.1.0: | ||
@@ -198,2 +244,11 @@ version "1.1.0" | ||
| duplexify@^3.5.1, duplexify@^3.6.0: | ||
| version "3.6.0" | ||
| resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.6.0.tgz#592903f5d80b38d037220541264d69a198fb3410" | ||
| dependencies: | ||
| end-of-stream "^1.0.0" | ||
| inherits "^2.0.1" | ||
| readable-stream "^2.0.0" | ||
| stream-shift "^1.0.0" | ||
| ee-first@1.1.1: | ||
@@ -207,3 +262,3 @@ version "1.1.1" | ||
| end-of-stream@^1.0.0, end-of-stream@^1.1.0: | ||
| end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1: | ||
| version "1.4.1" | ||
@@ -265,2 +320,6 @@ resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" | ||
| extend@^3.0.0: | ||
| version "3.0.1" | ||
| resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" | ||
| finalhandler@1.1.1: | ||
@@ -298,2 +357,6 @@ version "1.1.1" | ||
| fs.realpath@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" | ||
| gauge@~2.7.3: | ||
@@ -320,2 +383,35 @@ version "2.7.4" | ||
| glob-parent@^3.1.0: | ||
| version "3.1.0" | ||
| resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" | ||
| dependencies: | ||
| is-glob "^3.1.0" | ||
| path-dirname "^1.0.0" | ||
| glob-stream@^6.1.0: | ||
| version "6.1.0" | ||
| resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4" | ||
| dependencies: | ||
| extend "^3.0.0" | ||
| glob "^7.1.1" | ||
| glob-parent "^3.1.0" | ||
| is-negated-glob "^1.0.0" | ||
| ordered-read-streams "^1.0.0" | ||
| pumpify "^1.3.5" | ||
| readable-stream "^2.1.5" | ||
| remove-trailing-separator "^1.0.1" | ||
| to-absolute-glob "^2.0.0" | ||
| unique-stream "^2.0.2" | ||
| glob@^7.1.1: | ||
| version "7.1.2" | ||
| resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" | ||
| dependencies: | ||
| fs.realpath "^1.0.0" | ||
| inflight "^1.0.4" | ||
| inherits "2" | ||
| minimatch "^3.0.4" | ||
| once "^1.3.0" | ||
| path-is-absolute "^1.0.0" | ||
| got@^7.1.0: | ||
@@ -354,2 +450,11 @@ version "7.1.0" | ||
| help-me@^1.0.1: | ||
| version "1.1.0" | ||
| resolved "https://registry.yarnpkg.com/help-me/-/help-me-1.1.0.tgz#8f2d508d0600b4a456da2f086556e7e5c056a3c6" | ||
| dependencies: | ||
| callback-stream "^1.0.2" | ||
| glob-stream "^6.1.0" | ||
| through2 "^2.0.1" | ||
| xtend "^4.0.0" | ||
| http-assert@^1.1.0: | ||
@@ -384,3 +489,10 @@ version "1.3.0" | ||
| inherits@2.0.3, inherits@~2.0.3: | ||
| inflight@^1.0.4: | ||
| version "1.0.6" | ||
| resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" | ||
| dependencies: | ||
| once "^1.3.0" | ||
| wrappy "1" | ||
| inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3: | ||
| version "2.0.3" | ||
@@ -397,2 +509,13 @@ resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" | ||
| is-absolute@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" | ||
| dependencies: | ||
| is-relative "^1.0.0" | ||
| is-windows "^1.0.1" | ||
| is-extglob@^2.1.0: | ||
| version "2.1.1" | ||
| resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" | ||
| is-fullwidth-code-point@^1.0.0: | ||
@@ -412,2 +535,12 @@ version "1.0.0" | ||
| is-glob@^3.1.0: | ||
| version "3.1.0" | ||
| resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" | ||
| dependencies: | ||
| is-extglob "^2.1.0" | ||
| is-negated-glob@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2" | ||
| is-object@^1.0.1: | ||
@@ -421,2 +554,8 @@ version "1.0.1" | ||
| is-relative@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" | ||
| dependencies: | ||
| is-unc-path "^1.0.0" | ||
| is-retry-allowed@^1.0.0: | ||
@@ -430,2 +569,12 @@ version "1.1.0" | ||
| is-unc-path@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" | ||
| dependencies: | ||
| unc-path-regex "^0.1.2" | ||
| is-windows@^1.0.1: | ||
| version "1.0.2" | ||
| resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" | ||
| isarray@~1.0.0: | ||
@@ -442,2 +591,12 @@ version "1.0.0" | ||
| json-stable-stringify@^1.0.0: | ||
| version "1.0.1" | ||
| resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" | ||
| dependencies: | ||
| jsonify "~0.0.0" | ||
| jsonify@~0.0.0: | ||
| version "0.0.0" | ||
| resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" | ||
| keygrip@~1.0.2: | ||
@@ -497,2 +656,6 @@ version "1.0.2" | ||
| leven@^1.0.0: | ||
| version "1.0.2" | ||
| resolved "https://registry.yarnpkg.com/leven/-/leven-1.0.2.tgz#9144b6eebca5f1d0680169f1a6770dcea60b75c3" | ||
| lowercase-keys@^1.0.0: | ||
@@ -550,2 +713,8 @@ version "1.0.0" | ||
| minimatch@^3.0.4: | ||
| version "3.0.4" | ||
| resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" | ||
| dependencies: | ||
| brace-expansion "^1.1.7" | ||
| minimist@0.0.8: | ||
@@ -555,3 +724,3 @@ version "0.0.8" | ||
| minimist@^1.2.0: | ||
| minimist@^1.1.0, minimist@^1.2.0: | ||
| version "1.2.0" | ||
@@ -566,2 +735,29 @@ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" | ||
| mqtt-packet@^5.6.0: | ||
| version "5.6.0" | ||
| resolved "https://registry.yarnpkg.com/mqtt-packet/-/mqtt-packet-5.6.0.tgz#923fb704d0ce0bd6ac81c7e1cc09469b1512d2fd" | ||
| dependencies: | ||
| bl "^1.2.1" | ||
| inherits "^2.0.3" | ||
| process-nextick-args "^2.0.0" | ||
| safe-buffer "^5.1.0" | ||
| mqtt@^2.18.0: | ||
| version "2.18.0" | ||
| resolved "https://registry.yarnpkg.com/mqtt/-/mqtt-2.18.0.tgz#e3b239263a99a318beaf2cd5b8ef00a3d4eb7a60" | ||
| dependencies: | ||
| commist "^1.0.0" | ||
| concat-stream "^1.6.2" | ||
| end-of-stream "^1.4.1" | ||
| help-me "^1.0.1" | ||
| inherits "^2.0.3" | ||
| minimist "^1.2.0" | ||
| mqtt-packet "^5.6.0" | ||
| pump "^3.0.0" | ||
| readable-stream "^2.3.6" | ||
| reinterval "^1.1.0" | ||
| split2 "^2.1.1" | ||
| websocket-stream "^5.1.2" | ||
| xtend "^4.0.1" | ||
| ms@2.0.0: | ||
@@ -612,3 +808,3 @@ version "2.0.0" | ||
| once@^1.3.1, once@^1.4.0: | ||
| once@^1.3.0, once@^1.3.1, once@^1.4.0: | ||
| version "1.4.0" | ||
@@ -623,2 +819,8 @@ resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" | ||
| ordered-read-streams@^1.0.0: | ||
| version "1.0.1" | ||
| resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e" | ||
| dependencies: | ||
| readable-stream "^2.0.1" | ||
| os-homedir@^1.0.1: | ||
@@ -646,2 +848,10 @@ version "1.0.2" | ||
| path-dirname@^1.0.0: | ||
| version "1.0.2" | ||
| resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" | ||
| path-is-absolute@^1.0.0: | ||
| version "1.0.1" | ||
| resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" | ||
| path-to-regexp@0.1.7: | ||
@@ -679,3 +889,3 @@ version "0.1.7" | ||
| process-nextick-args@~2.0.0: | ||
| process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: | ||
| version "2.0.0" | ||
@@ -698,3 +908,3 @@ resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" | ||
| pump@^2.0.1: | ||
| pump@^2.0.0, pump@^2.0.1: | ||
| version "2.0.1" | ||
@@ -706,2 +916,17 @@ resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" | ||
| pump@^3.0.0: | ||
| version "3.0.0" | ||
| resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" | ||
| dependencies: | ||
| end-of-stream "^1.1.0" | ||
| once "^1.3.1" | ||
| pumpify@^1.3.5: | ||
| version "1.5.1" | ||
| resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" | ||
| dependencies: | ||
| duplexify "^3.6.0" | ||
| inherits "^2.0.3" | ||
| pump "^2.0.0" | ||
| qs@6.5.1: | ||
@@ -733,3 +958,3 @@ version "6.5.1" | ||
| readable-stream@^2.0.6, readable-stream@^2.3.0, readable-stream@^2.3.5: | ||
| "readable-stream@> 1.0.0 < 3.0.0", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6: | ||
| version "2.3.6" | ||
@@ -746,2 +971,10 @@ resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" | ||
| reinterval@^1.1.0: | ||
| version "1.1.0" | ||
| resolved "https://registry.yarnpkg.com/reinterval/-/reinterval-1.1.0.tgz#3361ecfa3ca6c18283380dd0bb9546f390f5ece7" | ||
| remove-trailing-separator@^1.0.1: | ||
| version "1.1.0" | ||
| resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" | ||
| safe-buffer@5.1.1, safe-buffer@^5.0.1: | ||
@@ -751,3 +984,3 @@ version "5.1.1" | ||
| safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: | ||
| safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: | ||
| version "5.1.2" | ||
@@ -815,2 +1048,8 @@ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" | ||
| split2@^2.1.1: | ||
| version "2.2.0" | ||
| resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493" | ||
| dependencies: | ||
| through2 "^2.0.2" | ||
| "statuses@>= 1.3.1 < 2", "statuses@>= 1.4.0 < 2", statuses@^1.2.0: | ||
@@ -824,2 +1063,6 @@ version "1.5.0" | ||
| stream-shift@^1.0.0: | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" | ||
| string-width@^1.0.1: | ||
@@ -883,2 +1126,16 @@ version "1.0.2" | ||
| through2-filter@^2.0.0: | ||
| version "2.0.0" | ||
| resolved "https://registry.yarnpkg.com/through2-filter/-/through2-filter-2.0.0.tgz#60bc55a0dacb76085db1f9dae99ab43f83d622ec" | ||
| dependencies: | ||
| through2 "~2.0.0" | ||
| xtend "~4.0.0" | ||
| through2@^2.0.1, through2@^2.0.2, through2@~2.0.0: | ||
| version "2.0.3" | ||
| resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" | ||
| dependencies: | ||
| readable-stream "^2.1.5" | ||
| xtend "~4.0.1" | ||
| timed-out@^4.0.0: | ||
@@ -888,2 +1145,9 @@ version "4.0.1" | ||
| to-absolute-glob@^2.0.0: | ||
| version "2.0.2" | ||
| resolved "https://registry.yarnpkg.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b" | ||
| dependencies: | ||
| is-absolute "^1.0.0" | ||
| is-negated-glob "^1.0.0" | ||
| to-buffer@^1.1.0: | ||
@@ -906,2 +1170,21 @@ version "1.1.1" | ||
| typedarray@^0.0.6: | ||
| version "0.0.6" | ||
| resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" | ||
| ultron@~1.1.0: | ||
| version "1.1.1" | ||
| resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c" | ||
| unc-path-regex@^0.1.2: | ||
| version "0.1.2" | ||
| resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" | ||
| unique-stream@^2.0.2: | ||
| version "2.2.1" | ||
| resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.2.1.tgz#5aa003cfbe94c5ff866c4e7d668bb1c4dbadb369" | ||
| dependencies: | ||
| json-stable-stringify "^1.0.0" | ||
| through2-filter "^2.0.0" | ||
| unpipe@1.0.0, unpipe@~1.0.0: | ||
@@ -933,2 +1216,13 @@ version "1.0.0" | ||
| websocket-stream@^5.1.2: | ||
| version "5.1.2" | ||
| resolved "https://registry.yarnpkg.com/websocket-stream/-/websocket-stream-5.1.2.tgz#1c31c627bcdf34f1a9bdacc9daa15bfa4816d9ad" | ||
| dependencies: | ||
| duplexify "^3.5.1" | ||
| inherits "^2.0.1" | ||
| readable-stream "^2.3.3" | ||
| safe-buffer "^5.1.1" | ||
| ws "^3.2.0" | ||
| xtend "^4.0.0" | ||
| which-pm-runs@^1.0.0: | ||
@@ -948,4 +1242,12 @@ version "1.0.0" | ||
| xtend@^4.0.0: | ||
| ws@^3.2.0: | ||
| version "3.3.3" | ||
| resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.3.tgz#f1cf84fe2d5e901ebce94efaece785f187a228f2" | ||
| dependencies: | ||
| async-limiter "~1.0.0" | ||
| safe-buffer "~5.1.0" | ||
| ultron "~1.1.0" | ||
| xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.0, xtend@~4.0.1: | ||
| version "4.0.1" | ||
| resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
54992
28%17
13.33%432
17.07%7
16.67%6
50%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added