🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

systemjs-plugin-json

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-plugin-json - npm Package Compare versions

Comparing version

to
0.2.2

6

json.js

@@ -7,6 +7,6 @@ /*

translate: function(load) {
if (this.builder && this.transpiler) {
var json = JSON.parse(load.source);
if (this.builder && this.transpiler && !Array.isArray(json)) {
load.metadata.format = 'esm';
var json = JSON.parse(load.source);
var namedExports = Object.keys(json);

@@ -42,3 +42,3 @@

load.metadata.format = 'cjs';
return 'module.exports = ' + JSON.stringify(JSON.parse(load.source));
return 'module.exports = ' + JSON.stringify(json);
}

@@ -45,0 +45,0 @@ },

{
"name": "systemjs-plugin-json",
"version": "0.2.1",
"version": "0.2.2",
"main": "json",

@@ -5,0 +5,0 @@ "repository": {