serialize-javascript
serialize-javascript copied to clipboard
Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
Bumps [nyc](https://github.com/istanbuljs/nyc) from 15.1.0 to 17.0.0. Release notes Sourced from nyc's releases. nyc: v17.0.0 17.0.0 (2024-04-19) ⚠ BREAKING CHANGES minimum Node version now 18 Bug Fixes deps: address security alerts...
Bumps [mocha](https://github.com/mochajs/mocha) from 10.4.0 to 10.5.2. Release notes Sourced from mocha's releases. v10.5.2 What's Changed fix: better tracking of seen objects in error serialization by @sam-super in mochajs/mocha#5032 New Contributors...
Instead of ```js {foo: new RegExp("a", "i")} ``` serialize to ```js {foo: /a/i} ```
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...
Bumps [chai](https://github.com/chaijs/chai) from 4.3.7 to 5.1.1. Release notes Sourced from chai's releases. v5.1.1 What's Changed Set up ESLint for JSDoc comments by @koddsson in chaijs/chai#1605 build(deps-dev): bump ip from 1.1.8...
# Steps to Reproduce: ```js const serializeJavaScript = require('serialize-javascript'); const input = { type: Number }; const output = serializeJavaScript(input); console.log(output); ``` ## Expected: `'{"type":Number}'` ## Actual: ``` Uncaught TypeError:...
```js { "isSupported": function({filepath}){const basename=path.basename(filepath);return basename===".env"||basename.startsWith(".env.")} } ```
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...