Socket
Socket
Sign inDemoInstall

php-serialize

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

php-serialize - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

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

## 2.0.1
- Fix validation being too strict for pairs
## 2.0.0

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

11

lib/parser.js

@@ -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 @@ },

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