php-serialize
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,5 @@ | ||
## 2.0.1 | ||
- Fix validation being too strict for pairs | ||
## 2.0.0 | ||
@@ -2,0 +6,0 @@ |
@@ -40,5 +40,10 @@ 'use strict'; | ||
}, { | ||
key: 'advance', | ||
value: function advance(index) { | ||
this.index += index; | ||
} | ||
}, { | ||
key: 'readAhead', | ||
value: function readAhead(index) { | ||
var contents = this.peakAhead(index); | ||
var contents = this.peekAhead(index); | ||
this.index += index; | ||
@@ -57,4 +62,4 @@ return contents; | ||
}, { | ||
key: 'peakAhead', | ||
value: function peakAhead(index) { | ||
key: 'peekAhead', | ||
value: function peekAhead(index) { | ||
return this.contents.toString('utf8', this.index, this.index + index); | ||
@@ -61,0 +66,0 @@ } |
@@ -7,4 +7,2 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _assert = require('assert'); | ||
@@ -40,4 +38,4 @@ | ||
var value = unserializeItem(parser, scope, options); | ||
if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) !== 'object' || value === null) { | ||
parser.seekExpected(';'); | ||
if (parser.peekAhead(1) === ';') { | ||
parser.advance(1); | ||
} | ||
@@ -44,0 +42,0 @@ pairs.push({ key: key, value: value }); |
{ | ||
"name": "php-serialize", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "PHP serialize/unserialize in Javascript", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"eslint-config-steelbrain": "^5.0.2", | ||
"flow-bin": "^0.78.0", | ||
"flow-bin": "^0.79.0", | ||
"sb-babel-cli": "^0.1.2" | ||
@@ -32,0 +32,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
311
0
17732