json.sortify
Advanced tools
Comparing version
@@ -23,3 +23,3 @@ 'use strict'; | ||
else | ||
JSON.sortify = definition(); | ||
JSON.sortify = factory(); | ||
})(this, function() { | ||
@@ -31,3 +31,5 @@ ${factory.replace(/\bmodule\s*\.\s*exports\s*=/, 'return ')} | ||
try { fs.mkdirSync(`${baseDir}/dist`, parseInt('0775', 8)); } catch (e) {} | ||
try { | ||
fs.mkdirSync(`${baseDir}/dist`, parseInt('0775', 8)); | ||
} catch (ignore) {} | ||
fs.writeFileSync(`${baseDir}/dist/JSON.sortify.js`, transformed.code); |
@@ -1,2 +0,2 @@ | ||
'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol?"symbol":typeof obj;};(function(name,factory){if(typeof module!='undefined')module.exports=factory();else if(typeof define=='function'&&_typeof(define.amd)=='object')define('json.sortify',factory);else JSON.sortify=definition();})(undefined,function(){ /*! | ||
'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol?"symbol":typeof obj;};(function(name,factory){if(typeof module!='undefined')module.exports=factory();else if(typeof define=='function'&&_typeof(define.amd)=='object')define('json.sortify',factory);else JSON.sortify=factory();})(undefined,function(){ /*! | ||
* Copyright 2015-2016 Thomas Rosenau | ||
@@ -3,0 +3,0 @@ * |
{ | ||
"name": "json.sortify", | ||
"description": "A deterministic version of JSON.stringify that sorts object keys alphabetically.", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"engines": { | ||
@@ -6,0 +6,0 @@ "node": ">=0.10.0" |
@@ -40,3 +40,3 @@ JSON.sortify | ||
Download [dist/JSON.sortify.js](JSON.sortify.js) and save it to your server. | ||
Download [JSON.sortify.js](dist/JSON.sortify.js) and save it to your server. | ||
@@ -50,3 +50,3 @@ ```html | ||
```html | ||
<script src="JSON.sortify"></script> | ||
<script src="JSON.sortify.js"></script> | ||
<script>JSON.stringify = JSON.sortify</script> | ||
@@ -60,3 +60,3 @@ ``` | ||
```JavaScript | ||
JSON.stringify = require('json.sortify'); | ||
require(['json.sortify'], function (jsonSortify) { … }); | ||
``` | ||
@@ -63,0 +63,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
37297
37.13%12
50%274
0.74%0
-100%