Comparing version 1.1.0 to 1.1.1
@@ -14,3 +14,3 @@ ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
} else { | ||
obj = details; | ||
obj = details || { description: 'server error' }; | ||
} | ||
@@ -17,0 +17,0 @@ |
@@ -45,3 +45,5 @@ var fs = require('fs'); | ||
uglify: { | ||
min: { | ||
options: { | ||
ascii: true | ||
}, min: { | ||
files: { | ||
@@ -48,0 +50,0 @@ 'build/auth0.min.js': ['build/auth0.js'] |
@@ -13,3 +13,3 @@ var json_parse = require('./json_parse'); | ||
} else { | ||
obj = details; | ||
obj = details || { description: 'server error' }; | ||
} | ||
@@ -16,0 +16,0 @@ |
{ | ||
"name": "auth0-js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Auth0 headless browser sdk", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -117,2 +117,15 @@ describe('Auth0 - User And Passwords', function () { | ||
it('should handle server errors', function (done) { | ||
auth0.signup({ | ||
connection: 'tests', | ||
username: 'pepo@example.com', | ||
password: '12345' | ||
}, function (err) { | ||
expect(err.status).to.equal(500); | ||
expect(err.message).to.exist; | ||
expect(err.details).to.exist; | ||
done(); | ||
}); | ||
}); | ||
it('should not render wsfed form after successfull signup if auto_login is false', function (done) { | ||
@@ -119,0 +132,0 @@ auth0._renderAndSubmitWSFedForm = function (htmlForm) { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
8
6
205212
22
4085