Socket
Socket
Sign inDemoInstall

unbounded

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unbounded - npm Package Compare versions

Comparing version 2.3.0 to 3.0.0-next.1589196829.ddf16d69635ec0199f4dda39564cb8ad83df7a50

index.js

58

edition-browsers/index.js

@@ -1,42 +0,46 @@

'use strict';
'use strict'
var bind = Function.prototype.bind;
var bind = Function.prototype.bind
function define(bounded, unbounded) {
if (bounded.unbounded !== unbounded) {
Object.defineProperty(bounded, 'unbounded', {
value: unbounded.unbounded || unbounded,
enumerable: false,
configurable: false,
writable: false
});
}
if (bounded.unbounded !== unbounded) {
Object.defineProperty(bounded, 'unbounded', {
value: unbounded.unbounded || unbounded,
enumerable: false,
configurable: false,
writable: false,
})
}
return bounded;
return bounded
}
function binder() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
for (
var _len = arguments.length, args = new Array(_len), _key = 0;
_key < _len;
_key++
) {
args[_key] = arguments[_key]
}
var bounded = bind.apply(this, args);
define(bounded, this);
return bounded;
var bounded = bind.apply(this, args)
define(bounded, this)
return bounded
}
function patch() {
if (Function.prototype.bind !== binder) {
/* eslint no-extend-native:0 */
Function.prototype.bind = binder;
}
if (Function.prototype.bind !== binder) {
/* eslint no-extend-native:0 */
Function.prototype.bind = binder
}
return module.exports;
return module.exports
}
module.exports = {
bind: bind,
binder: binder,
patch: patch,
define: define
};
bind: bind,
binder: binder,
patch: patch,
define: define,
}
# History
## v3.0.0 2020 May 11
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
- Minimum required node version changed from `node: >=8` to `node: >=10` to keep up with mandatory ecosystem changes
## v2.3.0 2019 December 10

@@ -4,0 +9,0 @@

{
"name": "unbounded",
"version": "2.3.0",
"version": "3.0.0-next.1589196829.ddf16d69635ec0199f4dda39564cb8ad83df7a50",
"description": "Function.prototype.bind replacement that provides an `unbounded` hidden property on the returned bounded function, that contains the original unbounded function",

@@ -10,5 +10,8 @@ "homepage": "https://github.com/bevry/unbounded",

"binded",
"browser",
"esnext",
"function",
"node",
"unbound",
"unbounded",
"function"
"unbounded"
],

@@ -43,3 +46,7 @@ "badges": {

"wishlistURL": "https://bevry.me/wishlist",
"travisTLD": "com"
"travisTLD": "com",
"githubUsername": "bevry",
"githubRepository": "unbounded",
"githubSlug": "bevry/unbounded",
"npmPackageName": "unbounded"
}

@@ -50,7 +57,6 @@ },

"maintainers": [
"Benjamin Lupton (http://balupton.com)"
"Benjamin Lupton (https://github.com/balupton)"
],
"contributors": [
"Benjamin Lupton (http://balupton.com)",
"dependabot-preview[bot] (http://github.com/apps/dependabot-preview)"
"Benjamin Lupton (https://github.com/balupton)"
],

