Socket
Socket
Sign inDemoInstall

angular-lock

Package Overview
Dependencies
52
Maintainers
35
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.3 to 3.0.4

40

dist/angular-lock.js
(function() {
"use strict";
angular.module("auth0.lock", []).provider("lock", lock);
'use strict';
angular.module('auth0.lock', []).provider('lock', lock);
function lock() {
if (typeof Auth0Lock !== "function") {
throw new Error("Auth0Lock must be loaded.");
if (typeof Auth0Lock !== 'function') {
throw new Error('Auth0Lock must be loaded.');
}

@@ -20,3 +20,3 @@

if (!config) {
throw new Error("clientID and domain must be provided to lock");
throw new Error('clientID and domain must be provided to lock');
}

@@ -27,4 +27,4 @@ this.clientID = config.clientID;

this.options._telemetryInfo = {
name: "angular-lock",
version: "3.0.3"
name: 'angular-lock',
version: '3.0.4'
};

@@ -34,7 +34,7 @@ };

this.$get = [
"$rootScope",
"$location",
'$rootScope',
'$location',
function($rootScope, $location) {
var Lock = new Auth0Lock(this.clientID, this.domain, this.options);
var webAuthOptions = {
var webAuthOptions = {
clientID: this.clientID,

@@ -44,3 +44,3 @@ domain: this.domain,

_sendTelemetry: this.options._sendTelemetry
};
};
var shouldVerifyIdToken = true;

@@ -52,3 +52,3 @@ if (this.options._idTokenVerification === false)

for (var i in Lock) {
if (typeof Lock[i] === "function") {
if (typeof Lock[i] === 'function') {
functions.push(i);

@@ -60,4 +60,4 @@ }

var phase = $rootScope.$root.$$phase;
if (phase === "$apply" || phase === "$digest") {
if (fn && typeof fn === "function") {
if (phase === '$apply' || phase === '$digest') {
if (fn && typeof fn === 'function') {
fn();

@@ -73,3 +73,3 @@ }

func = parameters[lastIndex];
if (typeof func === "function") {
if (typeof func === 'function') {
parameters[lastIndex] = function() {

@@ -95,8 +95,8 @@ var args = arguments;

lock.interceptHash = function() {
if (typeof auth0.WebAuth !== "function") {
throw new Error("Auth0.js version 8 or higher must be loaded");
if (typeof auth0.WebAuth !== 'function') {
throw new Error('Auth0.js version 8 or higher must be loaded');
return;
}
$rootScope.$on("$locationChangeStart", function(event, location) {
$rootScope.$on('$locationChangeStart', function(event, location) {
if (

@@ -115,6 +115,6 @@ /id_token=/.test(location) ||

if (err) {
Lock.emit("authorization_error", err);
Lock.emit('authorization_error', err);
}
if (authResult && authResult.idToken) {
Lock.emit("authenticated", authResult);
Lock.emit('authenticated', authResult);
}

@@ -121,0 +121,0 @@ }

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

!function(){"use strict";function t(){if("function"!=typeof Auth0Lock)throw new Error("Auth0Lock must be loaded.");Auth0Lock.prototype.getClient=function(){},Auth0Lock.prototype.parseHash=function(){},this.init=function(t){if(!t)throw new Error("clientID and domain must be provided to lock");this.clientID=t.clientID,this.domain=t.domain,this.options=t.options||{},this.options._telemetryInfo={name:"angular-lock",version:"3.0.2"}},this.$get=["$rootScope","$location",function(t,o){function n(o){var n=t.$root.$$phase;"$apply"===n||"$digest"===n?o&&"function"==typeof o&&o():t.$apply(o)}function i(t){var o=t.length-1,i=t[o];return"function"==typeof i&&(t[o]=function(){var t=arguments;n(function(){i.apply(e,t)})}),t}var e=new Auth0Lock(this.clientID,this.domain,this.options),r={clientID:this.clientID,domain:this.domain,_telemetryInfo:this.options._telemetryInfo,_sendTelemetry:this.options._sendTelemetry},a=!0;!1===this.options._idTokenVerification&&(a=!1);var s={},c=[];for(var h in e)"function"==typeof e[h]&&c.push(h);for(var h=0;h<c.length;h++)s[c[h]]=function(t){return function(){return e[t].apply(e,i(arguments))}}(c[h]);return s.interceptHash=function(){if("function"!=typeof auth0.WebAuth)throw new Error("Auth0.js version 8 or higher must be loaded");t.$on("$locationChangeStart",function(t,n){if(/id_token=/.test(n)||/access_token=/.test(n)||/error=/.test(n)){var i=new auth0.WebAuth(r),s=o.hash()||window.location.hash;i.parseHash({hash:s,_idTokenVerification:a},function(t,o){t&&e.emit("authorization_error",t),o&&o.idToken&&e.emit("authenticated",o)})}})},s}]}angular.module("auth0.lock",[]).provider("lock",t)}();
!function(){"use strict";function t(){if("function"!=typeof Auth0Lock)throw new Error("Auth0Lock must be loaded.");Auth0Lock.prototype.getClient=function(){},Auth0Lock.prototype.parseHash=function(){},this.init=function(t){if(!t)throw new Error("clientID and domain must be provided to lock");this.clientID=t.clientID,this.domain=t.domain,this.options=t.options||{},this.options._telemetryInfo={name:"angular-lock",version:"3.0.4"}},this.$get=["$rootScope","$location",function(t,o){function n(o){var n=t.$root.$$phase;"$apply"===n||"$digest"===n?o&&"function"==typeof o&&o():t.$apply(o)}function i(t){var o=t.length-1,i=t[o];return"function"==typeof i&&(t[o]=function(){var t=arguments;n(function(){i.apply(e,t)})}),t}var e=new Auth0Lock(this.clientID,this.domain,this.options),r={clientID:this.clientID,domain:this.domain,_telemetryInfo:this.options._telemetryInfo,_sendTelemetry:this.options._sendTelemetry},a=!0;!1===this.options._idTokenVerification&&(a=!1);var s={},c=[];for(var h in e)"function"==typeof e[h]&&c.push(h);for(var h=0;h<c.length;h++)s[c[h]]=function(t){return function(){return e[t].apply(e,i(arguments))}}(c[h]);return s.interceptHash=function(){if("function"!=typeof auth0.WebAuth)throw new Error("Auth0.js version 8 or higher must be loaded");t.$on("$locationChangeStart",function(t,n){if(/id_token=/.test(n)||/access_token=/.test(n)||/error=/.test(n)){var i=new auth0.WebAuth(r),s=o.hash()||window.location.hash;i.parseHash({hash:s,_idTokenVerification:a},function(t,o){t&&e.emit("authorization_error",t),o&&o.idToken&&e.emit("authenticated",o)})}})},s}]}angular.module("auth0.lock",[]).provider("lock",t)}();
{
"name": "angular-lock",
"version": "3.0.3",
"version": "3.0.4",
"description": "Angular wrapper for Lock",

@@ -29,4 +29,4 @@ "main": "angular-lock.js",

"dependencies": {
"auth0-js": "^9.12.1"
"auth0-js": "^9.12.2"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc