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.13 to 2.0.14

13

index.js

@@ -638,9 +638,12 @@ (function (ntils) {

ntils.parseDom = function (str) {
this._PARSER_DOM_DIV = this._PARSER_DOM_DIV || document.createElement('dev');
this._PARSER_DOM_DIV.innerHTML = str;
var domNodes = this.toArray(this._PARSER_DOM_DIV.childNodes);
this._PARSER_DOM_DIV.innerHTML = '';
return domNodes;
this._PDD_ = this._PDD_ || document.createElement('div');
this._PDD_.innerHTML = ntils.trim(str);
var firstNode = this._PDD_.childNodes[0];
//先 clone 一份再通过 innerHTML 清空
//否则 IE9 下,清空时会导出返回的 DOM 没有子结点
if (firstNode) firstNode = firstNode.cloneNode(true);
this._PDD_.innerHTML = '';
return firstNode;
};
})((typeof exports === 'undefined') ? (window.ntils = {}) : exports);
{
"name": "ntils",
"version": "2.0.13",
"version": "2.0.14",
"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