Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appcd-client

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appcd-client - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

yarn.lock

16

dist/client.js

@@ -115,7 +115,13 @@ 'use strict';

const headers = {
'User-Agent': this.userAgent
};
const localeValue = process.env.APPCD_LOCALE || (await (0, _appcdResponse.locale)());
if (localeValue) {
headers['Accept-Language'] = localeValue;
}
const socket = this.socket = new _ws2.default(`ws://${this.host}:${this.port}`, {
headers: {
'Accept-Language': process.env.APPCD_LOCALE || (await (0, _appcdResponse.locale)()),
'User-Agent': this.userAgent
}
headers
});

@@ -289,2 +295,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsaWVudC5qcyJdLCJuYW1lcyI6WyJFcnJvciIsInByZXBhcmVTdGFja1RyYWNlIiwicmVxdWlyZSIsIkNsaWVudCIsImNvbnN0cnVjdG9yIiwib3B0cyIsInNvY2tldCIsInJlcXVlc3RzIiwiaG9zdCIsInBvcnQiLCJUeXBlRXJyb3IiLCJ1c2VyQWdlbnQiLCJjb25zdHJ1Y3RVc2VyQWdlbnQiLCJjb25uZWN0IiwiZW1pdHRlciIsInNldEltbWVkaWF0ZSIsImVtaXQiLCJoZWFkZXJzIiwicHJvY2VzcyIsImVudiIsIkFQUENEX0xPQ0FMRSIsIm9uIiwiZGF0YSIsImpzb24iLCJKU09OIiwicGFyc2UiLCJlIiwibWVzc2FnZSIsImRlY29kZSIsImlkIiwib25jZSIsImVyciIsImNsb3NlIiwicmVxdWVzdCIsInBhdGgiLCJ0eXBlIiwidjQiLCJjbGllbnQiLCJyZXNwb25zZSIsInN0YXR1cyIsInN0YXR1c0NsYXNzIiwiTWF0aCIsImZsb29yIiwiZXJyb3JDb2RlIiwiY29k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MucGxhdGZvcm0pO1xuXHR9XG5cblx0Y29uc3QgYXJjaGl0ZWN0dXJlID0gYXJjaCgpO1xuXHRpZiAoIXBhcnRzLnNvbWUocCA9PiBwID09PSBhcmNoaXRlY3R1cmUpKSB7XG5cdFx0cGFydHMucHVzaChhcmNoaXRlY3R1cmUpO1xuXHR9XG5cblx0cmV0dXJuIHBhcnRzLmpvaW4oJyAnKTtcbn1cbiJdfQ==
{
"name": "appcd-client",
"version": "1.0.0",
"version": "1.0.1",
"description": "The Node.js client for connecting to the Appc Daemon.",

@@ -25,4 +25,4 @@ "main": "./dist/client",

"dependencies": {
"appcd-response": "^1.0.0",
"appcd-util": "^1.0.0",
"appcd-response": "^1.0.1",
"appcd-util": "^1.0.1",
"msgpack-lite": "^0.1.26",

@@ -34,3 +34,3 @@ "source-map-support": "^0.5.0",

"devDependencies": {
"appcd-gulp": "^1.0.0",
"appcd-gulp": "^1.0.1",
"gulp": "^3.9.1"

@@ -37,0 +37,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc