Socket
Socket
Sign inDemoInstall

documentdb-utils

Package Overview
Dependencies
12
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.4 to 0.4.5

2

package.json
{
"name": "documentdb-utils",
"version": "0.4.4",
"version": "0.4.5",
"description": "Drop-in replacement+wrapper for Azure's DocumentDB node.js client with auto-retry on 429 errors plus a lot more",

@@ -5,0 +5,0 @@ "main": "./index",

@@ -176,2 +176,3 @@ # documentdb-utils #

* 0.4.5 - 2015-12-07 - expandSource now works with primatives
* 0.4.4 - 2015-12-07 - Fix for udfs not being compiled, however, loadSprocs/loadUDFs still won't work with .js files

@@ -178,0 +179,0 @@ * 0.4.3 - 2015-12-07 - Added loadUDFs and refactored loadSprocs

// Generated by CoffeeScript 1.9.2
(function() {
var indent, insertMixins, path, spaces, startingSpacesCount;
var _, indent, insertMixins, path, spaces, startingSpacesCount;
path = require('path');
_ = require('lodash');
spaces = function(n) {

@@ -68,5 +70,7 @@ var a;

spacesToIndent = startingSpacesCount(currentLine);
if (typeof functionToInsert === 'function') {
if (_.isFunction(functionToInsert)) {
functionToInsertString = indent(variableString + " = " + functionToInsert.toString() + ';\n', spacesToIndent);
} else {
} else if (_.isString(functionToInsert) || _.isBoolean(functionToInsert) || _.isNull(functionToInsert) || _.isNumber(functionToInsert)) {
functionToInsertString = indent(variableString + " = " + JSON.stringify(functionToInsert) + ';\n', spacesToIndent);
} else if (_.isPlainObject(functionToInsert)) {
functionToInsertString = indent(variableString + " = {\n", spacesToIndent);

@@ -76,5 +80,13 @@ stringsToInsert = [];

value = functionToInsert[key];
stringsToInsert.push(indent(key + ": " + value.toString(), spacesToIndent + 2));
if (_.isFunction(value)) {
stringsToInsert.push(indent(key + ": " + value.toString(), spacesToIndent + 2));
} else if (_.isString(value) || _.isBoolean(value) || _.isNull(value) || _.isNumber(value)) {
stringsToInsert.push(indent(key + ": " + JSON.stringify(value), spacesToIndent + 2));
} else {
throw new Error((typeof value) + " is not a supported type for expandSource");
}
}
functionToInsertString += stringsToInsert.join(',\n') + '\n' + indent('};', spacesToIndent);
} else {
throw new Error((typeof functionToInsert) + " is not a supported type for expandSource");
}

@@ -81,0 +93,0 @@ sourceLines[i] = functionToInsertString;

@@ -7,2 +7,50 @@ // Generated by CoffeeScript 1.9.2

/*
This could be valuable
where
findWhere
contains
pluck
max
min
sortBy (string form)
groupBy
shuffle
sample
toArray
size (for objects because .length works for arrays)
first
initial
last
rest
compact
flatten
without
union
intersection
difference
unique
zip
unzip
object
indexOf
lastIndexOf
sortedIndex (without iteree)
findIndex
findLastIndex
range
keys
allkeys
values
pairs
invert
...
Consider these where the predicate or iteree is optional
every
some
*/
}).call(this);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc