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

appcd-response

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appcd-response - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

dist/error.js

10

CHANGELOG.md

@@ -0,1 +1,11 @@

# v1.1.3
* Telemetry payload changed:
- Added `app_version`, `os`, `osver`, `platform`
- Fixed `deploytype`, `ts`, `ver`
- Removed `params`
* Added support for `ti.start` and `ti.end`.
* Refactored sending events to support flushing all events.
* Updated dependencies.
# v1.1.2 (May 24, 2018)

@@ -2,0 +12,0 @@

13

dist/appcd-error.js

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

*/
let AppcdError = class AppcdError extends Error {
class AppcdError extends Error {
/**

@@ -110,3 +110,4 @@ * Creates an error instance.

};
}
exports.default = AppcdError;

@@ -148,3 +149,3 @@ Object.defineProperty(AppcdError, 'name', {

let CustomError = class CustomError extends AppcdError {
class CustomError extends AppcdError {
constructor(...args) {

@@ -162,3 +163,4 @@ super(...args);

};
}
Object.defineProperty(CustomError, 'name', {

@@ -169,2 +171,3 @@ enumerable: true,

return CustomError;
}
}
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcGNkLWVycm9yLmpzIl0sIm5hbWVzIjpbIkFwcGNkRXJyb3IiLCJFcnJvciIsImNvbnN0cnVjdG9yIiwiYXJncyIsIk9iamVjdCIsImRlZmluZVByb3BlcnRpZXMiLCJuYW1lIiwid3JpdGFibGUiLCJ2YWx1ZSIsIm1zZyIsIk1lc3NhZ2UiLCJlcnIiLCJwcm9wIiwiZ2V0T3duUHJvcGVydHlOYW1lcyIsInN0YWNrIiwicmVwbGFjZSIsImNhcHR1cmVTdGFja1RyYWNlIiwibWVzc2FnZSIsInRvU3RyaW5nIiwic3RhdHVzIiwic3RhdHVzQ29kZSIsImxvY2Fs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__dirname, '..', 'messages', 'en'));
loadCodes(_path.default.resolve(__dirname, '..', 'messages', 'en'));
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvZGVzLmpzIl0sIm5hbWVzIjpbImNvZGVzIiwibG9va3VwIiwiZmlsZW5hbWVSZWdFeHAiLCJsb2FkQ29kZXMiLCJkaXIiLCJuYW1lIiwiZnMiLCJyZWFkZGlyU3luYyIsInN1YmRpciIsInBhdGgiLCJqb2luIiwibSIsIm1hdGNoIiwiY29kZSIsInBhcnNlSW50IiwiZSIsInJlc29sdmUiLCJfX2Rpcm5hbWUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7O0FBQ0E7Ozs7QUFFQTs7OztBQUlPLE1BQU1BLEtBQUssR0FBRyxFQUFkO0FBRVA7Ozs7OztBQUlPLE1BQU1DLE1BQU0sR0FBRyxFQUFmOztBQUVQLE1BQU1DLGNBQWMsR0FBRywwQkFBdkI7QUFFQTs7Ozs7OztBQU1PLFNBQVNDLFNBQVQsQ0FBbUJDLEdBQW5CLEVBQXdCO0FBQzlCLE9BQUssTUFBTUMsSUFBWCxJQUFtQkMsWUFBR0MsV0FBSCxDQUFlSCxHQUFmLENBQW5CLEVBQXdDO0FBQ3ZDLFFBQUk7QUFDSCxZQUFNSSxNQUFNLEdBQUdDLGNBQUtDLElBQUwsQ0FBVU4sR0FBVixFQUFlQyxJQUFmLENBQWY7O0FBQ0EsV0FBSyxNQUFNQSxJQUFYLElBQW1CQyxZQUFHQyxXQUFILENBQWVDLE1BQWYsQ0FBbkIsRUFBMkM7QUFDMUMsY0FBTUcsQ0FBQyxHQUFHTixJQUFJLENBQUNPLEtBQUwsQ0FBV1YsY0FBWCxDQUFWOztBQUNBLFlBQUlTLENBQUosRUFBTztBQUNOLGdCQUFNRSxJQUFJLEdBQUdGLENBQUMsQ0FBQyxDQUFELENBQUQsR0FBT0EsQ0FBQyxDQUFDLENBQUQsQ0FBU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5cbiAqXG4gKiBAcGFyYW0ge1N0cmluZ30gZGlyIC0gVGhlIGRpcmVjdG9yeSB0byBzY2FuLlxuICovXG5leHBvcnQgZnVuY3Rpb24gbG9hZENvZGVzKGRpcikge1xuXHRmb3IgKGNvbnN0IG5hbWUgb2YgZnMucmVhZGRpclN5bmMoZGlyKSkge1xuXHRcdHRyeSB7XG5cdFx0XHRjb25zdCBzdWJkaXIgPSBwYXRoLmpvaW4oZGlyLCBuYW1lKTtcblx0XHRcdGZvciAoY29uc3QgbmFtZSBvZiBmcy5yZWFkZGlyU3luYyhzdWJkaXIpKSB7XG5cdFx0XHRcdGNvbnN0IG0gPSBuYW1lLm1hdGNoKGZpbGVuYW1lUmVnRXhwKTtcblx0XHRcdFx0aWYgKG0pIHtcblx0XHRcdFx0XHRjb25zdCBjb2RlID0gbVsyXSA/IG1bMV0gOiBwYXJzZUludChtWzFdKTtcblx0XHRcdFx0XHRjb2Rlc1ttWzNdXSA9IGNvZGU7XG5cdFx0XHRcdFx0bG9va3VwW2NvZGVdID0gbVszXTtcblx0XHRcdFx0fVxuXHRcdFx0fVxuXHRcdH0gY2F0Y2ggKGUpIHtcblx0XHRcdC8vIHNxdWVsY2hcblx0XHR9XG5cdH1cbn1cblxuLyoqXG4gKiBMb2FkIHRoZSBidWlsdC1pbiAnZW4nIGNvZGVzLlxuICovXG5sb2FkQ29kZXMocGF0aC5yZXNvbHZlKF9fZGlybmFtZSwgJy4uJywgJ21lc3NhZ2VzJywgJ2VuJykpO1xuIl0sImZpbGUiOiJjb2Rlcy5qcyJ9

@@ -38,2 +38,4 @@ "use strict";

var _response = _interopRequireDefault(require("./response"));
var _codes = require("./codes");

@@ -52,7 +54,5 @@

var _response = _interopRequireDefault(require("./response"));
var _error = require("./error");
var _message = require("./message");
Object.keys(_message).forEach(function (key) {
Object.keys(_error).forEach(function (key) {
if (key === "default" || key === "__esModule") return;

@@ -63,3 +63,3 @@ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;

get: function () {
return _message[key];
return _error[key];
}

@@ -82,2 +82,15 @@ });

var _message = require("./message");
Object.keys(_message).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _message[key];
}
});
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -90,2 +103,3 @@

require('source-map-support/register');
}
}
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbIkVycm9yIiwicHJlcGFyZVN0YWNrVHJhY2UiLCJyZXF1aXJlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUtBOztBQUNBOztBQUNBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUNBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUNBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUNBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOzs7Ozs7QUFWQTtBQUNBLElBQUksQ0FBQ0EsS0FBSyxDQUFDQyxpQkFBWCxFQUE4QjtBQUM3QkMsRUFBQUEsT0FBTyxDQUFDLDZCQUFELENBQVA7QUFDQSIsInNvdXJjZXNDb250ZW50IjpbIi8qIGlzdGFuYnVsIGlnbm9yZSBpZiAqL1xuaWYgKCFFcnJvci5wcmVwYXJlU3RhY2tUcmFjZSkge1xuXHRyZXF1aXJlKCdzb3VyY2UtbWFwLXN1cHBvcnQvcmVnaXN0ZXInKTtcbn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xuXHRpZiAoY2FjaGVkTG9jYWxlICE9PSB1bmRlZmluZWQpIHtcblx0XHRyZXR1cm4gY2FjaGVkTG9jYWxlO1xuXHR9XG5cblx0aWYgKHByb2Nlc3MucGxhdGZvcm0gPT09ICd3aW4zMicpIHtcblx0XHRsZXQgdmFsdWUgPSBhd2FpdCBnZXQoJ0hLQ1UnLCAnQ29udHJvbCBQYW5lbFxcXFxJbnRlcm5hdGlvbmFsJywgJ0xvY2FsZScpO1xuXHRcdGlmICh2YWx1ZSkge1xuXHRcdFx0dmFsdWUgPSB2YWx1ZS5zdWJzdHJpbmcodmFsdWUubGVuZ3RoIC0gNCwgdmFsdWUubGVuZ3RoKTtcblx0XHRcdGNvbnN0IGxvY2FsZSA9IGF3YWl0IGdldCgnSEtMTScsICdTT0ZUV0FSRVxcXFxDbGFzc2VzXFxcXE1JTUVcXFxcRGF0YWJhc2VcXFxcUmZjMTc2NicsIHZhbHVlKTtcblx0XHRcdGNvbnN0IG0gPSBsb2NhbGUubWF0Y2goLyhbXjssXFxuXSs/KTsvKTtcblx0XHRcdGNhY2hlZExvY2FsZSA9IG0gPyBtWzFdLnJlcGxhY2UoL18vZywgJy0nKSA6IG51bGw7XG5cdFx0fVxuXHR9IGVsc2Uge1xuXHRcdGNvbnN0IG0gPSBzcGF3blN5bmMoJ2xvY2FsZScpLnN0ZG91dC50b1N0cmluZygpLm1hdGNoKC9eTEFORz1cIj8oW15cIi5cXHNdKykvKTtcblx0XHRjYWNoZWRMb2NhbGUgPSBtID8gbVsxXS5yZXBsYWNlKC9fL2csICctJykgOiBudWxsO1xuXHR9XG5cblx0cmV0dXJuIGNhY2hlZExvY2FsZTtcbn1cbiJdLCJmaWxlIjoibG9jYWxlLmpzIn0=

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

let Message = class Message {
class Message {
/**

@@ -127,3 +127,3 @@ * Loads a localized message based on the code or message.

};
}
/**

@@ -137,2 +137,3 @@ * Creates internationalized message functions.

exports.default = Message;

@@ -363,2 +364,3 @@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jYWxlcy5wdXNoKCdlbicpO1xuXHR9XG5cblx0Zm9yIChjb25zdCBsb2NhbGUgb2YgbG9jYWxlcykge1xuXHRcdGNvbnN0IG0gPSBsb2NhbGUgJiYgbG9jYWxlLm1hdGNoKGxvY2FsZVJlZ0V4cCk7XG5cdFx0aWYgKG0pIHtcblx0XHRcdC8vIGFkZCB0aGUgb3JpZ2luYWwgbG9jYWxlXG5cdFx0XHRleHBhbmRlZExvY2FsZXMucHVzaChsb2NhbGUpO1xuXG5cdFx0XHQvLyBpZiB3ZSBoYXZlIGEgdGVycml0b3J5LCB0aGVuIGFkZCBqdXN0IHRoZSBsYW5ndWFnZVxuXHRcdFx0aWYgKG1bMl0pIHtcblx0XHRcdFx0ZXhwYW5kZWRMb2NhbGVzLnB1c2gobVsxXSk7XG5cdFx0XHR9XG5cdFx0fVxuXHR9XG5cblx0cmV0dXJuIGV4cGFuZGVkTG9jYWxlcztcbn1cblxuLyoqXG4gKiBTZXJpYWxpemVzIG9iamVjdCBhbmQgYXJyYXkgZWxlbWVudHMgb2YgdGhlIGFyZ3MgYXJyYXkgdG8gc3RyaW5ncy5cbiAqXG4gKiBAcGFyYW0ge0FycmF5fSBhcmdzIC0gVGhlIGFycmF5IG9mIGFyZ3VtZW50cyB0byBzZXJpYWxpemUuXG4gKiBAcmV0dXJuIHtBcnJheX1cbiAqL1xuZnVuY3Rpb24gc2VyaWFsaXplQXJncyhhcmdzKSB7XG5cdHJldHVybiBhcmdzLm1hcChzID0+IHtcblx0XHRyZXR1cm4gdHlwZW9mIHMgPT09ICdvYmplY3QnID8gSlNPTi5zdHJpbmdpZnkocykgOiBzO1xuXHR9KTtcbn1cbiJdLCJmaWxlIjoibWVzc2FnZS5qcyJ9

@@ -15,3 +15,5 @@ "use strict";

*/
let Response = class Response extends _message.default {};
exports.default = Response;
class Response extends _message.default {}
exports.default = Response;
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc3BvbnNlLmpzIl0sIm5hbWVzIjpbIlJlc3BvbnNlIiwiTWVzc2FnZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOzs7O0FBRUE7OztBQUdlLE1BQU1BLFFBQU4sU0FBdUJDLGdCQUF2QixDQUErQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBNZXNzYWdlIGZyb20gJy4vbWVzc2FnZSc7XG5cbi8qKlxuICogQSBBcHBjIERhZW1vbiByZXNwb25zZS4gVGhpcyBjbGFzcyBjYW4gYmUgZXh0ZW5kZWQgb3IgdXNlZCBhcyBpcy5cbiAqL1xuZXhwb3J0IGRlZmF1bHQgY2xhc3MgUmVzcG9uc2UgZXh0ZW5kcyBNZXNzYWdlIHtcbn1cbiJdLCJmaWxlIjoicmVzcG9uc2UuanMifQ==
{
"name": "appcd-response",
"version": "1.1.2",
"version": "1.1.3",
"description": "Library for responses and errors with i18n support and error codes.",

@@ -19,17 +19,15 @@ "main": "./dist/index",

"dependencies": {
"appcd-fs": "^1.1.2",
"appcd-winreg": "^1.1.1",
"source-map-support": "^0.5.6",
"appcd-fs": "^1.1.3",
"appcd-path": "^1.1.2",
"appcd-winreg": "^1.1.2",
"source-map-support": "^0.5.9",
"sprintf-js": "^1.1.1"
},
"devDependencies": {
"appcd-gulp": "^1.1.5",
"appcd-gulp": "^1.2.0",
"gulp": "^3.9.1"
},
"homepage": "https://github.com/appcelerator/appc-daemon#readme",
"homepage": "https://github.com/appcelerator/appc-daemon/tree/master/packages/appcd-response",
"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": {

@@ -36,0 +34,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