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

function.prototype.name

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

function.prototype.name - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

.github/FUNDING.yml

13

CHANGELOG.md

@@ -0,1 +1,14 @@

1.1.1 / 2019-07-24
=================
* [Refactor] use `functions-have-names`
* [meta] clean up package.json scripts
* [meta] update links
* [meta] create FUNDING.yml
* [Deps] update `is-callable`, `define-properties`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `covert`
* [Tests] use `eccheck` over `editorconfig-tools`
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
* [Tests] up to `node` `v11.7`, `v10.15`, `v9.11`, `v8.15`, `v6.16`, `v4.9`
* [Test] remove `jscs`
1.1.0 / 2017-12-31

@@ -2,0 +15,0 @@ =================

6

helpers/functionsHaveNames.js

@@ -1,1 +0,5 @@

module.exports = typeof function foo() {}.name === 'string'; // when function names are minified, checking for "foo" would break
'use strict';
module.exports = require('functions-have-names')();
// TODO: semver-major, remove

2

implementation.js
'use strict';
var isCallable = require('is-callable');
var functionsHaveNames = require('./helpers/functionsHaveNames');
var functionsHaveNames = require('functions-have-names')();
var bind = require('function-bind');

@@ -6,0 +6,0 @@ var functionToString = bind.call(Function.call, Function.prototype.toString);

{
"name": "function.prototype.name",
"version": "1.1.0",
"version": "1.1.1",
"author": "Jordan Harband",

@@ -12,15 +12,11 @@ "description": "An ES6 spec-compliant `Function.prototype.name` shim",

"test": "npm run --silent tests-only",
"posttest": "npm run security",
"posttest": "npx aud",
"tests-only": "es-shim-api --bound && node test && node test/shimmed && node test/uglified",
"coverage": "covert test/*.js",
"coverage-quiet": "covert test/*.js --quiet",
"lint": "npm run jscs && npm run eslint",
"eslint": "eslint test/*.js *.js",
"jscs": "jscs test/*.js *.js",
"eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
"security": "nsp package"
"coverage": "covert test",
"lint": "eslint .",
"eccheck": "eclint check '*.js' '**/*.js'"
},
"repository": {
"type": "git",
"url": "git://github.com/ljharb/function.prototype.name.git"
"url": "git://github.com/es-shims/function.prototype.name.git"
},

@@ -36,18 +32,17 @@ "keywords": [

"dependencies": {
"define-properties": "^1.1.2",
"define-properties": "^1.1.3",
"function-bind": "^1.1.1",
"is-callable": "^1.1.3"
"functions-have-names": "^1.1.1",
"is-callable": "^1.1.4"
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^12.2.1",
"covert": "^1.1.0",
"editorconfig-tools": "^0.1.1",
"eslint": "^4.14.0",
"jscs": "^3.0.7",
"@ljharb/eslint-config": "^13.1.1",
"covert": "^1.1.1",
"eclint": "^2.8.1",
"eslint": "^5.16.0",
"make-arrow-function": "^1.1.0",
"make-generator-function": "^1.1.0",
"nsp": "^3.1.0",
"safe-publish-latest": "^1.1.1",
"tape": "^4.8.0",
"safe-publish-latest": "^1.1.2",
"tape": "^4.11.0",
"uglify-register": "^1.0.1"

@@ -54,0 +49,0 @@ },

@@ -11,4 +11,2 @@ # function.prototype.name <sup>[![Version Badge][2]][1]</sup>

[![browser support][9]][10]
An ES6 spec-compliant `Function.prototype.name` shim. Invoke its "shim" method to shim Function.prototype.name if it is unavailable.

@@ -37,11 +35,9 @@ *Note*: `Function#name` requires a true ES5 environment - specifically, one with ES5 getters.

[1]: https://npmjs.org/package/function.prototype.name
[2]: http://versionbadg.es/ljharb/function.prototype.name.svg
[3]: https://travis-ci.org/ljharb/function.prototype.name.svg
[4]: https://travis-ci.org/ljharb/function.prototype.name
[5]: https://david-dm.org/ljharb/function.prototype.name.svg
[6]: https://david-dm.org/ljharb/function.prototype.name
[7]: https://david-dm.org/ljharb/function.prototype.name/dev-status.svg
[8]: https://david-dm.org/ljharb/function.prototype.name#info=devDependencies
[9]: https://ci.testling.com/ljharb/function.prototype.name.png
[10]: https://ci.testling.com/ljharb/function.prototype.name
[2]: http://versionbadg.es/es-shims/function.prototype.name.svg
[3]: https://travis-ci.org/es-shims/function.prototype.name.svg
[4]: https://travis-ci.org/es-shims/function.prototype.name
[5]: https://david-dm.org/es-shims/function.prototype.name.svg
[6]: https://david-dm.org/es-shims/function.prototype.name
[7]: https://david-dm.org/es-shims/function.prototype.name/dev-status.svg
[8]: https://david-dm.org/es-shims/function.prototype.name#info=devDependencies
[11]: https://nodei.co/npm/function.prototype.name.png?downloads=true&stars=true

@@ -48,0 +44,0 @@ [license-image]: http://img.shields.io/npm/l/function.prototype.name.svg

'use strict';
var supportsDescriptors = require('define-properties').supportsDescriptors;
var functionsHaveNames = require('./helpers/functionsHaveNames');
var functionsHaveNames = require('functions-have-names')();
var getPolyfill = require('./polyfill');

@@ -6,0 +6,0 @@ var defineProperty = Object.defineProperty;

'use strict';
var functionsHaveNames = require('../helpers/functionsHaveNames');
var functionsHaveNames = require('functions-have-names')();
var arrowFn = require('make-arrow-function')();

@@ -9,3 +9,3 @@ var genFn = require('make-generator-function');

var anon = Object(function () {});
var evalled = Object(Function());
var evalled = Object(Function()); // eslint-disable-line no-new-func

@@ -12,0 +12,0 @@ module.exports = function (getName, t) {

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

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