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

@rollup/plugin-json

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-json - npm Package Compare versions

Comparing version 6.0.1 to 6.1.0

./dist/cjs/index.js

1

dist/cjs/index.js

@@ -27,2 +27,3 @@ 'use strict';

namedExports: options.namedExports,
includeArbitraryNames: options.includeArbitraryNames,
indent: indent

@@ -29,0 +30,0 @@ }),

@@ -23,2 +23,3 @@ import { createFilter, dataToEsm } from '@rollup/pluginutils';

namedExports: options.namedExports,
includeArbitraryNames: options.includeArbitraryNames,
indent: indent

@@ -25,0 +26,0 @@ }),

33

package.json
{
"name": "@rollup/plugin-json",
"version": "6.0.1",
"version": "6.1.0",
"publishConfig": {

@@ -26,16 +26,2 @@ "access": "public"

},
"scripts": {
"build": "rollup -c",
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
"ci:lint": "pnpm build && pnpm lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm test -- --verbose && pnpm test:ts",
"prebuild": "del-cli dist",
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
"prerelease": "pnpm build",
"pretest": "pnpm build",
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name",
"test": "ava",
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
},
"files": [

@@ -65,3 +51,3 @@ "dist",

"dependencies": {
"@rollup/pluginutils": "^5.0.1"
"@rollup/pluginutils": "^5.1.0"
},

@@ -83,3 +69,16 @@ "devDependencies": {

]
},
"scripts": {
"build": "rollup -c",
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
"ci:lint": "pnpm build && pnpm lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm test -- --verbose && pnpm test:ts",
"prebuild": "del-cli dist",
"prerelease": "pnpm build",
"pretest": "pnpm build",
"release": "pnpm --workspace-root package:release $(pwd)",
"test": "ava",
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
}
}
}

@@ -78,2 +78,9 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-json

### `includeArbitraryNames`
Type: `Boolean`<br>
Default: `false`
If `true` and `namedExports` is `true`, generates a named export for not a valid identifier properties of the JSON object by leveraging the ["Arbitrary Module Namespace Identifier Names" feature](https://github.com/tc39/ecma262/pull/2154).
### `indent`

@@ -80,0 +87,0 @@

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