Socket
Socket
Sign inDemoInstall

hastscript

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hastscript - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

7

history.md

@@ -5,2 +5,9 @@ <!--remark setext-->

2.0.0 / 2016-04-12
==================
* Remove `0` as a default for invalid numeric values ([`663545c`](https://github.com/wooorm/hastscript/commit/663545c))
* Add `menu` to list of button-type exceptions ([`eb92e9f`](https://github.com/wooorm/hastscript/commit/eb92e9f))
* Remove casting of invalid values ([`468c3c3`](https://github.com/wooorm/hastscript/commit/468c3c3))
1.0.1 / 2016-02-25

@@ -7,0 +14,0 @@ ==================

15

index.js

@@ -50,7 +50,7 @@ /**

if (info.boolean) {
result = true;
} else if (info.numeric || info.positiveNumeric) {
result = Number(result);
} else if (info.overloadedBoolean) {
if (info.numeric || info.positiveNumeric) {
if (!isNaN(result) && result !== '') {
result = Number(result);
}
} else if (info.boolean || info.overloadedBoolean) {
/*

@@ -201,3 +201,6 @@ * Accept `boolean` and `string`.

if (tagName === 'button') {
return type !== 'submit' && type !== 'reset' && type !== 'button';
return type !== 'menu' &&
type !== 'submit' &&
type !== 'reset' &&
type !== 'button';
}

@@ -204,0 +207,0 @@

6

package.json
{
"name": "hastscript",
"version": "1.0.1",
"version": "2.0.0",
"description": "Hyperscript compatible DSL for creating virtual HAST trees",

@@ -32,4 +32,4 @@ "license": "MIT",

"css-declarations": "^1.0.0",
"hast-util-parse-selector": "^1.0.0",
"property-information": "^2.0.0",
"hast-util-parse-selector": "^2.0.0",
"property-information": "^3.0.0",
"space-separated-tokens": "^1.0.0"

@@ -36,0 +36,0 @@ },

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