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.1.1 to 1.1.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# v1.1.2 (Nov 27, 2018)
* Fixed handling streamed responses, specifically knowing when the last message has been sent.
[(DAEMON-266)](https://jira.appcelerator.org/browse/DAEMON-266)
* Updated dependencies.
# v1.1.1 (May 24, 2018)

@@ -2,0 +8,0 @@

30

dist/client.js

@@ -10,3 +10,3 @@ "use strict";

var _fs = _interopRequireDefault(require("fs"));
var _fsExtra = _interopRequireDefault(require("fs-extra"));

@@ -47,3 +47,3 @@ var _msgpackLite = _interopRequireDefault(require("msgpack-lite"));

let Client = class Client {
class Client {
/**

@@ -225,3 +225,12 @@ * Initializes the client.

case 2:
emitter.emit('response', response.message, response);
if (response.type !== 'finish') {
emitter.emit('response', response.message, response);
} // `fin` exists on the last message from the request which can be
// any message type, not just `finish`
if (response.fin) {
emitter.emit('finish');
}
break;

@@ -255,2 +264,3 @@

delete this.requests[id];
emitter.emit('close');
}).once('error', err => {

@@ -278,3 +288,3 @@ delete this.requests[id];

};
}
/**

@@ -289,2 +299,3 @@ * Generates a user agent string containing the name of the parent-most script

exports.default = Client;

@@ -316,6 +327,4 @@

try {
if (_fs.default.statSync(pkgJsonFile)) {
parts.push(`${name}/${JSON.parse(_fs.default.readFileSync(pkgJsonFile)).version || ''}`);
break;
}
parts.push(`${name}/${_fsExtra.default.readJsonSync(pkgJsonFile).version || ''}`);
break;
} catch (e) {

@@ -333,3 +342,3 @@ // either the package.json doesn't exist or the JSON was malformed

parts.push(`appcd-client/${JSON.parse(_fs.default.readFileSync(_path.default.resolve(__dirname, '..', 'package.json'))).version}`);
parts.push(`appcd-client/${JSON.parse(_fsExtra.default.readFileSync(_path.default.resolve(__dirname, '..', 'package.json'))).version}`);

@@ -351,2 +360,3 @@ if (!parts.some(p => p.indexOf('node/') === 0)) {

return parts.join(' ');
}
}
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsaWVudC5qcyJdLCJuYW1lcyI6WyJFcnJvciIsInByZXBhcmVTdGFja1RyYWNlIiwicmVxdWlyZSIsImxvZyIsImFsZXJ0IiwiaGlnaGxpZ2h0Iiwibm90ZSIsIm9rIiwiYXBwY2RMb2dnZXIiLCJzdHlsZXMiLCJDbGllbnQiLCJjb25zdHJ1Y3RvciIsIm9wdHMiLCJzb2NrZXQiLCJyZXF1ZXN0cyIsImhvc3QiLCJwb3J0IiwiVHlwZUVycm9yIiwidXNlckFnZW50IiwiY29uc3RydWN0VXNlckFnZW50IiwiY29ubmVjdCIsImVtaXR0ZXIiLCJFdmVudEVtaXR0ZXIiLCJzZXRJbW1lZGlhdGUiLCJlbWl0IiwiaGVhZGVycyIsImxvY2FsZVZhbHVlIiwicHJvY2VzcyIsImVudiIsIkFQUENEX0xPQ0FMRSIsInVybCIsIldlYlNvY2tldCIsIm9uIiwiZGF0YSIsImpzb24iLCJKU09OIiwicGFyc2UiLCJlIiwibWVzc2FnZSIsIm1zZ3BhY2siLCJkZWNvZGUiLCJpZCIsIm9uY2UiLCJlcnIiLCJjbG9zZSIsInJlcXVlc3QiLCJwYXRoT3JQYXJhbXMiLCJ1dWlkIiwidjQiLCJzdGFydFRpbWUiLCJEYXRlIiwicmVxIiwidmVyc2lvbiIsInBhdGgiLCJPYmplY3QiLCJhc3NpZ24iLCJBcnJheSIsImlzQXJyYXkiLCJ0eXBlIiwiY2xpZW50IiwicmVzcG9uc2UiLCJzdGF0dXMiLCJzdGF0dXNDbGFzcyIsIk1hdGgiLCJmbG9vciIsInN0eWxlIiwiZmluIiwic3RhdHVzQ29kZSIsIlN0cmluZyIsInByb3AiLCJrZXlzIiwiZGVmaW5lUHJvcGVydHkiLC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xuXG5cdHJldHVybiBwYXJ0cy5qb2luKCcgJyk7XG59XG4iXSwiZmlsZSI6ImNsaWVudC5qcyJ9
{
"name": "appcd-client",
"version": "1.1.1",
"version": "1.1.2",
"description": "The Node.js client for connecting to the Appc Daemon.",

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

"dependencies": {
"appcd-logger": "^1.1.1",
"appcd-response": "^1.1.2",
"appcd-util": "^1.1.1",
"appcd-logger": "^1.1.3",
"appcd-response": "^1.1.4",
"appcd-util": "^1.1.4",
"fs-extra": "^7.0.1",
"msgpack-lite": "^0.1.26",
"source-map-support": "^0.5.6",
"uuid": "^3.2.1",
"ws": "^5.2.0"
"source-map-support": "^0.5.9",
"uuid": "^3.3.2",
"ws": "^6.1.2"
},
"devDependencies": {
"appcd-gulp": "^1.1.5",
"appcd-gulp": "^1.2.1",
"gulp": "^3.9.1"
},
"homepage": "https://github.com/appcelerator/appc-daemon#readme",
"homepage": "https://github.com/appcelerator/appc-daemon/tree/master/packages/appcd-client",
"bugs": "https://github.com/appcelerator/appc-daemon/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/appcelerator/appc-daemon.git"
},
"repository": "https://github.com/appcelerator/appc-daemon",
"engines": {

@@ -45,0 +43,0 @@ "node": ">=8.0.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