serialize-javascript icon indicating copy to clipboard operation
serialize-javascript copied to clipboard

Serialize JavaScript to a superset of JSON that includes regular expressions and functions.

Results 46 serialize-javascript issues
Sort by recently updated
recently updated
newest added

source code : var IS_PURE_FUNCTION = /function.*?\(/; var IS_ARROW_FUNCTION = /.*?=>.*?/; // pure functions, example: {key: function() {}} if(IS_PURE_FUNCTION.test(serializedFn)) { return serializedFn; } // arrow functions, example: arg1 => arg1+5...

v6.0.0 introduced URL support, this PR updates the readme to document that change. I confirm that this contribution is made under the terms of the license found in the root...

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary...

I want to use serialize-javascript in vite project. There are two problem,At first buffer is undefined,I install buffer,and then there is an error at randombytes,the error code is here: ```js...

When I do: ``` js import serializeJavascript from 'serialize-javascript'; const serialized = serializeJavascript({ error: new Error('message') }); console.log(serialized); ``` I'm receiving: ``` js "{\"error\":{}}" ``` Is it intentional or is...

**Packages** - react-native: 0.63.2 - serialize-javascript: 3.1.0 and higher (3.1.0 - 5.1.0) **Use** ``` import serialize from 'serialize-javascript' ... const var1 = serialize(value) ``` **Error** The application crashes on startup...

https://runkit.com/leobastiani/javascript-serialize-bug-variable-function-destructuring Try the following code: ```javascript const serialize = require("javascript-serialize"); // version 1.6.1 const obj = { someKey() { const someVariable = ({ someParam }) => {}; }, }; serialize(obj);...

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary...

Hello, I'm using serialize-javascript in React-Native instead of JSON.stringify function. The version 3.1.0 is not working in React-Native when the debugger is off or in the release apk (because there...