twilio-sync
Advanced tools
Comparing version 0.2.6 to 0.2.8
@@ -83,3 +83,3 @@ 'use strict'; | ||
publicConstructors: ['Client'], | ||
privateConstructors: ['Map', 'List', 'MapItem', 'ListItem', 'Paginator'] | ||
privateConstructors: ['Document', 'Map', 'List', 'MapItem', 'ListItem', 'Paginator'] | ||
}; | ||
@@ -86,0 +86,0 @@ |
@@ -10,3 +10,2 @@ { | ||
}, | ||
"plugins": ["node_modules/jsdoc-babel"], | ||
"babel": { | ||
@@ -13,0 +12,0 @@ "extensions": ["js", "es6"] |
@@ -15,2 +15,3 @@ 'use strict'; | ||
* Primitive to store a single document in DataSync service | ||
* @property {String|null} uniqueName Name of the document | ||
* @property {String} sid SyncDocument unique id | ||
@@ -39,2 +40,3 @@ * @property {Object} value Value of a document | ||
uniqueName: { enumberable: true, get: () => this._descriptor.unique_name }, | ||
uri: { enumerable: true, get: () => this._descriptor.url }, | ||
@@ -236,4 +238,5 @@ sid: { enumerable: true, get: () => this._sid }, | ||
this._update({ type: 'document_updated', | ||
revision: response.body.revision, | ||
data: response.body.data }); | ||
id: response.body.last_event_id, | ||
document_revision: response.body.revision, // eslint-disable-line camelcase | ||
document_data: response.body.data }); // eslint-disable-line camelcase | ||
return this; | ||
@@ -240,0 +243,0 @@ }); |
@@ -16,2 +16,4 @@ 'use strict'; | ||
* @classdesc List collection to store an ordered list of values | ||
* @property {String|null} uniqueName Name of the list | ||
* @property {String} sid List unique id | ||
* @fires List#itemAdded | ||
@@ -43,2 +45,3 @@ * @fires List#itemUpdated | ||
uniqueName: { enumberable: true, get: () => this._descriptor.unique_name }, | ||
sid: { enumerable: true, get: () => this._descriptor.sid }, | ||
@@ -45,0 +48,0 @@ uri: { enumerable: true, get: () => this._descriptor.url }, |
@@ -15,3 +15,4 @@ 'use strict'; | ||
* @classdesc Map collection to store a set of Key:Value pairs | ||
* @property {String} sid - Map unique id | ||
* @property {String|null} uniqueName Name of the list | ||
* @property {String} sid Unique id | ||
* @fires Map#itemAdded | ||
@@ -46,2 +47,3 @@ * @fires Map#itemUpdated | ||
uniqueName: { enumberable: true, get: () => this._descriptor.unique_name }, | ||
sid: { enumerable: true, get: () => this._descriptor.sid }, | ||
@@ -48,0 +50,0 @@ uri: { enumerable: true, get: () => this._descriptor.url }, |
{ | ||
"name": "twilio-sync", | ||
"version": "0.2.6", | ||
"version": "0.2.8", | ||
"description": "Twilio Sync client library", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
"chai-as-promised": "^5.3.0", | ||
"cheerio": "^0.20.0", | ||
"cheerio": "^0.22.0", | ||
"del": "^2.2.1", | ||
@@ -40,13 +40,14 @@ "gulp": "^3.9.1", | ||
"gulp-istanbul": "^1.0.0", | ||
"gulp-mocha": "^2.2.0", | ||
"gulp-mocha": "^3.0.1", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-replace": "^0.5.4", | ||
"gulp-tap": "^0.1.3", | ||
"gulp-uglify": "^1.5.4", | ||
"gulp-uglify": "^2.0.0", | ||
"gulp-util": "^3.0.7", | ||
"ink-docstrap": "^1.2.1", | ||
"jsdoc": "^3.4.0", | ||
"jsdoc": "^3.4.1", | ||
"jsdoc-babel": "^0.2.1", | ||
"jsonwebtoken": "^7.1.6", | ||
"mocha.parallel": "^0.12.0", | ||
"release-tool": "^0.2.2", | ||
"run-sequence": "^1.2.2", | ||
@@ -53,0 +54,0 @@ "sinon": "^1.17.5", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
22
13
2280194
36
51
29609