@@ -65,7 +71,7 @@ "bugs": {

"engines": {
"node": ">=8"
"node": ">=10"
},
"editions": [
{
"description": "esnext source code with require for modules",
"description": "ESNext source code for Node.js with Require for modules",
"directory": "source",

@@ -79,3 +85,3 @@ "entry": "index.js",

"engines": {
"node": "8 || 10 || 12",
"node": "10 || 12 || 13 || 14",
"browsers": false

@@ -85,3 +91,3 @@ }

{
"description": "esnext compiled for browsers with require for modules",
"description": "ESNext compiled for web browsers with Require for modules",
"directory": "edition-browsers",

@@ -100,18 +106,22 @@ "entry": "index.js",

"type": "commonjs",
"main": "source/index.js",
"main": "index.js",
"browser": "edition-browsers/index.js",
"dependencies": {
"editions": "^2.3.0"
},
"devDependencies": {
"@babel/cli": "^7.7.5",
"@babel/core": "^7.7.5",
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
"@babel/preset-env": "^7.7.6",
"assert-helpers": "^5.8.0",
"eslint": "^6.7.2",
"eslint-config-bevry": "^2.3.0",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-prettier": "^3.1.1",
"kava": "^4.4.0",
"prettier": "^1.19.1",
"projectz": "^1.16.0",
"valid-directory": "^1.5.0"
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@bevry/update-contributors": "^1.4.0",
"assert-helpers": "^6.2.0",
"eslint": "^7.0.0",
"eslint-config-bevry": "^3.4.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"kava": "^5.0.0",
"prettier": "^2.0.5",
"projectz": "^2.1.0",
"valid-directory": "^1.6.0"
},

@@ -123,4 +133,5 @@ "scripts": {

"our:deploy": "echo no need for this project",
"our:meta": "npm run our:meta:projectz",
"our:meta:projectz": "projectz compile",
"our:meta": "npm run our:meta:contributors && npm run our:meta:projectz",
"our:meta:contributors": "npx @bevry/update-contributors",
"our:meta:projectz": "npx projectz compile",
"our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",

@@ -137,5 +148,5 @@ "our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)",

"our:verify:directory": "npx valid-directory",
"our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
"our:verify:prettier": "prettier --write ./source/**",
"test": "node ./source/test.js"
"our:verify:eslint": "npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
"our:verify:prettier": "npx prettier --write .",
"test": "node ./test.js"
},

@@ -159,3 +170,6 @@ "eslintConfig": {

{
"targets": "defaults",
"targets": {
"esmodules": false,
"browsers": "defaults"
},
"modules": false

@@ -162,0 +176,0 @@ }

@@ -7,3 +7,2 @@ <!-- TITLE/ -->

<!-- BADGES/ -->

@@ -29,3 +28,2 @@

<!-- DESCRIPTION/ -->

@@ -37,32 +35,2 @@

<!-- INSTALL/ -->
<h2>Install</h2>
<a href="https://npmjs.com" title="npm is a package manager for javascript"><h3>npm</h3></a>
<ul>
<li>Install: <code>npm install --save unbounded</code></li>
<li>Require: <code>require('unbounded')</code></li>
</ul>
<a href="https://jspm.io" title="Native ES Modules CDN"><h3>jspm</h3></a>
``` html
<script type="module">
import * as pkg from '//dev.jspm.io/unbounded'
</script>
```
<h3><a href="https://editions.bevry.me" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3>
<p>This package is published with the following editions:</p>
<ul><li><code>unbounded</code> aliases <code>unbounded/source/index.js</code></li>
<li><code>unbounded/source/index.js</code> is esnext source code with require for modules</li>
<li><code>unbounded/edition-browsers/index.js</code> is esnext compiled for browsers with require for modules</li></ul>
<!-- /INSTALL -->
## Usage

@@ -76,6 +44,6 @@

``` javascript
const {binder} = require('unbounded')
```javascript
const { binder } = require('unbounded')
const context = { hello: 'world' }
function a () {
function a() {
return this.hello

@@ -90,6 +58,6 @@ }

``` javascript
```javascript
require('unbounded').patch()
const context = { hello: 'world' }
function a () {
function a() {
return this.hello

@@ -102,3 +70,32 @@ }

<!-- INSTALL/ -->
<h2>Install</h2>
<a href="https://npmjs.com" title="npm is a package manager for javascript"><h3>npm</h3></a>
<ul>
<li>Install: <code>npm install --save unbounded</code></li>
<li>Import: <code>import * as pkg from ('unbounded')</code></li>
<li>Require: <code>const pkg = require('unbounded')</code></li>
</ul>
<a href="https://jspm.io" title="Native ES Modules CDN"><h3>jspm</h3></a>
```html
<script type="module">
import * as pkg from '//dev.jspm.io/unbounded@3.0.0'
</script>
```
<h3><a href="https://editions.bevry.me" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3>
<p>This package is published with the following editions:</p>
<ul><li><code>unbounded</code> aliases <code>unbounded/index.js</code> which uses the <a href="https://github.com/bevry/editions" title="You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>
<li><code>unbounded/source/index.js</code> is <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> source code for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>unbounded/edition-browsers/index.js</code> is <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> compiled for web browsers with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li></ul>
<!-- /INSTALL -->
<!-- HISTORY/ -->

@@ -112,3 +109,2 @@

<!-- CONTRIBUTE/ -->

@@ -122,3 +118,2 @@

<!-- BACKERS/ -->

@@ -132,3 +127,3 @@

<ul><li><a href="http://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/unbounded/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/unbounded">view contributions</a></li></ul>
<ul><li><a href="https://github.com/balupton">Benjamin Lupton</a> — <a href="https://github.com/bevry/unbounded/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/unbounded">view contributions</a></li></ul>

@@ -153,4 +148,3 @@ <h3>Sponsors</h3>

<ul><li><a href="http://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/unbounded/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/unbounded">view contributions</a></li>
<li><a href="http://github.com/apps/dependabot-preview">dependabot-preview[bot]</a> — <a href="https://github.com/bevry/unbounded/commits?author=dependabot-preview[bot]" title="View the GitHub contributions of dependabot-preview[bot] on repository bevry/unbounded">view contributions</a></li></ul>
<ul><li><a href="https://github.com/balupton">Benjamin Lupton</a> — <a href="https://github.com/bevry/unbounded/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/unbounded">view contributions</a></li></ul>

@@ -161,3 +155,2 @@ <a href="https://github.com/bevry/unbounded/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>

<!-- LICENSE/ -->

@@ -164,0 +157,0 @@

@@ -11,3 +11,3 @@ 'use strict'

configurable: false,
writable: false
writable: false,
})

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