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

rijs.pages

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rijs.pages - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

index.js

17

package.json
{
"name": "rijs.pages",
"version": "1.1.0",
"main": "dist",
"version": "1.2.0",
"main": "index",
"browser": "./node_modules/utilise/identity.js",

@@ -12,10 +12,6 @@ "author": "Pedram Emrouznejad (https://github.com/pemrouz)",

"scripts": {
"ignore": "find ./dist -type f -exec sed -i \"s/function _interopRequire/\\/* istanbul ignore next *\\/\\nfunction _interopRequire/g\" {} ;",
"babel": "babel src -d dist",
"clean": "rm -rf dist && mkdir dist",
"build": "npm run clean && npm run babel && npm run ignore",
"test": "istanbul test ./node_modules/mocha/bin/_mocha --report html -- -R spec",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && rm -rf ./coverage",
"cov": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec",
"version": "npm run build && git add -A",
"version": "git add -A",
"postversion": "git push && git push --tags"

@@ -25,7 +21,3 @@ },

"devDependencies": {
"babel-cli": "*",
"babel-preset-es2015": "*",
"browserify": "*",
"chai": "*",
"popper": "*",
"coveralls": "*",

@@ -35,3 +27,2 @@ "istanbul": "*",

"mocha-lcov-reporter": "*",
"uglify-js": "*",
"rijs": "*",

@@ -42,4 +33,6 @@ "supertest": "^1.0.1"

"compression": "^1.6.2",
"express": "^4.16.2",
"serve-static": "^1.13.1",
"utilise": "*"
}
}

@@ -5,3 +5,3 @@ var expect = require('chai').expect

, server = require('http').createServer(app)
, pages = require('./').default({}, { server, dir: __dirname + '/src' })
, pages = require('./')({}, { server, dir: __dirname })

@@ -11,7 +11,7 @@ describe('Serve Pages', function() {

it('should pass over serverless node', function(){
expect(require('./').default({})).to.be.eql({})
expect(require('./')({})).to.be.eql({})
})
it('should gracefully proceed if no server/dir', function(){
expect(require('./').default({}, {})).to.be.eql({})
expect(require('./')({}, {})).to.be.eql({})
})

@@ -18,0 +18,0 @@

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