Socket
Socket
Sign inDemoInstall

mol-proto

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.11 to 0.1.12

.jshintrc

6

bower.json
{
"name": "proto",
"version": "0.1.11",
"homepage": "https://github.com/MailOnline/proto",
"version": "0.1.12",
"homepage": "https://github.com/milojs/proto",
"authors": [

@@ -10,3 +10,3 @@ "MOL Technical <MOL_Technical@assocnews.co.uk>"

"main": "lib/proto.js",
"license": "MIT",
"license": "BSD",
"ignore": [

@@ -13,0 +13,0 @@ "**/.*",

@@ -30,2 +30,3 @@ 'use strict';

* - [isEqual](#isEqual)
* - [isNot](#isNot)
*

@@ -54,3 +55,4 @@ * All these methods can be [chained](proto.js.html#Proto)

omitKeys: omitKeys,
isEqual: isEqual
isEqual: isEqual,
isNot: isNot
};

@@ -191,3 +193,3 @@

* key1: value1,
* key2: value2
* key2: value2
* });

@@ -199,3 +201,3 @@ * ```

* key1: value1,
* key2: value2
* key2: value2
* }, _.ENUM + _.WRIT);

@@ -212,3 +214,3 @@ * ```

var descriptors = mapKeys.call(propertyValues, function(value) {
return _getDescriptor(value, decriptorFlags);
return _getDescriptor(value, decriptorFlags);
}, true);

@@ -248,3 +250,3 @@ Object.defineProperties(this, descriptors);

* @param {Object} self An object to be extended
* @param {Object} obj An object with properties to copy to
* @param {Object} obj An object with properties to copy to
* @param {Boolean} onlyEnumerable Optional `true` to use only enumerable properties

@@ -340,3 +342,3 @@ * @return {Object}

* An analogue of `indexOf` method of Array prototype.
* Returns the `key` of `searchElement` in the object `self`.
* Returns the `key` of `searchElement` in the object `self`.
* As object keys are unsorted, if there are several keys that hold `searchElement` any of them can be returned. Use `allKeysOf` to return all keys.

@@ -348,6 +350,6 @@ * All own properties are searched (not those inherited via prototype chain), including non-enumerable properties (unless `onlyEnumerable` is truthy).

* @param {Boolean} onlyEnumerable An optional true to search among enumerable properties only.
* @return {String}
* @return {String}
*/
function keyOf(searchElement, onlyEnumerable) {
var properties = onlyEnumerable
var properties = onlyEnumerable
? Object.keys(this)

@@ -359,3 +361,3 @@ : allKeys.call(this);

return properties[i];
return undefined;

@@ -371,6 +373,6 @@ }

* @param {Boolean} onlyEnumerable An optional true to search among enumerable properties only.
* @return {Array[String]}
* @return {Array[String]}
*/
function allKeysOf(searchElement, onlyEnumerable) {
var properties = onlyEnumerable
var properties = onlyEnumerable
? Object.keys(this)

@@ -403,3 +405,3 @@ : allKeys.call(this);

function eachKey(callback, thisArg, onlyEnumerable) {
var properties = onlyEnumerable
var properties = onlyEnumerable
? Object.keys(this)

@@ -426,3 +428,3 @@ : allKeys.call(this);

* ```
*
*
* @param {Object} self An object which properties will be iterated

@@ -454,3 +456,3 @@ * @param {Function} callback Callback is passed `value`, `key` and `self` and should return value that will be included in the map.

* ```
*
*
* @param {Object} self An object which properties will be iterated

@@ -464,3 +466,3 @@ * @param {Function} callback Callback is passed `previousValue`, `value`, `key` and `self` and should return value that will be used as the `previousValue` for the next `callback` call.

function reduceKeys(callback, initialValue, thisArg, onlyEnumerable) {
var properties = onlyEnumerable
var properties = onlyEnumerable
? Object.keys(this)

@@ -482,3 +484,3 @@ : allKeys.call(this);

* Returns the new object with keys for which callback returns true.
* Property descriptors of the returned object will have the same `enumerable`, `configurable` and `writable` settings as the properties of `self`.
* Property descriptors of the returned object will have the same `enumerable`, `configurable` and `writable` settings as the properties of `self`.
* To filter array-like objects use:

@@ -567,3 +569,3 @@ * ```

* @param {List[String|Array]} arguments list of keys (or array(s) of keys)
* @return {Object}
* @return {Object}
*/

@@ -586,3 +588,3 @@ function pickKeys() { // , ... keys

* @param {List[String|Array]} arguments list of keys (or array(s) of keys)
* @return {Object}
* @return {Object}
*/

@@ -638,1 +640,12 @@ function omitKeys() { // , ... keys

}
/**
* The opposite of isEqual
* @param {Any} self object to compare
* @param {Any} obj object to compare
* @return {Boolean}
*/
function isNot(obj) {
return !isEqual.call(this, obj);
}

@@ -42,2 +42,3 @@ 'use strict';

* - [isEqual](proto_object.js.html#isEqual)
* - [isNot](proto_object.js.html#isNot)
*/

@@ -81,3 +82,3 @@ var objectMethods = require('./proto_object');

* - [debounce](proto_function.js.html#debounce)
* - [throttle](proto_function.js.html#throttle)
* - [throttle](proto_function.js.html#throttle)
* - [once](proto_function.js.html#once)

@@ -108,3 +109,3 @@ * - [waitFor](proto_function.js.html#waitFor)

* [__Number functions__](proto_number.js.html)
*
*
* - [isNumeric](proto_number.js.html#isNumeric)

@@ -117,3 +118,3 @@ */

* [__Utility functions__](proto_util.js.html)
*
*
* - [times](proto_util.js.html#times)

@@ -120,0 +121,0 @@ * - [repeat](proto_util.js.html#repeat)

{
"name": "mol-proto",
"version": "0.1.11",
"version": "0.1.12",
"description": "ES5 object manipulation library for node and modern browsers",

@@ -11,3 +11,3 @@ "main": "lib/proto.js",

"type": "git",
"url": "git://github.com/MailOnline/proto.git"
"url": "git://github.com/milojs/proto.git"
},

@@ -17,3 +17,3 @@ "author": "MailOnline",

"bugs": {
"url": "https://github.com/MailOnline/proto/issues"
"url": "https://github.com/milojs/proto/issues"
},

@@ -20,0 +20,0 @@ "devDependencies": {

@@ -6,5 +6,5 @@ proto

[![Build Status](https://travis-ci.org/MailOnline/proto.png?branch=master)](https://travis-ci.org/MailOnline/proto) [![Code Climate](https://codeclimate.com/github/MailOnline/proto/badges/gpa.svg)](https://codeclimate.com/github/MailOnline/proto)
[![Build Status](https://travis-ci.org/milojs/proto.png?branch=master)](https://travis-ci.org/milojs/proto) [![Code Climate](https://codeclimate.com/github/milojs/proto/badges/gpa.svg)](https://codeclimate.com/github/milojs/proto)
Documentation: http://mailonline.github.io/proto/
Documentation: http://milojs.github.io/proto/

@@ -32,3 +32,3 @@

git clone git@github.com:MailOnline/proto.git
git clone git@github.com:milojs/proto.git
cd proto

@@ -49,3 +49,3 @@ npm link

All functions are exported as properties of a global _ object when used with [milo](https://github.com/MailOnline/milo), there is no separate proto bundle yet (will be added shortly).
All functions are exported as properties of a global _ object when used with [milo](https://github.com/milojs/milo), there is no separate proto bundle yet (will be added shortly).

@@ -56,88 +56,88 @@

* [__Prototype functions__](http://mailonline.github.io/proto/proto_prototype.js.html)
* [extendProto](http://mailonline.github.io/proto/proto_prototype.js.html#extendProto)
* [createSubclass](http://mailonline.github.io/proto/proto_prototype.js.html#createSubclass)
* [makeSubclass](http://mailonline.github.io/proto/proto_prototype.js.html#makeSubclass)
* [newApply](http://mailonline.github.io/proto/proto_prototype.js.html#newApply)
* [__Prototype functions__](http://milojs.github.io/proto/proto_prototype.js.html)
* [extendProto](http://milojs.github.io/proto/proto_prototype.js.html#extendProto)
* [createSubclass](http://milojs.github.io/proto/proto_prototype.js.html#createSubclass)
* [makeSubclass](http://milojs.github.io/proto/proto_prototype.js.html#makeSubclass)
* [newApply](http://milojs.github.io/proto/proto_prototype.js.html#newApply)
* [__Object functions__](http://mailonline.github.io/proto/proto_object.js.html)
* [extend](http://mailonline.github.io/proto/proto_object.js.html#extend)
* [clone](http://mailonline.github.io/proto/proto_object.js.html#clone)
* [defineProperty](http://mailonline.github.io/proto/proto_object.js.html#defineProperty)
* [defineProperties](http://mailonline.github.io/proto/proto_object.js.html#defineProperties)
* [deepExtend](http://mailonline.github.io/proto/proto_object.js.html#deepExtend)
* [deepClone](http://mailonline.github.io/proto/proto_object.js.html#deepClone)
* [keys](http://mailonline.github.io/proto/proto_object.js.html#keys)
* [allKeys](http://mailonline.github.io/proto/proto_object.js.html#allKeys)
* [values](http://mailonline.github.io/proto/proto_object.js.html#values)
* [keyOf](http://mailonline.github.io/proto/proto_object.js.html#keyOf)
* [allKeysOf](http://mailonline.github.io/proto/proto_object.js.html#allKeysOf)
* [eachKey](http://mailonline.github.io/proto/proto_object.js.html#eachKey)
* [mapKeys](http://mailonline.github.io/proto/proto_object.js.html#mapKeys)
* [reduceKeys](http://mailonline.github.io/proto/proto_object.js.html#reduceKeys)
* [filterKeys](http://mailonline.github.io/proto/proto_object.js.html#filterKeys)
* [someKey](http://mailonline.github.io/proto/proto_object.js.html#someKey)
* [everyKey](http://mailonline.github.io/proto/proto_object.js.html#everyKey)
* [findValue](http://mailonline.github.io/proto/proto_object.js.html#findValue)
* [findKey](http://mailonline.github.io/proto/proto_object.js.html#findKey)
* [pickKeys](http://mailonline.github.io/proto/proto_object.js.html#pickKeys)
* [omitKeys](http://mailonline.github.io/proto/proto_object.js.html#omitKeys)
* [isEqual](http://mailonline.github.io/proto/proto_object.js.html#isEqual)
* [__Object functions__](http://milojs.github.io/proto/proto_object.js.html)
* [extend](http://milojs.github.io/proto/proto_object.js.html#extend)
* [clone](http://milojs.github.io/proto/proto_object.js.html#clone)
* [defineProperty](http://milojs.github.io/proto/proto_object.js.html#defineProperty)
* [defineProperties](http://milojs.github.io/proto/proto_object.js.html#defineProperties)
* [deepExtend](http://milojs.github.io/proto/proto_object.js.html#deepExtend)
* [deepClone](http://milojs.github.io/proto/proto_object.js.html#deepClone)
* [keys](http://milojs.github.io/proto/proto_object.js.html#keys)
* [allKeys](http://milojs.github.io/proto/proto_object.js.html#allKeys)
* [values](http://milojs.github.io/proto/proto_object.js.html#values)
* [keyOf](http://milojs.github.io/proto/proto_object.js.html#keyOf)
* [allKeysOf](http://milojs.github.io/proto/proto_object.js.html#allKeysOf)
* [eachKey](http://milojs.github.io/proto/proto_object.js.html#eachKey)
* [mapKeys](http://milojs.github.io/proto/proto_object.js.html#mapKeys)
* [reduceKeys](http://milojs.github.io/proto/proto_object.js.html#reduceKeys)
* [filterKeys](http://milojs.github.io/proto/proto_object.js.html#filterKeys)
* [someKey](http://milojs.github.io/proto/proto_object.js.html#someKey)
* [everyKey](http://milojs.github.io/proto/proto_object.js.html#everyKey)
* [findValue](http://milojs.github.io/proto/proto_object.js.html#findValue)
* [findKey](http://milojs.github.io/proto/proto_object.js.html#findKey)
* [pickKeys](http://milojs.github.io/proto/proto_object.js.html#pickKeys)
* [omitKeys](http://milojs.github.io/proto/proto_object.js.html#omitKeys)
* [isEqual](http://milojs.github.io/proto/proto_object.js.html#isEqual)
* [__Array functions__](http://mailonline.github.io/proto/proto_array.js.html)
* [find](http://mailonline.github.io/proto/proto_array.js.html#find)
* [findIndex](http://mailonline.github.io/proto/proto_array.js.html#findIndex)
* [appendArray](http://mailonline.github.io/proto/proto_array.js.html#appendArray)
* [prependArray](http://mailonline.github.io/proto/proto_array.js.html#prependArray)
* [spliceItem](http://mailonline.github.io/proto/proto_array.js.html/proto_array.js.html#spliceItem)
* [toArray](http://mailonline.github.io/proto/proto_array.js.html#toArray)
* [object](http://mailonline.github.io/proto/proto_array.js.html#object)
* [mapToObject](http://mailonline.github.io/proto/proto_array.js.html#mapToObject)
* [unique](http://mailonline.github.io/proto/proto_array.js.html#unique)
* [deepForEach](http://mailonline.github.io/proto/proto_array.js.html#deepForEach)
* [__Array functions__](http://milojs.github.io/proto/proto_array.js.html)
* [find](http://milojs.github.io/proto/proto_array.js.html#find)
* [findIndex](http://milojs.github.io/proto/proto_array.js.html#findIndex)
* [appendArray](http://milojs.github.io/proto/proto_array.js.html#appendArray)
* [prependArray](http://milojs.github.io/proto/proto_array.js.html#prependArray)
* [spliceItem](http://milojs.github.io/proto/proto_array.js.html/proto_array.js.html#spliceItem)
* [toArray](http://milojs.github.io/proto/proto_array.js.html#toArray)
* [object](http://milojs.github.io/proto/proto_array.js.html#object)
* [mapToObject](http://milojs.github.io/proto/proto_array.js.html#mapToObject)
* [unique](http://milojs.github.io/proto/proto_array.js.html#unique)
* [deepForEach](http://milojs.github.io/proto/proto_array.js.html#deepForEach)
* Functions that Array [implements natively](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/prototype#Methods) are also added - they can be used with array-like objects and for chaining (native functions are always called).
* [__Function functions__](http://mailonline.github.io/proto/proto_function.js.html)
* [makeFunction](http://mailonline.github.io/proto/proto_function.js.html#makeFunction)
* [partial](http://mailonline.github.io/proto/proto_function.js.html#partial)
* [partialRight](http://mailonline.github.io/proto/proto_function.js.html#partialRight)
* [memoize](http://mailonline.github.io/proto/proto_function.js.html#memoize)
* [delay](http://mailonline.github.io/proto/proto_function.js.html#delay)
* [defer](http://mailonline.github.io/proto/proto_function.js.html#defer)
* [delayed](http://mailonline.github.io/proto/proto_function.js.html#delayed)
* [deferred](http://mailonline.github.io/proto/proto_function.js.html#deferred)
* [deferTicks](http://mailonline.github.io/proto/proto_function.js.html#deferTicks)
* [delayMethod](http://mailonline.github.io/proto/proto_function.js.html#delayMethod)
* [deferMethod](http://mailonline.github.io/proto/proto_function.js.html#deferMethod)
* [debounce](http://mailonline.github.io/proto/proto_function.js.html#debounce)
* [throttle](http://mailonline.github.io/proto/proto_function.js.html#throttle)
* [once](http://mailonline.github.io/proto/proto_function.js.html#once)
* [waitFor](http://mailonline.github.io/proto/proto_function.js.html#waitFor)
* [__Function functions__](http://milojs.github.io/proto/proto_function.js.html)
* [makeFunction](http://milojs.github.io/proto/proto_function.js.html#makeFunction)
* [partial](http://milojs.github.io/proto/proto_function.js.html#partial)
* [partialRight](http://milojs.github.io/proto/proto_function.js.html#partialRight)
* [memoize](http://milojs.github.io/proto/proto_function.js.html#memoize)
* [delay](http://milojs.github.io/proto/proto_function.js.html#delay)
* [defer](http://milojs.github.io/proto/proto_function.js.html#defer)
* [delayed](http://milojs.github.io/proto/proto_function.js.html#delayed)
* [deferred](http://milojs.github.io/proto/proto_function.js.html#deferred)
* [deferTicks](http://milojs.github.io/proto/proto_function.js.html#deferTicks)
* [delayMethod](http://milojs.github.io/proto/proto_function.js.html#delayMethod)
* [deferMethod](http://milojs.github.io/proto/proto_function.js.html#deferMethod)
* [debounce](http://milojs.github.io/proto/proto_function.js.html#debounce)
* [throttle](http://milojs.github.io/proto/proto_function.js.html#throttle)
* [once](http://milojs.github.io/proto/proto_function.js.html#once)
* [waitFor](http://milojs.github.io/proto/proto_function.js.html#waitFor)
* [__String functions__](http://mailonline.github.io/proto/proto_string.js.html)
* [firstUpperCase](http://mailonline.github.io/proto/proto_string.js.html#firstUpperCase)
* [firstLowerCase](http://mailonline.github.io/proto/proto_string.js.html#firstLowerCase)
* [toRegExp](http://mailonline.github.io/proto/proto_string.js.html#toRegExp)
* [toFunction](http://mailonline.github.io/proto/proto_string.js.html#toFunction)
* [toDate](http://mailonline.github.io/proto/proto_string.js.html#toDate)
* [toQueryString](http://mailonline.github.io/proto/proto_string.js.html#toQueryString)
* [fromQueryString](http://mailonline.github.io/proto/proto_string.js.html#fromQueryString)
* [jsonParse](http://mailonline.github.io/proto/proto_string.js.html#jsonParse)
* [hashCode](http://mailonline.github.io/proto/proto_string.js.html#hashCode)
* [unPrefix](http://mailonline.github.io/proto/proto_string.js.html#unPrefix)
* [__String functions__](http://milojs.github.io/proto/proto_string.js.html)
* [firstUpperCase](http://milojs.github.io/proto/proto_string.js.html#firstUpperCase)
* [firstLowerCase](http://milojs.github.io/proto/proto_string.js.html#firstLowerCase)
* [toRegExp](http://milojs.github.io/proto/proto_string.js.html#toRegExp)
* [toFunction](http://milojs.github.io/proto/proto_string.js.html#toFunction)
* [toDate](http://milojs.github.io/proto/proto_string.js.html#toDate)
* [toQueryString](http://milojs.github.io/proto/proto_string.js.html#toQueryString)
* [fromQueryString](http://milojs.github.io/proto/proto_string.js.html#fromQueryString)
* [jsonParse](http://milojs.github.io/proto/proto_string.js.html#jsonParse)
* [hashCode](http://milojs.github.io/proto/proto_string.js.html#hashCode)
* [unPrefix](http://milojs.github.io/proto/proto_string.js.html#unPrefix)
* [__Number functions__](http://mailonline.github.io/proto/proto_number.js.html)
* [isNumeric](http://mailonline.github.io/proto/proto_number.js.html#isNumeric)
* [__Number functions__](http://milojs.github.io/proto/proto_number.js.html)
* [isNumeric](http://milojs.github.io/proto/proto_number.js.html#isNumeric)
* [__Utility functions__](http://mailonline.github.io/proto/proto_util.js.html)
* [times](http://mailonline.github.io/proto/proto_util.js.html#times)
* [repeat](http://mailonline.github.io/proto/proto_util.js.html#repeat)
* [tap](http://mailonline.github.io/proto/proto_util.js.html#tap)
* [result](http://mailonline.github.io/proto/proto_util.js.html#result)
* [identity](http://mailonline.github.io/proto/proto_util.js.html#identity)
* [property](http://mailonline.github.io/proto/proto_util.js.html#property)
* [compareProperty](http://mailonline.github.io/proto/proto_util.js.html#compareProperty)
* [noop](http://mailonline.github.io/proto_util.js.html#noop)
* [__Utility functions__](http://milojs.github.io/proto/proto_util.js.html)
* [times](http://milojs.github.io/proto/proto_util.js.html#times)
* [repeat](http://milojs.github.io/proto/proto_util.js.html#repeat)
* [tap](http://milojs.github.io/proto/proto_util.js.html#tap)
* [result](http://milojs.github.io/proto/proto_util.js.html#result)
* [identity](http://milojs.github.io/proto/proto_util.js.html#identity)
* [property](http://milojs.github.io/proto/proto_util.js.html#property)
* [compareProperty](http://milojs.github.io/proto/proto_util.js.html#compareProperty)
* [noop](http://milojs.github.io/proto_util.js.html#noop)

Sorry, the diff of this file is too big to display

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