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

is-finalizationregistry

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-finalizationregistry - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

14

CHANGELOG.md

@@ -8,2 +8,16 @@ # Changelog

## [v1.0.2](https://github.com/inspect-js/is-finalizationregistry/compare/v1.0.1...v1.0.2) - 2021-10-05
### Commits
- [meta] do not publish Github Actions workflows [`5509e8c`](https://github.com/inspect-js/is-finalizationregistry/commit/5509e8c13173a128244fc306d304c9be958b62f3)
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`b566204`](https://github.com/inspect-js/is-finalizationregistry/commit/b5662048c9824089baf6fe3e0c408d6297635b2c)
- [readme] fix markdown [`02602dd`](https://github.com/inspect-js/is-finalizationregistry/commit/02602dda3176944f6681b97fb0d26e43bf2accc8)
- [Fix] use `call-bind` and obviate missing `es-abstract` dep [`9d71846`](https://github.com/inspect-js/is-finalizationregistry/commit/9d718467ef713e10242c28e48d82947d108ed5ef)
- [readme] add actions and codecov badges [`75381a7`](https://github.com/inspect-js/is-finalizationregistry/commit/75381a76ad373fd4bea0f032e8593dec60785332)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `auto-changelog`, `object-inspect`, `tape` [`7a0f9d8`](https://github.com/inspect-js/is-finalizationregistry/commit/7a0f9d8befeee03f578cf9184190e4a143a05abf)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `object-inspect`, `tape` [`962689f`](https://github.com/inspect-js/is-finalizationregistry/commit/962689f01c33d06eadb4456004d231b56cb13825)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`762ebf2`](https://github.com/inspect-js/is-finalizationregistry/commit/762ebf2f8d06597029b794053f0630b6ddeb7cc2)
- [meta] add `safe-publish-latest`; use `prepublishOnly` script for npm 7+ [`fe0b226`](https://github.com/inspect-js/is-finalizationregistry/commit/fe0b2268e0eaa4fd56418aba87d2e761c04917e6)
## [v1.0.1](https://github.com/inspect-js/is-finalizationregistry/compare/v1.0.0...v1.0.1) - 2020-12-04

@@ -10,0 +24,0 @@

14

index.js
'use strict';
var callBind = require('es-abstract/helpers/callBind');
var callBound = require('call-bind/callBound');
var $register = typeof FinalizationRegistry === 'undefined' ? null : callBind(FinalizationRegistry.prototype.register);
var $register = callBound('FinalizationRegistry.prototype.register', true);
module.exports = typeof FinalizationRegistry === 'undefined'
? function isFinalizationRegistry(value) { // eslint-disable-line no-unused-vars
return false;
}
: function isFinalizationRegistry(value) {
module.exports = $register
? function isFinalizationRegistry(value) {
if (!value || typeof value !== 'object') {

@@ -21,2 +18,5 @@ return false;

}
}
: function isFinalizationRegistry(value) { // eslint-disable-line no-unused-vars
return false;
};
{
"name": "is-finalizationregistry",
"version": "1.0.1",
"version": "1.0.2",
"description": "Is this value a JS FinalizationRegistry? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",

@@ -16,2 +16,4 @@ "main": "index.js",

"scripts": {
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -45,10 +47,11 @@ "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.14.0",
"@ljharb/eslint-config": "^18.0.0",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"eslint": "^7.32.0",
"for-each": "^0.3.3",
"nyc": "^10.3.2",
"object-inspect": "^1.9.0",
"tape": "^5.0.1"
"object-inspect": "^1.11.0",
"safe-publish-latest": "^1.1.4",
"tape": "^5.3.1"
},

@@ -62,3 +65,6 @@ "auto-changelog": {

"hideCredit": true
},
"dependencies": {
"call-bind": "^1.0.2"
}
}

@@ -1,9 +0,11 @@

# is-finalizationregistry <sup>[![Version Badge][2]][1]</sup>
# is-finalizationregistry <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]

@@ -38,12 +40,16 @@ Is this value a JS FinalizationRegistry? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

[1]: https://npmjs.org/package/is-finalizationregistry
[2]: http://versionbadg.es/inspect-js/is-finalizationregistry.svg
[5]: https://david-dm.org/inspect-js/is-finalizationregistry.svg
[6]: https://david-dm.org/inspect-js/is-finalizationregistry
[7]: https://david-dm.org/inspect-js/is-finalizationregistry/dev-status.svg
[8]: https://david-dm.org/inspect-js/is-finalizationregistry#info=devDependencies
[11]: https://nodei.co/npm/is-finalizationregistry.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/is-finalizationregistry.svg
[package-url]: https://npmjs.org/package/is-finalizationregistry
[npm-version-svg]: https://versionbadg.es/inspect-js/is-finalizationregistry.svg
[deps-svg]: https://david-dm.org/inspect-js/is-finalizationregistry.svg
[deps-url]: https://david-dm.org/inspect-js/is-finalizationregistry
[dev-deps-svg]: https://david-dm.org/inspect-js/is-finalizationregistry/dev-status.svg
[dev-deps-url]: https://david-dm.org/inspect-js/is-finalizationregistry#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/is-finalizationregistry.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/is-finalizationregistry.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/is-finalizationregistry.svg
[downloads-url]: http://npm-stat.com/charts.html?package=is-finalizationregistry
[downloads-image]: https://img.shields.io/npm/dm/is-finalizationregistry.svg
[downloads-url]: https://npm-stat.com/charts.html?package=is-finalizationregistry
[codecov-image]: https://codecov.io/gh/inspect-js/is-finalizationregistry/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-finalizationregistry/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-finalizationregistry
[actions-url]: https://github.com/inspect-js/is-finalizationregistry/actions

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