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

php-parser

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

php-parser - npm Package Compare versions

Comparing version 3.1.0-beta.10 to 3.1.0-beta.11

2

dist/php-parser.min.js.LICENSE.txt

@@ -5,3 +5,3 @@ /*!

* Parse PHP code from JS and returns its AST
* Build: e9e61b2118c7b80cbd96 - 6/10/2022
* Build: dbd8745da2a7eecf6545 - 7/2/2022
* Copyright (C) 2021 Glayzzle (BSD-3-Clause)

@@ -8,0 +8,0 @@ * @authors https://github.com/glayzzle/php-parser/graphs/contributors

{
"name": "php-parser",
"version": "3.1.0-beta.10",
"version": "3.1.0-beta.11",
"description": "Parse PHP code from JS and returns its AST",

@@ -65,12 +65,12 @@ "main": "src/index.js",

"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/preset-env": "^7.18.2",
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"babel-loader": "^8.0.5",
"benchmark": "^2.1.4",
"coveralls": "^3.0.3",
"eslint": "^8.17.0",
"eslint": "^8.19.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"jest": "^28.1.1",
"jest": "^28.1.2",
"jest-runner-eslint": "^1.0.1",

@@ -80,8 +80,8 @@ "jsdoc": "^3.6.10",

"lodash.template": ">=4.5.0",
"prettier": "^2.6.2",
"prettier": "^2.7.1",
"tsd-jsdoc": "^2.5.0",
"webpack": "^5.73.0",
"webpack-cli": "^4.9.2",
"webpack-cli": "^4.10.0",
"yarpm": "^1.1.1"
}
}

@@ -38,3 +38,9 @@ /**

}
// @fixme check octal notation ? not usefull
} else if (ch === "o" || ch === "O") {
ch = this.input();
if (ch !== "_" && this.is_OCTAL()) {
return this.consume_ONUM();
} else {
this.unput(ch ? 2 : 1);
}
} else if (!this.is_NUM()) {

@@ -155,2 +161,13 @@ if (ch) this.unput(1);

},
// read an octal number
consume_ONUM: function () {
while (this.offset < this.size) {
const ch = this.input();
if (!this.is_OCTAL()) {
if (ch) this.unput(1);
break;
}
}
return this.tok.T_LNUMBER;
},
};

@@ -102,2 +102,12 @@ /**

},
// check if current char can be an octal number
is_OCTAL: function () {
const ch = this._input.charCodeAt(this.offset - 1);
// 0 - 7
if (ch > 47 && ch < 56) return true;
// _ (code 95)
if (ch === 95) return true;
// else
return false;
},
};

@@ -129,7 +129,10 @@ /**

(this.token === "?" ||
this.token === this.tok.T_ARRAY ||
this.token === this.tok.T_CALLABLE ||
this.token === this.tok.T_ARRAY ||
this.token === this.tok.T_NAMESPACE ||
this.token === this.tok.T_NAME_FULLY_QUALIFIED ||
this.token === this.tok.T_NAME_QUALIFIED ||
this.token === this.tok.T_NAME_RELATIVE ||
this.token === this.tok.T_NS_SEPARATOR ||
this.token === this.tok.T_STRING ||
this.token === this.tok.T_NAMESPACE)))
this.token === this.tok.T_STRING)))
) {

@@ -136,0 +139,0 @@ // reads a variable

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

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