to-object-x
Advanced tools
Comparing version 1.0.5 to 1.1.0
23
index.js
@@ -47,3 +47,3 @@ /** | ||
* | ||
* @version 1.0.5 | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -55,17 +55,20 @@ * @copyright Xotic750 | ||
/*jslint maxlen:80, es6:false, white:true */ | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/*global module */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
;(function () { | ||
/* global module */ | ||
;(function () { // eslint-disable-line no-extra-semi | ||
'use strict'; | ||
var $Object = Object; | ||
var $requireObjectCoercible = require('require-object-coercible-x'); | ||
var $requireObjectCoercible = require('require-object-coercible-x'); // eslint-disable-line id-length | ||
@@ -72,0 +75,0 @@ /** |
@@ -48,3 +48,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
* | ||
* @version 1.0.5 | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -56,17 +56,20 @@ * @copyright Xotic750 | ||
/*jslint maxlen:80, es6:false, white:true */ | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/*global module */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
;(function () { | ||
/* global module */ | ||
;(function () { // eslint-disable-line no-extra-semi | ||
'use strict'; | ||
var $Object = Object; | ||
var $requireObjectCoercible = _dereq_('require-object-coercible-x'); | ||
var $requireObjectCoercible = _dereq_('require-object-coercible-x'); // eslint-disable-line id-length | ||
@@ -136,3 +139,3 @@ /** | ||
* | ||
* @version 1.0.10 | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -144,13 +147,16 @@ * @copyright Xotic750 | ||
/*jslint maxlen:80, es6:false, white:true */ | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:true, esnext:false, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/*global module */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
;(function () { | ||
/* global module */ | ||
;(function () { // eslint-disable-line no-extra-semi | ||
'use strict'; | ||
@@ -261,3 +267,3 @@ | ||
* | ||
* @version 1.0.5 | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -269,13 +275,16 @@ * @copyright Xotic750 | ||
/*jslint maxlen:80, es6:true, white:true */ | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/*global module */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
;(function () { | ||
/* global module */ | ||
;(function () { // eslint-disable-line no-extra-semi | ||
'use strict'; | ||
@@ -302,6 +311,6 @@ | ||
module.exports = function RequireObjectCoercible(value) { | ||
if (isNil(value)) { | ||
throw new TypeError('Cannot call method on ' + value); | ||
} | ||
return value; | ||
if (isNil(value)) { | ||
throw new TypeError('Cannot call method on ' + value); | ||
} | ||
return value; | ||
}; | ||
@@ -308,0 +317,0 @@ }()); |
{ | ||
"name": "to-object-x", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "ToObject module.", | ||
@@ -32,15 +32,19 @@ "homepage": "https://github.com/Xotic750/to-object-x", | ||
"dependencies": { | ||
"require-object-coercible-x": "^1.0.5" | ||
"require-object-coercible-x": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"es5-shim": "^4.5.4", | ||
"es6-shim": "^0.34.4", | ||
"@ljharb/eslint-config": "^11.0.0", | ||
"es5-shim": "^4.5.9", | ||
"es6-shim": "^0.35.3", | ||
"es7-shim": "^6.0.0", | ||
"eslint": "^3.15.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"json3": "^3.3.2", | ||
"jscs": "^2.9.0", | ||
"uglify-js": "^2.6.1", | ||
"browserify": "^13.0.0", | ||
"jscs": "^3.0.7", | ||
"uglify-js": "^2.7.5", | ||
"browserify": "^14.1.0", | ||
"browserify-derequire": "^0.9.4", | ||
"jasmine-node": "^1.14.5", | ||
"jsdoc-to-markdown": "^1.3.3", | ||
"nsp": "^2.2.0" | ||
"jsdoc-to-markdown": "^3.0.0", | ||
"nsp": "^2.6.2" | ||
}, | ||
@@ -51,2 +55,3 @@ "scripts": { | ||
"style": "jscs index.js", | ||
"eslint": "eslint *.js tests/spec/*.js", | ||
"docs": "jsdoc2md --name-format --example-lang js index.js > README.md", | ||
@@ -53,0 +58,0 @@ "build": "browserify -p browserify-derequire -e index.js -o lib/to-object-x.js -u 'crypto' -s returnExports", |
<a name="module_to-object-x"></a> | ||
## to-object-x | ||
@@ -47,3 +48,3 @@ <a href="https://travis-ci.org/Xotic750/to-object-x" | ||
**Version**: 1.0.5 | ||
**Version**: 1.1.0 | ||
**Author:** Xotic750 <Xotic750@gmail.com> | ||
@@ -53,2 +54,3 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) | ||
<a name="exp_module_to-object-x--module.exports"></a> | ||
### `module.exports(value)` ⇒ <code>Object</code> ⏏ | ||
@@ -55,0 +57,0 @@ The abstract operation ToObject converts argument to a value of |
@@ -1,18 +0,21 @@ | ||
/*jslint maxlen:80, es6:true, white:true */ | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:2, | ||
maxstatements:12, maxcomplexity:4 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:2, | ||
maxstatements:12, maxcomplexity:4 */ | ||
/*global JSON:true, expect, module, require, describe, xit, it, returnExports */ | ||
/* eslint strict: 1, max-lines: 1, symbol-description: 1, max-nested-callbacks: 1, | ||
max-statements: 1 */ | ||
(function () { | ||
/* global JSON:true, expect, module, require, describe, xit, it, returnExports */ | ||
(function () { // eslint-disable-line no-extra-semi | ||
'use strict'; | ||
var hasSymbol = typeof Symbol === 'function' && | ||
typeof Symbol() === 'symbol', | ||
ifSymbolIt = hasSymbol ? it : xit, | ||
$toObject; | ||
var hasSymbol = typeof Symbol === 'function' && typeof Symbol() === 'symbol'; | ||
var ifSymbolIt = hasSymbol ? it : xit; | ||
var $toObject; | ||
if (typeof module === 'object' && module.exports) { | ||
@@ -26,2 +29,9 @@ require('es5-shim'); | ||
require('es6-shim'); | ||
var es7 = require('es7-shim'); | ||
Object.keys(es7).forEach(function (key) { | ||
var obj = es7[key]; | ||
if (typeof obj.shim === 'function') { | ||
obj.shim(); | ||
} | ||
}); | ||
$toObject = require('../../index.js'); | ||
@@ -28,0 +38,0 @@ } else { |
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
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
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
137150
14
649
79
14