Samsung / SamsungAutomationStudio

Samsung Automation Studio is to provide development tools and execution environment that can easily configure application logic by connecting both Samsung service and 3rd party service. This project is to share the node for open source NodeRED developed by Samsung Automation Studio team to the community. If you are using nodered, you can easily install the node we provide. And you can use Samsung's IoT and AI-related services more easily, and you can have an extended experience in conjunction with your own services.
Apache License 2.0
56 stars 29 forks source link

Dependency Issue with agent-base <6.0.0 and Node-RED 2.0 #37

Closed sammachin closed 2 years ago

sammachin commented 2 years ago

Hi,

We've detected that your node has a dependency on an old version of agent-base (<6.0.0) , These old versions were patching a core node.js function in a way that could break other libraries - including one we started using in Node-RED 2.0 for the HTTP Request node. Therefore any users that upgrade to Node-RED 2.0 and have your node installed (or later try to install it) will get errors when using the http-request node.

Could you please take a look at your dependencies and see if you can update the versions so that you are no longer dependent on agent-base before version 6.0.0

Note this could be a module that you are using has a dependency on agent-base so you might need to check for updates to that module, to help you we've attached your nodes dependency tree below

More details on this issue and the warning message that is now displayed in Node-RED 2.0.2 are on the forum at link https://discourse.nodered.org/t/node-red-2-0-2-released/48767

