@rollup/plugin-json
Advanced tools
Comparing version 5.0.2 to 6.0.0
@@ -33,4 +33,3 @@ 'use strict'; | ||
var message = 'Could not parse JSON file'; | ||
var position = parseInt(/[\d]/.exec(err.message)[0], 10); | ||
this.warn({ message: message, id: id, position: position }); | ||
this.error({ message: message, id: id, cause: err }); | ||
return null; | ||
@@ -37,0 +36,0 @@ } |
@@ -29,4 +29,3 @@ import { createFilter, dataToEsm } from '@rollup/pluginutils'; | ||
var message = 'Could not parse JSON file'; | ||
var position = parseInt(/[\d]/.exec(err.message)[0], 10); | ||
this.warn({ message: message, id: id, position: position }); | ||
this.error({ message: message, id: id, cause: err }); | ||
return null; | ||
@@ -33,0 +32,0 @@ } |
{ | ||
"name": "@rollup/plugin-json", | ||
"version": "5.0.2", | ||
"version": "6.0.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -1,3 +0,3 @@ | ||
import { FilterPattern } from '@rollup/pluginutils'; | ||
import { Plugin } from 'rollup'; | ||
import type { FilterPattern } from '@rollup/pluginutils'; | ||
import type { Plugin } from 'rollup'; | ||
@@ -4,0 +4,0 @@ export interface RollupJsonOptions { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7943
104