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

authentication4js

Package Overview
Dependencies
Maintainers
1
Versions
890
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authentication4js - npm Package Compare versions

Comparing version 2.0.34 to 2.0.35

.babelrc

6

index.js

@@ -1,5 +0,1 @@

"use strict"
import {Authentication} from "./src/Authentication.js";
export {Authentication as Authentication};
export { Authentication } from './src/Authentication'
{
"name": "authentication4js",
"version": "2.0.34",
"version": "2.0.35",
"description": "Wix Restaurants Authentication Client",
"main": "dist/index.js",
"scripts": {
"test": "mocha --compilers js:babel/register",
"prepublish": "npm test && grunt",
"test": "mocha --compilers js:babel-register",
"prepublish": "npm test && webpack",
"build": ":",

@@ -28,20 +28,18 @@ "release": "wnpm-release -- --no-shrinkwrap"

"devDependencies": {
"babel": "^5.8.21",
"babel-core": "^5.8.22",
"babel-loader": "^5.3.2",
"babel-runtime": "^5.8.29",
"chai": "^2.2.0",
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-webpack": "^1.0.11",
"jsx-loader": "^0.13.2",
"lodash": "^3.9.3",
"mocha": "^2.2.1",
"@wix/wnpm-ci": "*",
"babel": "^6.5.2",
"babel-core": "^6.7.4",
"babel-loader": "^6.2.4",
"babel-plugin-transform-strict-mode": "^6.6.5",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.7.2",
"chai": "^3.5.0",
"lodash": "^3.10.0",
"mocha": "^2.4.5",
"webpack": "^1.12.0",
"webpack-dev-server": "^1.10.1",
"xhr2": "^0.1.3",
"q": "^1.4.1",
"@wix/wnpm-ci": "*"
"xhr2": "^0.1.3"
},
"dependencies": {},
"dependencies": {
"q": "^1.4.1"
},
"directories": {

@@ -48,0 +46,0 @@ "test": "test"

@@ -1,6 +0,4 @@

'use strict'
import {CommonProtocolClient} from './CommonProtocolClient'
export class Authentication {
class Authentication {
constructor({XMLHttpRequest, endpointUrl = 'https://auth.openrest.com/v1.0', timeout = 0}) {

@@ -22,1 +20,3 @@ this._client = new CommonProtocolClient({XMLHttpRequest, endpointUrl, timeout})

}
export { Authentication }

@@ -1,6 +0,4 @@

'use strict'
import Q from 'q'
export class CommonProtocolClient {
class CommonProtocolClient {
constructor({XMLHttpRequest, endpointUrl, timeout = 0}) {

@@ -13,3 +11,3 @@ this._XMLHttpRequest = XMLHttpRequest

const deferred = Q.defer()
const xhr = new this._XMLHttpRequest()

@@ -43,3 +41,3 @@ xhr.ontimeout = () => {

}
xhr.open('POST', this._endpointUrl, true)

@@ -49,5 +47,7 @@ xhr.timeout = this._timeout

xhr.send(JSON.stringify(request))
return deferred.promise
}
}
export { CommonProtocolClient }

@@ -1,3 +0,1 @@

'use strict'
import {Authentication} from '../src/Authentication'

@@ -4,0 +2,0 @@ import {AuthenticationDriver} from './AuthenticationDriver'

@@ -1,3 +0,1 @@

'use strict'
import {CommonProtocolDriver} from './CommonProtocolDriver'

@@ -4,0 +2,0 @@

@@ -1,3 +0,1 @@

'use strict'
import http from 'http'

@@ -36,3 +34,3 @@ import _ from 'lodash'

})
if (rule) {

@@ -47,4 +45,4 @@ _.delay(() => {

}
})
})
}
}

Sorry, the diff of this file is too big to display

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