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

hydro-js

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydro-js - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

4

CHANGELOG.md
# Changelog
## 1.5.2- 2021-12-23
- Fix bug where attributes where not copied from (html|head|body) element
## 1.5.1- 2021-12-23

@@ -4,0 +8,0 @@

8

dist/library.js

@@ -223,2 +223,6 @@ // Safari Polyfills

replacement.append(...nextNode.childNodes);
/* c8 ignore next 3 */
for (const key of nextNode.getAttributeNames()) {
replacement.setAttribute(key, nextNode.getAttribute(key));
}
nextNode.replaceWith(replacement);

@@ -811,4 +815,4 @@ }

function setter(val) {
const keys = // @ts-ignore
(this && Reflect.has(this, reactiveSymbol) ? this : chainKeysProxy)[keysSymbol.description];
const keys = ( // @ts-ignore
this && Reflect.has(this, reactiveSymbol) ? this : chainKeysProxy)[keysSymbol.description];
const [resolvedValue, resolvedObj] = resolveObject(keys);

@@ -815,0 +819,0 @@ const lastProp = keys[keys.length - 1];

{
"name": "hydro-js",
"version": "1.5.1",
"version": "1.5.2",
"description": "A lightweight reactive library",

@@ -5,0 +5,0 @@ "type": "module",

@@ -335,8 +335,12 @@ declare global {

let nextNode;
while ((nextNode = root.nextNode())) {
const tag = (nextNode as Element).localName.replace(Placeholder.dummy, "");
while ((nextNode = root.nextNode() as Element)) {
const tag = nextNode.localName.replace(Placeholder.dummy, "");
const replacement = document.createElement(tag);
replacement.append(...(nextNode as Element).childNodes);
(nextNode as Element).replaceWith(replacement);
replacement.append(...nextNode.childNodes);
/* c8 ignore next 3 */
for (const key of nextNode.getAttributeNames()) {
replacement.setAttribute(key, nextNode.getAttribute(key)!);
}
nextNode.replaceWith(replacement);
}

@@ -1052,6 +1056,5 @@

function setter<U>(val: U) {
const keys = // @ts-ignore
(this && Reflect.has(this, reactiveSymbol) ? this : chainKeysProxy)[
keysSymbol.description!
];
const keys = ( // @ts-ignore
this && Reflect.has(this, reactiveSymbol) ? this : chainKeysProxy
)[keysSymbol.description!];
const [resolvedValue, resolvedObj] = resolveObject(keys);

@@ -1058,0 +1061,0 @@ const lastProp = keys[keys.length - 1];

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