New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polywrap/core-js

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polywrap/core-js - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

1

build/types/WrapError.d.ts

@@ -64,2 +64,3 @@ import { CleanResolutionStep } from "../algorithms";

toString(): string;
private static sanitizeUnwrappedRustResult;
private static _parse;

@@ -66,0 +67,0 @@ private static stringify;

@@ -81,2 +81,3 @@ "use strict";

WrapError.parse = function (error) {
error = WrapError.sanitizeUnwrappedRustResult(error);
var delim = "\n\nAnother exception was encountered during execution:\n";

@@ -106,2 +107,10 @@ var errorStrings = error.split(delim);

};
// remove escape characters that may have been added by Rust
WrapError.sanitizeUnwrappedRustResult = function (error) {
if (error.startsWith('__wrap_abort: called `Result::unwrap()` on an `Err` value: "')) {
error = error.replace(/\\"/g, '"');
error = error.replace(/\\n/g, "\n");
}
return error;
};
// parse a single WrapError, where the 'prev' property is undefined

@@ -196,3 +205,3 @@ WrapError._parse = function (error) {

WrapError.re = new RegExp([
/^(?:[A-Za-z_: ]*; )?WrapError: (?<reason>(?:.|\r|\n)*)/.source,
/^(?:[A-Za-z_:()` ]*;? "?)?WrapError: (?<reason>(?:.|\r|\n)*)/.source,
// there is some padding added to the number of words expected in an error code

@@ -209,4 +218,5 @@ /(?:\r\n|\r|\n)code: (?<code>1?[0-9]{1,2}|2[0-4][0-9]|25[0-5]) (?:[A-Z]+ ?){1,5}/

.source,
/(?:(?:\r\n|\r|\n){2}This exception was caused by the following exception:(?:\r\n|\r|\n)(?<cause>(?:.|\r|\n)+))?$/
/(?:(?:\r\n|\r|\n){2}This exception was caused by the following exception:(?:\r\n|\r|\n)(?<cause>(?:.|\r|\n)+))?/
.source,
/"?$/.source,
].join(""));

@@ -213,0 +223,0 @@ return WrapError;

14

package.json
{
"name": "@polywrap/core-js",
"description": "Polywrap Javascript Core",
"version": "0.9.5",
"version": "0.9.6",
"license": "MIT",

@@ -22,7 +22,7 @@ "repository": {

"dependencies": {
"@polywrap/asyncify-js": "0.9.5",
"@polywrap/msgpack-js": "0.9.5",
"@polywrap/result": "0.9.5",
"@polywrap/tracing-js": "0.9.5",
"@polywrap/wrap-manifest-types-js": "0.9.5",
"@polywrap/asyncify-js": "0.9.6",
"@polywrap/msgpack-js": "0.9.6",
"@polywrap/result": "0.9.6",
"@polywrap/tracing-js": "0.9.6",
"@polywrap/wrap-manifest-types-js": "0.9.6",
"graphql": "15.5.0",

@@ -35,3 +35,3 @@ "graphql-tag": "2.10.4",

"devDependencies": {
"@polywrap/os-js": "0.9.5",
"@polywrap/os-js": "0.9.6",
"@types/jest": "26.0.8",

@@ -38,0 +38,0 @@ "@types/mustache": "4.0.1",

Sorry, the diff of this file is not supported yet

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