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 4.1.0 to 5.0.0

dist/cjs/index.js

57

package.json
{
"name": "@rollup/plugin-json",
"version": "4.1.0",
"version": "5.0.0",
"publishConfig": {

@@ -9,22 +9,30 @@ "access": "public"

"license": "MIT",
"repository": "rollup/plugins",
"repository": {
"url": "rollup/plugins",
"directory": "packages/json"
},
"author": "rollup",
"homepage": "https://github.com/rollup/plugins/tree/master/packages/json#readme",
"bugs": "https://github.com/rollup/plugins/issues",
"main": "dist/index.js",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
},
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"build": "rollup -c",
"ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
"ci:lint": "pnpm run build && pnpm run lint",
"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 run test -- --verbose && pnpm run test:ts",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:json && pnpm run lint:package",
"lint:docs": "prettier --single-quote --write README.md",
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
"lint:json": "prettier --write \"test/fixtures/!(garbage)/*.json\"",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"ci:test": "pnpm test -- --verbose && pnpm test:ts",
"prebuild": "del-cli dist",
"prepare": "pnpm run build",
"prepublishOnly": "pnpm run lint && pnpm run test",
"pretest": "pnpm run build",
"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",

@@ -35,2 +43,3 @@ "test:ts": "tsc types/index.d.ts test/types.ts --noEmit"

"dist",
"!dist/**/*.map",
"types",

@@ -49,13 +58,21 @@ "README.md",

"peerDependencies": {
"rollup": "^1.20.0 || ^2.0.0"
"rollup": "^1.20.0||^2.0.0||^3.0.0"
},
"peerDependenciesMeta": {
"rollup": {
"optional": true
}
},
"dependencies": {
"@rollup/pluginutils": "^3.0.8"
"@rollup/pluginutils": "^4.2.1"
},
"devDependencies": {
"@rollup/plugin-buble": "^0.21.0",
"@rollup/plugin-node-resolve": "^7.0.0",
"source-map-support": "^0.5.16"
"@rollup/plugin-node-resolve": "^14.1.0",
"rollup": "^3.0.0-7",
"source-map-support": "^0.5.21"
},
"types": "./types/index.d.ts",
"ava": {
"workerThreads": false,
"files": [

@@ -67,5 +84,3 @@ "!**/fixtures/**",

]
},
"module": "dist/index.es.js",
"types": "types/index.d.ts"
}
}

@@ -16,3 +16,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-json

This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v1.20.0+.

@@ -50,3 +50,5 @@ ## Install

// src/index.js
import pkg from './package.json';
import { readFileSync } from 'fs';
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'));
console.log(`running version ${pkg.version}`);

@@ -53,0 +55,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