New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ntils

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ntils - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

16

index.js

@@ -160,4 +160,3 @@ (function (ntils) {

return obj instanceof Element;
}
else {
} else {
return (obj.tagName && obj.nodeType && obj.nodeName && obj.attributes && obj.ownerDocument);

@@ -464,2 +463,4 @@ }

* 设置 proto
* 在不支持 setPrototypeOf 也不支持 __proto__ 的浏览器
* 中,会采用 copy 方式
*/

@@ -470,3 +471,3 @@ ntils.setPrototypeOf = function (obj, proto) {

} else {
if (!('__proto' in obj)) this.copy(proto, obj);
if (!('__proto__' in obj)) this.copy(proto, obj);
obj.__proto__ = proto;

@@ -477,2 +478,11 @@ }

/**
* 获取 proto
*/
ntils.getPrototypeOf = function (obj) {
if (obj.__proto__) return obj.__proto__;
if (Object.getPrototypeOf) return Object.getPrototypeOf(obj);
if (obj.constructor) return obj.constructor.prototype;
};
/**
* 是否深度相等

@@ -479,0 +489,0 @@ */

2

package.json
{
"name": "ntils",
"version": "2.0.8",
"version": "2.0.9",
"description": "一个 Node & Browser 工具函数集",

@@ -5,0 +5,0 @@ "main": "index.js",

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