└─ node-red-contrib-samsung-automation-studio-nodes@1.1.11
   ├─ is-utf8@0.2.1
   ├─ cookie-parser@1.4.5
   │  ├─ cookie@0.4.0
   │  └─ cookie-signature@1.0.6
   ├─ cors@2.8.5
   │  ├─ object-assign@4.1.1
   │  └─ vary@1.1.2
   ├─ multer@1.4.2
   │  ├─ append-field@1.0.0
   │  ├─ busboy@0.2.14
   │  │  ├─ dicer@0.2.5
   │  │  │  ├─ streamsearch@0.1.2
   │  │  │  └─ readable-stream@1.1.14
   │  │  └─ readable-stream@1.1.14
   │  │     ├─ core-util-is@1.0.2
   │  │     ├─ isarray@0.0.1
   │  │     ├─ inherits@2.0.4
   │  │     └─ string_decoder@0.10.31
   │  ├─ object-assign@4.1.1
   │  ├─ on-finished@2.3.0
   │  │  └─ ee-first@1.1.1
   │  ├─ xtend@4.0.2
   │  ├─ type-is@1.6.18
   │  │  ├─ media-typer@0.3.0
   │  │  └─ mime-types@2.1.31
   │  ├─ concat-stream@1.6.2
   │  │  ├─ buffer-from@1.1.1
   │  │  ├─ typedarray@0.0.6
   │  │  ├─ readable-stream@2.3.7
   │  │  └─ inherits@2.0.4
   │  └─ mkdirp@0.5.5
   │     └─ minimist@1.2.5
   ├─ http-signature@1.3.5
   │  ├─ assert-plus@1.0.0
   │  ├─ jsprim@1.4.1
   │  │  ├─ assert-plus@1.0.0
   │  │  ├─ extsprintf@1.3.0
   │  │  ├─ json-schema@0.2.3
   │  │  └─ verror@1.10.0
   │  │     ├─ core-util-is@1.0.2
   │  │     ├─ assert-plus@1.0.0
   │  │     └─ extsprintf@1.4.0
   │  └─ sshpk@1.16.1
   │     ├─ assert-plus@1.0.0
   │     ├─ getpass@0.1.7
   │     │  └─ assert-plus@1.0.0
   │     ├─ safer-buffer@2.1.2
   │     ├─ asn1@0.2.4
   │     │  └─ safer-buffer@2.1.2
   │     ├─ dashdash@1.14.1
   │     │  └─ assert-plus@1.0.0
   │     ├─ ecc-jsbn@0.1.2
   │     │  ├─ jsbn@0.1.1
   │     │  └─ safer-buffer@2.1.2
   │     ├─ jsbn@0.1.1
   │     ├─ tweetnacl@0.14.5
   │     └─ bcrypt-pbkdf@1.0.2
   │        └─ tweetnacl@0.14.5
   ├─ body-parser@1.19.0
   │  ├─ bytes@3.1.0
   │  ├─ content-type@1.0.4
   │  ├─ depd@1.1.2
   │  ├─ http-errors@1.7.2
   │  │  ├─ statuses@1.5.0
   │  │  ├─ depd@1.1.2
   │  │  ├─ setprototypeof@1.1.1
   │  │  ├─ toidentifier@1.0.0
   │  │  └─ inherits@2.0.3
   │  ├─ debug@2.6.9
   │  │  └─ ms@2.0.0
   │  ├─ iconv-lite@0.4.24
   │  │  └─ safer-buffer@2.1.2
   │  ├─ on-finished@2.3.0
   │  ├─ type-is@1.6.18
   │  ├─ qs@6.7.0
   │  └─ raw-body@2.4.0
   │     ├─ bytes@3.1.0
   │     ├─ http-errors@1.7.2
   │     ├─ unpipe@1.0.0
   │     └─ iconv-lite@0.4.24
   ├─ jsonwebtoken@8.5.1
   │  ├─ lodash.includes@4.3.0
   │  ├─ lodash.isnumber@3.0.3
   │  ├─ jws@3.2.2
   │  │  ├─ jwa@1.4.1
   │  │  │  ├─ ecdsa-sig-formatter@1.0.11
   │  │  │  │  └─ safe-buffer@5.2.1
   │  │  │  ├─ buffer-equal-constant-time@1.0.1
   │  │  │  └─ safe-buffer@5.2.1
   │  │  └─ safe-buffer@5.2.1
   │  ├─ lodash.isboolean@3.0.3
   │  ├─ lodash.isinteger@4.0.4
   │  ├─ lodash.isstring@4.0.1
   │  ├─ ms@2.1.3
   │  ├─ lodash.once@4.1.1
   │  ├─ lodash.isplainobject@4.0.6
   │  └─ semver@5.7.1
   ├─ mustache@4.2.0
   ├─ on-headers@1.0.2
   ├─ proxy-agent@3.1.1
   │  ├─ http-proxy-agent@2.1.0
   │  │  ├─ agent-base@4.3.0
   │  │  └─ debug@3.1.0
   │  │     └─ ms@2.0.0
   │  ├─ agent-base@4.3.0
   │  │  └─ es6-promisify@5.0.0
   │  │     └─ es6-promise@4.2.8
   │  ├─ https-proxy-agent@3.0.1
   │  │  ├─ agent-base@4.3.0
   │  │  └─ debug@3.2.7
   │  │     └─ ms@2.1.3
   │  ├─ debug@4.3.2
   │  │  └─ ms@2.1.2
   │  ├─ pac-proxy-agent@3.0.1
   │  │  ├─ debug@4.3.2
   │  │  ├─ http-proxy-agent@2.1.0
   │  │  ├─ pac-resolver@3.0.0
   │  │  │  ├─ co@4.6.0
   │  │  │  ├─ degenerator@1.0.4
   │  │  │  │  ├─ esprima@3.1.3
   │  │  │  │  ├─ escodegen@1.14.3
   │  │  │  │  │  ├─ estraverse@4.3.0
   │  │  │  │  │  ├─ esutils@2.0.3
   │  │  │  │  │  ├─ source-map@0.6.1
   │  │  │  │  │  ├─ esprima@4.0.1
   │  │  │  │  │  └─ optionator@0.8.3
   │  │  │  │  │     ├─ fast-levenshtein@2.0.6
   │  │  │  │  │     ├─ levn@0.3.0
   │  │  │  │  │     │  ├─ type-check@0.3.2
   │  │  │  │  │     │  └─ prelude-ls@1.1.2
   │  │  │  │  │     ├─ prelude-ls@1.1.2
   │  │  │  │  │     ├─ word-wrap@1.2.3
   │  │  │  │  │     ├─ deep-is@0.1.3
   │  │  │  │  │     └─ type-check@0.3.2
   │  │  │  │  │        └─ prelude-ls@1.1.2
   │  │  │  │  └─ ast-types@0.14.2
   │  │  │  │     └─ tslib@2.3.0
   │  │  │  ├─ thunkify@2.1.2
   │  │  │  ├─ ip@1.1.5
   │  │  │  └─ netmask@1.0.6
   │  │  ├─ get-uri@2.0.4
   │  │  │  ├─ ftp@0.3.10
   │  │  │  │  ├─ xregexp@2.0.0
   │  │  │  │  └─ readable-stream@1.1.14
   │  │  │  ├─ data-uri-to-buffer@1.2.0
   │  │  │  ├─ extend@3.0.2
   │  │  │  ├─ debug@2.6.9
   │  │  │  ├─ file-uri-to-path@1.0.0
   │  │  │  └─ readable-stream@2.3.7
   │  │  ├─ agent-base@4.3.0
   │  │  ├─ https-proxy-agent@3.0.1
   │  │  ├─ raw-body@2.4.1
   │  │  │  ├─ unpipe@1.0.0
   │  │  │  ├─ http-errors@1.7.3
   │  │  │  │  ├─ setprototypeof@1.1.1
   │  │  │  │  ├─ inherits@2.0.4
   │  │  │  │  ├─ depd@1.1.2
   │  │  │  │  ├─ toidentifier@1.0.0
   │  │  │  │  └─ statuses@1.5.0
   │  │  │  ├─ iconv-lite@0.4.24
   │  │  │  └─ bytes@3.1.0
   │  │  └─ socks-proxy-agent@4.0.2
   │  ├─ lru-cache@5.1.1
   │  │  └─ yallist@3.1.1
   │  ├─ proxy-from-env@1.1.0
   │  └─ socks-proxy-agent@4.0.2
   │     ├─ agent-base@4.2.1
   │     │  └─ es6-promisify@5.0.0
   │     └─ socks@2.3.3
   │        ├─ ip@1.1.5
   │        └─ smart-buffer@4.1.0
   ├─ pg@8.6.0
   │  ├─ packet-reader@1.0.0
   │  ├─ buffer-writer@2.0.0
   │  ├─ pg-protocol@1.5.0
   │  ├─ pgpass@1.0.4
   │  │  └─ split2@3.2.2
   │  │     └─ readable-stream@3.6.0
   │  │        ├─ string_decoder@1.3.0
   │  │        │  └─ safe-buffer@5.2.1
   │  │        ├─ inherits@2.0.4
   │  │        └─ util-deprecate@1.0.2
   │  ├─ pg-types@2.2.0
   │  │  ├─ pg-int8@1.0.1
   │  │  ├─ postgres-bytea@1.0.0
   │  │  ├─ postgres-array@2.0.0
   │  │  ├─ postgres-date@1.0.7
   │  │  └─ postgres-interval@1.2.0
   │  │     └─ xtend@4.0.2
   │  ├─ pg-connection-string@2.5.0
   │  └─ pg-pool@3.3.0
   ├─ mysql@2.18.1
   │  ├─ bignumber.js@9.0.0
   │  ├─ readable-stream@2.3.7
   │  │  ├─ isarray@1.0.0
   │  │  ├─ process-nextick-args@2.0.1
   │  │  ├─ inherits@2.0.4
   │  │  ├─ core-util-is@1.0.2
   │  │  ├─ string_decoder@1.1.1
   │  │  │  └─ safe-buffer@5.1.2
   │  │  ├─ safe-buffer@5.1.2
   │  │  └─ util-deprecate@1.0.2
   │  ├─ safe-buffer@5.1.2
   │  └─ sqlstring@2.3.1
   ├─ request-promise@4.2.6
   │  ├─ request-promise-core@1.1.4
   │  │  └─ lodash@4.17.21
   │  ├─ stealthy-require@1.1.1
   │  ├─ tough-cookie@2.5.0
   │  │  ├─ punycode@2.1.1
   │  │  └─ psl@1.8.0
   │  └─ bluebird@3.7.2
   ├─ when@3.7.8
   ├─ aws-sdk@2.951.0
   │  ├─ events@1.1.1
   │  ├─ ieee754@1.1.13
   │  ├─ buffer@4.9.2
   │  │  ├─ ieee754@1.2.1
   │  │  ├─ base64-js@1.5.1
   │  │  └─ isarray@1.0.0
   │  ├─ querystring@0.2.0
   │  ├─ jmespath@0.15.0
   │  ├─ sax@1.2.1
   │  ├─ url@0.10.3
   │  │  ├─ querystring@0.2.0
   │  │  └─ punycode@1.3.2
   │  ├─ uuid@3.3.2
   │  └─ xml2js@0.4.19
   │     ├─ xmlbuilder@9.0.7
   │     └─ sax@1.2.4
   └─ request@2.88.2
      ├─ aws-sign2@0.7.0
      ├─ combined-stream@1.0.8
      │  └─ delayed-stream@1.0.0
      ├─ aws4@1.11.0
      ├─ extend@3.0.2
      ├─ caseless@0.12.0
      ├─ forever-agent@0.6.1
      ├─ form-data@2.3.3
      │  ├─ asynckit@0.4.0
      │  ├─ mime-types@2.1.31
      │  └─ combined-stream@1.0.8
      ├─ isstream@0.1.2
      ├─ har-validator@5.1.5
      │  ├─ har-schema@2.0.0
      │  └─ ajv@6.12.6
      │     ├─ fast-json-stable-stringify@2.1.0
      │     ├─ fast-deep-equal@3.1.3
      │     ├─ json-schema-traverse@0.4.1
      │     └─ uri-js@4.4.1
      │        └─ punycode@2.1.1
      ├─ json-stringify-safe@5.0.1
      ├─ mime-types@2.1.31
      │  └─ mime-db@1.48.0
      ├─ is-typedarray@1.0.0
      ├─ http-signature@1.2.0
      │  ├─ assert-plus@1.0.0
      │  ├─ sshpk@1.16.1
      │  └─ jsprim@1.4.1
      ├─ performance-now@2.1.0
      ├─ oauth-sign@0.9.0
      ├─ tunnel-agent@0.6.0
      │  └─ safe-buffer@5.2.1
      ├─ safe-buffer@5.2.1
      ├─ qs@6.5.2
      ├─ uuid@3.4.0
      └─ tough-cookie@2.5.0

Thanks in advance for looking into this.

Sam

PS Sorry for the templated issue but we've got a number of nodes with the issue so I'm automating the issue creation.