Socket
Socket
Sign inDemoInstall

string

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

1.8.1 / 2014-04-23
------------------
* bugfix: `toBoolean()`/`toBool()` treat `1` as `true`. (arowla / #78)
1.8.0 / 2014-01-13

@@ -2,0 +6,0 @@ ------------------

2

lib/string.js

@@ -389,3 +389,3 @@ /*

var s = this.s.toLowerCase();
return s === 'true' || s === 'yes' || s === 'on';
return s === 'true' || s === 'yes' || s === 'on' || s === '1';
} else

@@ -392,0 +392,0 @@ return this.orig === true || this.orig === 1;

{
"name": "string",
"version": "1.8.0",
"version": "1.8.1",
"description": "string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.",

@@ -5,0 +5,0 @@ "homepage": "http://stringjs.com",

@@ -963,2 +963,6 @@ [string.js](http://stringjs.com)

Install mocha globally:
$ npm install -g mocha
Then navigate to the installed directory:

@@ -1011,2 +1015,3 @@

- [1] [Nathan Friedly](https://github.com/nfriedly)
- [1] (Alison Rowland)(https://github.com/arowla)
- `<your name here>`

@@ -1013,0 +1018,0 @@

@@ -567,2 +567,4 @@ (function() {

F (S(0).toBoolean())
T (S('1').toBoolean())
F (S('0').toBoolean())
})

@@ -569,0 +571,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