functions-have-names
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -1,9 +0,31 @@ | ||
### Changelog | ||
# Changelog | ||
All notable changes to this project will be documented in this file. Dates are displayed in UTC. | ||
All notable changes to this project will be documented in this file. | ||
#### [v1.2.2](https://github.com/inspect-js/functions-have-names/compare/v1.2.1...v1.2.2) | ||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
> 14 December 2020 | ||
## [v1.2.3](https://github.com/inspect-js/functions-have-names/compare/v1.2.2...v1.2.3) - 2022-04-19 | ||
### Fixed | ||
- [Fix] in IE 9-11, the descriptor is absent [`#11`](https://github.com/inspect-js/functions-have-names/issues/11) [`#25`](https://github.com/es-shims/RegExp.prototype.flags/issues/25) | ||
### Commits | ||
- [actions] reuse common workflows [`4ed274a`](https://github.com/inspect-js/functions-have-names/commit/4ed274a2441c7fd38ff6add741c309e268550d97) | ||
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`96dfcaa`](https://github.com/inspect-js/functions-have-names/commit/96dfcaaf1c9c5305f2b66ef69f9cddf1d9d9a578) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`9e674f8`](https://github.com/inspect-js/functions-have-names/commit/9e674f85520a93235e412a3fd7671d2356c6e45b) | ||
- [readme] add github actions/codecov badges; update URLs [`d913f5b`](https://github.com/inspect-js/functions-have-names/commit/d913f5bf38ccab32d5fbea4a044b9cd93a4b9bec) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `safe-publish-latest`, `tape` [`f61058f`](https://github.com/inspect-js/functions-have-names/commit/f61058fe1e34f2cfa9235283a4fc6c0c0172c91a) | ||
- [actions] update codecov uploader [`3348839`](https://github.com/inspect-js/functions-have-names/commit/33488394e7cadbf499bee4775c627c1370d033d0) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`ee1a321`](https://github.com/inspect-js/functions-have-names/commit/ee1a3211a40902af59aa629e3ac41ec36360dc1b) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`b8dc1a2`](https://github.com/inspect-js/functions-have-names/commit/b8dc1a277b08362bebedfeba2faca8964f68283b) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `tape` [`0e825c4`](https://github.com/inspect-js/functions-have-names/commit/0e825c4ba8525b02d9acaaf2511371f76c0562ce) | ||
- [meta] use `prepublishOnly` script for npm 7+ [`9489d66`](https://github.com/inspect-js/functions-have-names/commit/9489d666c59702ea6bafd3ff611b3eadfee6570e) | ||
## [v1.2.2](https://github.com/inspect-js/functions-have-names/compare/v1.2.1...v1.2.2) - 2020-12-14 | ||
### Commits | ||
- [Tests] migrate tests to Github Actions [`39bf4fe`](https://github.com/inspect-js/functions-have-names/commit/39bf4fe5ae5b3610a80ba13726f3ee00e3c49e2f) | ||
@@ -23,5 +45,5 @@ - [meta] do not publish github action workflow files [`45ab0cb`](https://github.com/inspect-js/functions-have-names/commit/45ab0cbdc0da2efd64f5deb9810be63009bac4a0) | ||
#### [v1.2.1](https://github.com/inspect-js/functions-have-names/compare/v1.2.0...v1.2.1) | ||
## [v1.2.1](https://github.com/inspect-js/functions-have-names/compare/v1.2.0...v1.2.1) - 2020-01-19 | ||
> 19 January 2020 | ||
### Commits | ||
@@ -34,5 +56,5 @@ - [Tests] use shared travis-ci configs [`612823a`](https://github.com/inspect-js/functions-have-names/commit/612823a064b4be4c61a1e52d1009abed4a4fc4fb) | ||
#### [v1.2.0](https://github.com/inspect-js/functions-have-names/compare/v1.1.1...v1.2.0) | ||
## [v1.2.0](https://github.com/inspect-js/functions-have-names/compare/v1.1.1...v1.2.0) - 2019-10-20 | ||
> 20 October 2019 | ||
### Commits | ||
@@ -42,5 +64,5 @@ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `auto-changelog` [`7e07444`](https://github.com/inspect-js/functions-have-names/commit/7e0744437789641ea462005d2e350ef476aa7141) | ||
#### [v1.1.1](https://github.com/inspect-js/functions-have-names/compare/v1.1.0...v1.1.1) | ||
## [v1.1.1](https://github.com/inspect-js/functions-have-names/compare/v1.1.0...v1.1.1) - 2019-07-24 | ||
> 24 July 2019 | ||
### Commits | ||
@@ -51,11 +73,11 @@ - [Tests] fix linting errors [`0cb8017`](https://github.com/inspect-js/functions-have-names/commit/0cb8017203ae37d1e019bb1c99120f3f56a266a5) | ||
#### [v1.1.0](https://github.com/inspect-js/functions-have-names/compare/v1.0.0...v1.1.0) | ||
## [v1.1.0](https://github.com/inspect-js/functions-have-names/compare/v1.0.0...v1.1.0) - 2019-07-23 | ||
> 23 July 2019 | ||
### Commits | ||
- [New] add `functionsHaveConfigurableNames` function on main export [`ce73f75`](https://github.com/inspect-js/functions-have-names/commit/ce73f75891640a462326df7266d90b09519a5fca) | ||
#### v1.0.0 | ||
## v1.0.0 - 2019-07-22 | ||
> 22 July 2019 | ||
### Commits | ||
@@ -62,0 +84,0 @@ - [Tests] add travis.yml [`06ed096`](https://github.com/inspect-js/functions-have-names/commit/06ed09681a3dc067094562e8d21a31400a782add) |
@@ -18,3 +18,7 @@ 'use strict'; | ||
functionsHaveNames.functionsHaveConfigurableNames = function functionsHaveConfigurableNames() { | ||
return functionsHaveNames() && gOPD && !!gOPD(function () {}, 'name').configurable; | ||
if (!functionsHaveNames() || !gOPD) { | ||
return false; | ||
} | ||
var desc = gOPD(function () {}, 'name'); | ||
return !!desc && !!desc.configurable; | ||
}; | ||
@@ -21,0 +25,0 @@ |
{ | ||
"name": "functions-have-names", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Does this JS environment support the `name` property on functions?", | ||
"main": "index.js", | ||
"scripts": { | ||
"prepublish": "safe-publish-latest", | ||
"prepublish": "not-in-publish || npm run prepublishOnly", | ||
"prepublishOnly": "safe-publish-latest", | ||
"version": "auto-changelog && git add CHANGELOG.md", | ||
@@ -38,12 +39,13 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^17.3.0", | ||
"aud": "^1.1.3", | ||
"auto-changelog": "^2.2.1", | ||
"eslint": "^7.15.0", | ||
"@ljharb/eslint-config": "^21.0.0", | ||
"aud": "^2.0.0", | ||
"auto-changelog": "^2.4.0", | ||
"eslint": "=8.8.0", | ||
"nyc": "^10.3.2", | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.0.1" | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.5.3" | ||
}, | ||
"auto-changelog": { | ||
"output": "CHANGELOG.md", | ||
"template": "keepachangelog", | ||
"unreleased": false, | ||
@@ -50,0 +52,0 @@ "commitLimit": false, |
@@ -1,9 +0,11 @@ | ||
# functions-have-names <sup>[![Version Badge][2]][1]</sup> | ||
# functions-have-names <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
[![dependency status][5]][6] | ||
[![dev dependency status][7]][8] | ||
[![github actions][actions-image]][actions-url] | ||
[![coverage][codecov-image]][codecov-url] | ||
[![dependency status][deps-svg]][deps-url] | ||
[![dev dependency status][dev-deps-svg]][dev-deps-url] | ||
[![License][license-image]][license-url] | ||
[![Downloads][downloads-image]][downloads-url] | ||
[![npm badge][11]][1] | ||
[![npm badge][npm-badge-png]][package-url] | ||
@@ -24,9 +26,9 @@ Does this JS environment support the `name` property on functions? | ||
[1]: https://npmjs.org/package/functions-have-names | ||
[2]: https://versionbadg.es/inspect-js/functions-have-names.svg | ||
[5]: https://david-dm.org/inspect-js/functions-have-names.svg | ||
[6]: https://david-dm.org/inspect-js/functions-have-names | ||
[7]: https://david-dm.org/inspect-js/functions-have-names/dev-status.svg | ||
[8]: https://david-dm.org/inspect-js/functions-have-names#info=devDependencies | ||
[11]: https://nodei.co/npm/functions-have-names.png?downloads=true&stars=true | ||
[package-url]: https://npmjs.org/package/functions-have-names | ||
[npm-version-svg]: https://versionbadg.es/inspect-js/functions-have-names.svg | ||
[deps-svg]: https://david-dm.org/inspect-js/functions-have-names.svg | ||
[deps-url]: https://david-dm.org/inspect-js/functions-have-names | ||
[dev-deps-svg]: https://david-dm.org/inspect-js/functions-have-names/dev-status.svg | ||
[dev-deps-url]: https://david-dm.org/inspect-js/functions-have-names#info=devDependencies | ||
[npm-badge-png]: https://nodei.co/npm/functions-have-names.png?downloads=true&stars=true | ||
[license-image]: https://img.shields.io/npm/l/functions-have-names.svg | ||
@@ -36,1 +38,5 @@ [license-url]: LICENSE | ||
[downloads-url]: https://npm-stat.com/charts.html?package=functions-have-names | ||
[codecov-image]: https://codecov.io/gh/inspect-js/functions-have-names/branch/main/graphs/badge.svg | ||
[codecov-url]: https://app.codecov.io/gh/inspect-js/functions-have-names/ | ||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/functions-have-names | ||
[actions-url]: https://github.com/inspect-js/functions-have-names/actions |
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
16715
78
41
10