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

@fastly/js-compute

Package Overview
Dependencies
Maintainers
5
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastly/js-compute - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

7

CHANGELOG.md
# Changelog
## [1.5.1](https://github.com/fastly/js-compute-runtime/compare/v1.5.0...v1.5.1) (2023-03-10)
### Bug Fixes
* handle fallthrough of regex parser bugs ([#447](https://github.com/fastly/js-compute-runtime/issues/447)) ([8f38980](https://github.com/fastly/js-compute-runtime/commit/8f389805d6a88e476f0281df974cb971d7e78896))
## [1.5.0](https://github.com/fastly/js-compute-runtime/compare/v1.4.2...v1.5.0) (2023-03-10)

@@ -4,0 +11,0 @@

2

package.json
{
"name": "@fastly/js-compute",
"version": "1.5.0",
"version": "1.5.1",
"engines": {

@@ -5,0 +5,0 @@ "node": "16 - 19",

@@ -19,3 +19,10 @@ import Parser, { Query } from "tree-sitter";

// transpile unicode property escapes
const patternTranspiled = regexpuc(pattern, flags, { unicodePropertyEscapes: 'transform' });
let patternTranspiled;
try {
patternTranspiled = regexpuc(pattern, flags, { unicodePropertyEscapes: 'transform' });
} catch {
// swallow regex parse errors here to instead throw them at the engine level
// this then also avoids regex parser bugs being thrown unnecessarily
patternTranspiled = pattern;
}
regexLiterals.push({

@@ -22,0 +29,0 @@ patternStart: m.captures[0].node.startIndex,

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