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

azure-entities

Package Overview
Dependencies
Maintainers
10
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-entities - npm Package Compare versions

Comparing version 5.2.0 to 5.3.0

23

package.json
{
"name": "azure-entities",
"version": "5.2.0",
"version": "5.3.0",
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>",

@@ -17,18 +17,15 @@ "description": "azure-entities",

"dependencies": {
"ajv": "^5.3.0",
"debug": "^3.1.0",
"fast-azure-storage": "^2.3.0",
"ajv": "^6.9.2",
"debug": "^4.1.1",
"fast-azure-storage": "^2.3.1",
"json-stable-stringify": "^1.0.0",
"lodash": "^4.17.4",
"promise": "^8.0.1",
"slugid": "^1.0.3"
"lodash": "^4.17.11",
"slugid": "^2.0.0"
},
"devDependencies": {
"azure-table-node": "^1.4.1",
"eslint-config-taskcluster": "^3.0.0",
"express": "^4.16.2",
"mocha": "^4.0.1",
"eslint-config-taskcluster": "^4.0.0",
"express": "^4.16.4",
"mocha": "^6.0.1",
"rewire": "^4.0.1",
"sinon": "^6.1.4",
"typed-env-config": "^1.1.0"
"sinon": "^7.2.4"
},

@@ -35,0 +32,0 @@ "main": "./src/entity",

@@ -6,3 +6,2 @@ /* eslint-disable consistent-this */

var _ = require('lodash');
var Promise = require('promise');
var debug = require('debug')('base:entity');

@@ -674,3 +673,3 @@ var azure = require('fast-azure-storage');

if (options.credentials == 'inMemory') {
if (options.credentials === 'inMemory') {
if (!inmemory) {

@@ -677,0 +676,0 @@ inmemory = require('./inmemory'); // lazy-loaded

@@ -23,4 +23,4 @@

var comparisonFuncs = {};
comparisonFuncs[azTableOps.Equal] = function(x, y) { return x == y; };
comparisonFuncs[azTableOps.NotEqual] = function(x, y) { return x != y; };
comparisonFuncs[azTableOps.Equal] = function(x, y) { return x === y; };
comparisonFuncs[azTableOps.NotEqual] = function(x, y) { return x !== y; };
comparisonFuncs[azTableOps.GreaterThan] = function(x, y) { return x > y; };

@@ -27,0 +27,0 @@ comparisonFuncs[azTableOps.GreaterThanOrEqual] = function(x, y) { return x >= y; };

@@ -199,4 +199,4 @@ /**

while (entities.length > 0 &&
(entities[0].PartitionKey != partitionKey ||
entities[0].RowKey != rowKey)) {
(entities[0].PartitionKey !== partitionKey ||
entities[0].RowKey !== rowKey)) {
entities.shift();

@@ -306,8 +306,8 @@ }

if (tables[this.table][key]) {
if (options.eTag != '*') {
if (options.eTag && options.eTag != entityEtag(tables[this.table][key])) {
if (options.eTag !== '*') {
if (options.eTag && options.eTag !== entityEtag(tables[this.table][key])) {
throw makeError(412, 'UpdateConditionNotSatisfied');
}
}
if (options.mode == 'replace') {
if (options.mode === 'replace') {
tables[this.table][key] = entity;

@@ -324,3 +324,3 @@ } else {

tables[this.table][key] = entity;
} else if (options.eTag != '*') {
} else if (options.eTag !== '*') {
throw makeError(404, 'ResourceNotFound');

@@ -364,4 +364,4 @@ }

}
if (options.eTag != '*') {
if (options.eTag != entityEtag(table[key])) {
if (options.eTag !== '*') {
if (options.eTag !== entityEtag(table[key])) {
throw makeError(412, 'UpdateConditionNotSatisfied');

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