{"_id":"is-weakset","_rev":"3343500","name":"is-weakset","description":"Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2024-07-10T08:46:00.000Z","created":"2015-02-18T12:14:43.897Z","2.0.3":"2024-03-08T20:18:42.103Z","2.0.2":"2021-12-13T02:25:57.003Z","2.0.1":"2019-12-18T05:39:14.311Z","2.0.0":"2019-11-12T20:23:39.397Z","1.0.1":"2015-06-03T17:04:46.271Z","1.0.0":"2015-02-18T12:14:43.897Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakset.git"},"versions":{"2.0.3":{"name":"is-weakset","version":"2.0.3","description":"Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","main":"index.js","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && attw -P","tests-only":"nyc tape 'test/**/*.js'","tests:shims":"nyc tape --require=es5-shim --require=es6-shim 'test/**/*.js'","tests:corejs":"nyc tape --require=core-js 'test/**/*.js'","test":"npm run tests-only && npm run tests:shims && npm run tests:corejs","posttest":"aud --production"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakset.git"},"keywords":["map","weakmap","set","weakset","collection","is","robust"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/is-weakset/issues"},"homepage":"https://github.com/inspect-js/is-weakset#readme","dependencies":{"call-bind":"^1.0.7","get-intrinsic":"^1.2.4"},"devDependencies":{"@arethetypeswrong/cli":"^0.15.0","@ljharb/eslint-config":"^21.1.0","@types/call-bind":"^1.0.5","@types/for-each":"^0.3.3","@types/get-intrinsic":"^1.2.2","@types/object-inspect":"^1.8.4","@types/tape":"^5.6.4","aud":"^2.0.4","auto-changelog":"^2.4.0","core-js":"^2.6.12","es5-shim":"^4.6.7","es6-shim":"^0.35.8","eslint":"=8.8.0","for-each":"^0.3.3","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.1","safe-publish-latest":"^2.0.0","tape":"^5.7.5","typescript":"next"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"is-weakset@2.0.3","gitHead":"10b18409d54d25909a23943b6c0461c5477201da","types":"./index.d.ts","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"shasum":"e801519df8c0c43e12ff2834eead84ec9e624007","size":8082,"noattachment":false,"key":"/is-weakset/-/is-weakset-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakset/download/is-weakset-2.0.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-weakset_2.0.3_1709929121930_0.7669151720556282"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-08T20:18:42.103Z","publish_time":1709929122103,"_source_registry_name":"default","_cnpm_publish_time":1709929122103},"2.0.2":{"name":"is-weakset","version":"2.0.2","description":"Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","main":"index.js","scripts":{"version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","lint":"eslint --ext=js,mjs .","tests-only":"nyc tape 'test/**/*.js'","tests:shims":"nyc tape --require=es5-shim --require=es6-shim 'test/**/*.js'","tests:corejs":"nyc tape --require=core-js 'test/**/*.js'","test":"npm run tests-only && npm run tests:shims && npm run tests:corejs","posttest":"aud --production"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakset.git"},"keywords":["map","weakmap","set","weakset","collection","is","robust"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/is-weakset/issues"},"homepage":"https://github.com/inspect-js/is-weakset#readme","devDependencies":{"@ljharb/eslint-config":"^20.0.0","aud":"^1.1.5","auto-changelog":"^2.3.0","core-js":"^2.6.12","es5-shim":"^4.6.2","es6-shim":"^0.35.6","eslint":"^8.4.1","for-each":"^0.3.3","nyc":"^10.3.2","object-inspect":"^1.11.1","safe-publish-latest":"^2.0.0","tape":"^5.3.2"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"dependencies":{"call-bind":"^1.0.2","get-intrinsic":"^1.1.1"},"gitHead":"68a69d548ade4e1d7112a11dfb79d1be7323f75a","_id":"is-weakset@2.0.2","_nodeVersion":"17.2.0","_npmVersion":"8.1.4","dist":{"shasum":"4569d67a747a1ce5a994dfd4ef6dcea76e7c0a1d","size":6001,"noattachment":false,"key":"/is-weakset/-/is-weakset-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakset/download/is-weakset-2.0.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-weakset_2.0.2_1639362356859_0.8806669371414737"},"_hasShrinkwrap":false,"publish_time":1639362357003,"_cnpm_publish_time":1639362357003},"2.0.1":{"name":"is-weakset","version":"2.0.1","description":"Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","main":"index.js","scripts":{"version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublish":"safe-publish-latest","pretest":"npm run lint","lint":"eslint .","tests-only":"node test","posttests-only":"node -e \"require('es5-shim'); require('es6-shim'); require('./test');\"","test":"npm run tests-only","posttest":"npx aud"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakset.git"},"keywords":["map","weakmap","set","weakset","collection","is","robust"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/is-weakset/issues"},"homepage":"https://github.com/inspect-js/is-weakset#readme","devDependencies":{"@ljharb/eslint-config":"^15.0.2","auto-changelog":"^1.16.2","es5-shim":"^4.5.13","es6-shim":"^0.35.5","eslint":"^6.7.2","for-each":"^0.3.3","object-inspect":"^1.7.0","safe-publish-latest":"^1.1.4","tape":"^4.12.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"ed2a5c1c3424911887a2ef8dea42bea43c7f90ed","_id":"is-weakset@2.0.1","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"shasum":"e9a0af88dbd751589f5e50d80f4c98b780884f83","size":4446,"noattachment":false,"key":"/is-weakset/-/is-weakset-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakset/download/is-weakset-2.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-weakset_2.0.1_1576647554177_0.3211947336392891"},"_hasShrinkwrap":false,"publish_time":1576647554311,"_cnpm_publish_time":1576647554311},"2.0.0":{"name":"is-weakset","version":"2.0.0","description":"Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.","main":"index.js","scripts":{"version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublish":"safe-publish-latest","pretest":"npm run lint","lint":"eslint .","tests-only":"node test","posttests-only":"node -e \"require('es5-shim'); require('es6-shim'); require('./test');\"","test":"npm run tests-only","posttest":"npx aud"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/is-weakset.git"},"keywords":["map","weakmap","set","weakset","collection","is","robust"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/is-weakset/issues"},"homepage":"https://github.com/inspect-js/is-weakset#readme","devDependencies":{"@ljharb/eslint-config":"^15.0.1","auto-changelog":"^1.16.2","es5-shim":"^4.5.13","es6-shim":"^0.35.5","eslint":"^6.6.0","for-each":"^0.3.3","object-inspect":"^1.7.0","safe-publish-latest":"^1.1.4","tape":"^4.11.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"15d0d42f37269bdbf25f34af0b4cedcc8990bcfc","_id":"is-weakset@2.0.0","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"shasum":"119577bcf75528e7d5b4c7ebaa4fdee9e2d3e5d7","size":3930,"noattachment":false,"key":"/is-weakset/-/is-weakset-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakset/download/is-weakset-2.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-weakset_2.0.0_1573590219293_0.4392444827645412"},"_hasShrinkwrap":false,"publish_time":1573590219397,"_cnpm_publish_time":1573590219397},"1.0.1":{"name":"is-weakset","version":"1.0.1","description":"Easily check if a givin object is an ES6 WeakSet","keywords":["set","es6","harmony","typeof","type check","weakset"],"license":"MIT","author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/arthurvr/is-weakset.git"},"scripts":{"test":"node test.js"},"devDependencies":{"ava":"^0.0.4"},"engines":{"node":">=0.12.0"},"gitHead":"2c0879d098cab47799a32feef0dd92c07027fb1c","bugs":{"url":"https://github.com/arthurvr/is-weakset/issues"},"homepage":"https://github.com/arthurvr/is-weakset#readme","_id":"is-weakset@1.0.1","_shasum":"79bf1d4656abd2404f3736c1aaae62d93a73bfdc","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"79bf1d4656abd2404f3736c1aaae62d93a73bfdc","size":1502,"noattachment":false,"key":"/is-weakset/-/is-weakset-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakset/download/is-weakset-1.0.1.tgz"},"directories":{},"publish_time":1433351086271,"_cnpm_publish_time":1433351086271,"_hasShrinkwrap":false},"1.0.0":{"name":"is-weakset","version":"1.0.0","description":"Easily check if a givin object is an ES6 WeakSet","keywords":["set","es6","harmony","typeof","type check","weakset"],"license":"MIT","author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be"},"files":["index.js"],"repository":{"type":"git","url":"https://github.com/arthurvr/is-weakset"},"scripts":{"test":"node test/test.js"},"devDependencies":{"ava":"^0.0.4"},"engines":{"node":">=0.12.0"},"gitHead":"c71bd3a75b29d600fb276b2a76d47667e5c3b159","bugs":{"url":"https://github.com/arthurvr/is-weakset/issues"},"homepage":"https://github.com/arthurvr/is-weakset","_id":"is-weakset@1.0.0","_shasum":"3fe684c08ec698c6492e588925ceff8665fd9fa1","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"maintainers":[{"name":"ljharb","email":""}],"dist":{"shasum":"3fe684c08ec698c6492e588925ceff8665fd9fa1","size":1462,"noattachment":false,"key":"/is-weakset/-/is-weakset-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-weakset/download/is-weakset-1.0.0.tgz"},"directories":{},"publish_time":1424261683897,"_cnpm_publish_time":1424261683897,"_hasShrinkwrap":false}},"readme":"# is-weakset <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nIs this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isWeakSet = require('is-weakset');\nassert(!isWeakSet(function () {}));\nassert(!isWeakSet(null));\nassert(!isWeakSet(function* () { yield 42; return Infinity; });\nassert(!isWeakSet(Symbol('foo')));\nassert(!isWeakSet(1n));\nassert(!isWeakSet(Object(1n)));\n\nassert(!isWeakSet(new Set()));\nassert(!isWeakSet(new WeakMap()));\nassert(!isWeakSet(new Map()));\n\nassert(isWeakSet(new WeakSet()));\n\nclass MyWeakSet extends WeakSet {}\nassert(isWeakSet(new MyWeakSet()));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/is-weakset\n[npm-version-svg]: https://versionbadg.es/inspect-js/is-weakset.svg\n[deps-svg]: https://david-dm.org/inspect-js/is-weakset.svg\n[deps-url]: https://david-dm.org/inspect-js/is-weakset\n[dev-deps-svg]: https://david-dm.org/inspect-js/is-weakset/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/is-weakset#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/is-weakset.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-weakset.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-weakset.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-weakset\n[codecov-image]: https://codecov.io/gh/inspect-js/is-weakset/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-weakset/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-weakset\n[actions-url]: https://github.com/inspect-js/is-weakset/actions\n","_attachments":{},"homepage":"https://github.com/inspect-js/is-weakset#readme","bugs":{"url":"https://github.com/inspect-js/is-weakset/issues"},"license":"MIT"}