Socket
Socket
Sign inDemoInstall

es-set-tostringtag

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-set-tostringtag - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

CHANGELOG.md

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

## [v2.0.2](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.1...v2.0.2) - 2023-10-20
### Commits
- [Refactor] use `hasown` instead of `has` [`0cc6c4e`](https://github.com/es-shims/es-set-tostringtag/commit/0cc6c4e61fd13e8f00b85424ae6e541ebf289e74)
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`70e447c`](https://github.com/es-shims/es-set-tostringtag/commit/70e447cf9f82b896ddf359fda0a0498c16cf3ed2)
- [Deps] update `get-intrinsic` [`826aab7`](https://github.com/es-shims/es-set-tostringtag/commit/826aab76180392871c8efa99acc0f0bbf775c64e)
## [v2.0.1](https://github.com/es-shims/es-set-tostringtag/compare/v2.0.0...v2.0.1) - 2023-01-05

@@ -10,0 +18,0 @@

4

index.js

@@ -8,3 +8,3 @@ 'use strict';

var hasToStringTag = require('has-tostringtag/shams')();
var has = require('has');
var hasOwn = require('hasown');

@@ -15,3 +15,3 @@ var toStringTag = hasToStringTag ? Symbol.toStringTag : null;

var overrideIfSet = arguments.length > 2 && arguments[2] && arguments[2].force;
if (toStringTag && (overrideIfSet || !has(object, toStringTag))) {
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
if ($defineProperty) {

@@ -18,0 +18,0 @@ $defineProperty(object, toStringTag, {

{
"name": "es-set-tostringtag",
"version": "2.0.1",
"version": "2.0.2",
"description": "A helper to optimistically set Symbol.toStringTag, when possible.",

@@ -35,4 +35,4 @@ "main": "index.js",

"devDependencies": {
"@ljharb/eslint-config": "^21.0.1",
"aud": "^2.0.2",
"@ljharb/eslint-config": "^21.1.0",
"aud": "^2.0.3",
"auto-changelog": "^2.4.0",

@@ -44,8 +44,8 @@ "eslint": "=8.8.0",

"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
"tape": "^5.7.2"
},
"dependencies": {
"get-intrinsic": "^1.1.3",
"has": "^1.0.3",
"has-tostringtag": "^1.0.0"
"get-intrinsic": "^1.2.2",
"has-tostringtag": "^1.0.0",
"hasown": "^2.0.0"
},

@@ -52,0 +52,0 @@ "engines": {

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