Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@netflix/x-element

Package Overview
Dependencies
Maintainers
10
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netflix/x-element - npm Package Compare versions

Comparing version 1.0.0-rc.56 to 1.0.0-rc.57

8

package.json

@@ -5,3 +5,3 @@ {

"description": "Custom Element base class.",
"version": "1.0.0-rc.56",
"version": "1.0.0-rc.57",
"license": "SEE LICENSE IN LICENSE",

@@ -30,7 +30,7 @@ "repository": "https://github.com/Netflix/x-element",

"devDependencies": {
"eslint": "^8.35.0",
"eslint": "^8.47.0",
"http-server": "^14.1.1",
"puppeteer": "^19.7.5",
"tap-parser": "^12.0.1"
"puppeteer": "^21.0.3",
"tap-parser": "^13.0.1"
}
}

@@ -253,2 +253,15 @@ import XElement from '../x-element.js';

it('numeric properties deserialize "" (empty) to "NaN"', () => {
const el = document.createElement('test-element');
el.setAttribute('numeric-property', '0');
document.body.append(el);
assert(el.numericProperty === 0, '"0" was coerced to 0');
el.setAttribute('numeric-property', '');
assert(Number.isNaN(el.numericProperty), '"" was coerced to NaN');
el.setAttribute('numeric-property', ' ');
assert(Number.isNaN(el.numericProperty), '" " was coerced to NaN');
el.setAttribute('numeric-property', ' ');
assert(Number.isNaN(el.numericProperty), '" " was coerced to NaN');
});
it('cannot set to known properties', () => {

@@ -255,0 +268,0 @@ class BadTestElement extends XElement {

Sorry, the diff of this file is too big to display

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