New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json.sortify

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json.sortify - npm Package Compare versions

Comparing version

to
2.0.1

.codeclimate.yml

6

build/build.js

@@ -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 @@