Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sortobject

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sortobject - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

es2015/index.js

10

example.js

@@ -1,2 +0,2 @@

var sortObject = require('./');
var sortObject = require('./')
var fixture = {

@@ -25,5 +25,5 @@ "c": true,

]
};
var actual = sortObject(fixture);
console.log(JSON.stringify(actual,null,4)); /* {
}
var actual = sortObject(fixture)
console.log(JSON.stringify(actual,null,4)) /* {
"a": true,

@@ -51,2 +51,2 @@ "b": null,

]
} */
} */
# History
## v1.0.1 2016 May 2
- Converted from CoffeeScript to JavaScript
- Updated base files
## v1.0.1 2016 January 27

@@ -4,0 +8,0 @@ - Fixed Firefox compatibility issue

{
"title": "Sort Object",
"name": "sortobject",
"version": "1.0.1",
"version": "1.1.0",
"description": "Returns a copy of an object, sorted deeply by its keys, without mangling any arrays inside of it",

@@ -62,28 +62,59 @@ "homepage": "https://github.com/bevry/sortobject",

"engines": {
"node": ">=0.4"
"node": ">=0.12"
},
"browsers": true,
"dependencies": {},
"devDependencies": {
"coffee-script": "~1.6.2",
"joe": "~1.2.0",
"joe-reporter-console": "~1.2.1",
"chai": "~1.5.0",
"projectz": "^1.0.9"
},
"editions": [
{
"description": "Source + ESNext + Require",
"entry": "source/index.js",
"directory": "source",
"syntaxes": [
"javascript",
"esnext",
"require",
"const",
"let"
]
},
{
"description": "Babel Compiled + ES2015 + Require",
"entry": "es2015/index.js",
"directory": "es2015",
"syntaxes": [
"javascript",
"es2015",
"require"
]
}
],
"main": "index.js",
"browser": "es2015/lib/index.js",
"scripts": {
"clean": "node --harmony nakefile.js clean",
"setup": "node --harmony nakefile.js setup",
"compile": "node --harmony nakefile.js compile",
"watch": "node --harmony nakefile.js watch",
"verify": "node --harmony nakefile.js verify",
"meta": "node --harmony nakefile.js meta",
"prepare": "node --harmony nakefile.js prepare",
"release": "node --harmony nakefile.js release",
"test": "node --harmony ./out/test/index.js"
"setup": "npm install",
"clean": "rm -Rf ./docs ./es2015",
"compile": "npm run compile:es2015",
"compile:es2015": "babel ./source --out-dir ./es2015 --presets es2015",
"meta": "npm run meta:projectz",
"meta:projectz": "projectz compile",
"prepare": "npm run compile && npm run test && npm run meta",
"release": "npm run prepare && npm run release:publish && npm run release:tag && npm run release:push",
"release:publish": "npm publish",
"release:tag": "git tag v$npm_package_version -a",
"release:push": "git push origin master && git push origin --tags",
"pretest": "npm run test:eslint",
"test:eslint": "eslint ./source",
"test": "node --harmony -e \"require('editions').requirePackage(process.cwd(), require, 'test.js')\""
},
"main": "./out/lib/index.js",
"nakeConfiguration": {
"COFFEE_SRC_PATH": "src"
"dependencies": {
"editions": "^1.1.1"
},
"devDependencies": {
"assert-helpers": "^4.1.0",
"babel-cli": "^6.7.7",
"babel-preset-es2015": "^6.6.0",
"eslint": "^2.9.0",
"eslint-plugin-babel": "^3.2.0",
"joe": "^1.6.0",
"joe-reporter-console": "^1.2.1",
"projectz": "^1.1.4"
}
}

@@ -40,13 +40,23 @@ <!-- TITLE/ -->

<li>Install: <code>npm install --save sortobject</code></li>
<li>Use: <code>require('sortobject')</code></li></ul>
<li>Module: <code>require('sortobject')</code></li></ul>
<a href="http://browserify.org" title="Browserify lets you require('modules') in the browser by bundling up all of your dependencies"><h3>Browserify</h3></a><ul>
<li>Install: <code>npm install --save sortobject</code></li>
<li>Use: <code>require('sortobject')</code></li>
<li>CDN URL: <code>//wzrd.in/bundle/sortobject@1.0.1</code></li></ul>
<li>Module: <code>require('sortobject')</code></li>
<li>CDN URL: <code>//wzrd.in/bundle/sortobject@1.1.0</code></li></ul>
<a href="http://enderjs.com" title="Ender is a full featured package manager for your browser"><h3>Ender</h3></a><ul>
<li>Install: <code>ender add sortobject</code></li>
<li>Use: <code>require('sortobject')</code></li></ul>
<li>Module: <code>require('sortobject')</code></li></ul>
<h3><a href="https://github.com/bevry/editions" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3>
<p>This package is published with the following editions:</p>
<ul><li><code>sortobject</code> aliases <code>sortobject/index.js</code> which uses <a href="https://github.com/bevry/editions" title="Editions are the best way to produce and consume packages you care about.">Editions</a> to automatically select the correct edition for the consumers environment</li>
<li><code>sortobject/source/index.js</code> is Source + <a href="https://babeljs.io/docs/learn-es2015/" title="ECMAScript Next">ESNext</a> + <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a></li>
<li><code>sortobject/es2015/index.js</code> is <a href="https://babeljs.io" title="The compiler for writing next generation JavaScript">Babel</a> Compiled + <a href="http://babeljs.io/docs/plugins/preset-es2015/" title="ECMAScript 2015">ES2015</a> + <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a></li></ul>
<p>Older environments may need <a href="https://babeljs.io/docs/usage/polyfill/" title="A polyfill that emulates missing ECMAScript environment features">Babel's Polyfill</a> or something similar.</p>
<!-- /INSTALL -->

@@ -58,3 +68,3 @@

``` javascript
var sortObject = require('sortobject');
var sortObject = require('sortobject')
var fixture = {

@@ -83,5 +93,5 @@ "c": true,

]
};
var actual = sortObject(fixture);
console.log(JSON.stringify(actual,null,4)); /* {
}
var actual = sortObject(fixture)
console.log(JSON.stringify(actual,null,4)) /* {
"a": true,

@@ -88,0 +98,0 @@ "b": null,

Sorry, the diff of this file is not supported yet

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