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

aurelia-auth

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-auth - npm Package Compare versions

Comparing version 0.12.0 to 0.12.2

15

dist/amd/authentication.js

@@ -63,3 +63,8 @@ define(['exports', 'aurelia-framework', './baseConfig', './storage', './authUtils'], function (exports, _aureliaFramework, _baseConfig, _storage, _authUtils) {

var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
try {
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
} catch (error) {
return null;
}
}

@@ -120,4 +125,10 @@ }

var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
var exp = JSON.parse(window.atob(base64)).exp;
var exp = undefined;
try {
exp = JSON.parse(window.atob(base64)).exp;
} catch (error) {
return false;
}
if (exp) {

@@ -124,0 +135,0 @@ return Math.round(new Date().getTime() / 1000) <= exp;

11

dist/amd/authService.js

@@ -29,10 +29,11 @@ define(['exports', 'aurelia-framework', './authentication', './baseConfig', './oAuth1', './oAuth2', './authUtils', 'spoonx/aurelia-api'], function (exports, _aureliaFramework, _authentication, _baseConfig, _oAuth1, _oAuth2, _authUtils, _spoonxAureliaApi) {

key: 'getMe',
value: function getMe() {
return this.rest.find(this.auth.getProfileUrl());
value: function getMe(criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {
criteria = { id: criteria };
}
return this.rest.find(this.auth.getProfileUrl(), criteria);
}
}, {
key: 'updateMe',
value: function updateMe(body) {
var criteria = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
value: function updateMe(body, criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {

@@ -39,0 +40,0 @@ criteria = { id: criteria };

@@ -70,3 +70,8 @@ 'use strict';

var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
try {
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
} catch (error) {
return null;
}
}

@@ -127,4 +132,10 @@ }

var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
var exp = JSON.parse(window.atob(base64)).exp;
var exp = undefined;
try {
exp = JSON.parse(window.atob(base64)).exp;
} catch (error) {
return false;
}
if (exp) {

@@ -131,0 +142,0 @@ return Math.round(new Date().getTime() / 1000) <= exp;

@@ -42,10 +42,11 @@ 'use strict';

key: 'getMe',
value: function getMe() {
return this.rest.find(this.auth.getProfileUrl());
value: function getMe(criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {
criteria = { id: criteria };
}
return this.rest.find(this.auth.getProfileUrl(), criteria);
}
}, {
key: 'updateMe',
value: function updateMe(body) {
var criteria = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
value: function updateMe(body, criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {

@@ -52,0 +53,0 @@ criteria = { id: criteria };

@@ -44,3 +44,8 @@ import {inject} from 'aurelia-framework';

let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
try {
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
} catch (error) {
return null;
}
}

@@ -100,4 +105,10 @@ }

let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
let exp = JSON.parse(window.atob(base64)).exp;
let exp;
try {
exp = JSON.parse(window.atob(base64)).exp;
} catch (error) {
return false;
}
if (exp) {

@@ -104,0 +115,0 @@ return Math.round(new Date().getTime() / 1000) <= exp;

@@ -19,7 +19,10 @@ import {inject} from 'aurelia-framework';

getMe() {
return this.rest.find(this.auth.getProfileUrl());
getMe(criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {
criteria = {id: criteria};
}
return this.rest.find(this.auth.getProfileUrl(), criteria);
}
updateMe(body, criteria = null) {
updateMe(body, criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {

@@ -26,0 +29,0 @@ criteria = {id: criteria};

@@ -68,3 +68,8 @@ System.register(['aurelia-framework', './baseConfig', './storage', './authUtils'], function (_export) {

var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
try {
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
} catch (error) {
return null;
}
}

@@ -125,4 +130,10 @@ }

var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
var exp = JSON.parse(window.atob(base64)).exp;
var exp = undefined;
try {
exp = JSON.parse(window.atob(base64)).exp;
} catch (error) {
return false;
}
if (exp) {

@@ -129,0 +140,0 @@ return Math.round(new Date().getTime() / 1000) <= exp;

@@ -40,10 +40,11 @@ System.register(['aurelia-framework', './authentication', './baseConfig', './oAuth1', './oAuth2', './authUtils', 'spoonx/aurelia-api'], function (_export) {

key: 'getMe',
value: function getMe() {
return this.rest.find(this.auth.getProfileUrl());
value: function getMe(criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {
criteria = { id: criteria };
}
return this.rest.find(this.auth.getProfileUrl(), criteria);
}
}, {
key: 'updateMe',
value: function updateMe(body) {
var criteria = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
value: function updateMe(body, criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {

@@ -50,0 +51,0 @@ criteria = { id: criteria };

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

### 0.12.2 (2016-01-14)
#### Bug Fixes
* **authentication:** Catch corrupt json ([b971cfc1](git+https://github.com/spoonx/aurelia-auth.git/commit/b971cfc184fd01c6f7da42d09aa446c41373ff7e))
#### Features
* **authService:** getMe with optional criteria ([99b8ed62](git+https://github.com/spoonx/aurelia-auth.git/commit/99b8ed620317202d29d5f804e237b2b8b8ebe82b))
### 0.12.1 (2016-01-13)
#### Features
* **authService:** getMe with optional criteria ([99b8ed62](git+https://github.com/spoonx/aurelia-auth.git/commit/99b8ed620317202d29d5f804e237b2b8b8ebe82b))
### 0.12.0 (2016-01-02)
#### Bug Fixes
* **project:** Version bump to higher than all previous ones ([c4ceae9b](git+https://github.com/spoonx/aurelia-auth.git/commit/c4ceae9b18422dd7ca2adc3e26dc88a4f8cefb8c))
### 0.1.2 (2015-12-29)

@@ -2,0 +31,0 @@

{
"name": "aurelia-auth",
"version": "0.12.0",
"version": "0.12.2",
"description": "Plugin for social media authentication and local authentication together with other authentication utilities.",

@@ -5,0 +5,0 @@ "main": "dist/system/index.js",

@@ -39,3 +39,3 @@ # Aurelia-auth

signup(displayName, email, password)
getMe()
getMe([criteria])
updateMe(data[,criteria])

@@ -42,0 +42,0 @@ isAuthenticated()

@@ -44,3 +44,8 @@ import {inject} from 'aurelia-framework';

let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
try {
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
} catch (error) {
return null;
}
}

@@ -100,4 +105,10 @@ }

let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
let exp = JSON.parse(window.atob(base64)).exp;
let exp;
try {
exp = JSON.parse(window.atob(base64)).exp;
} catch (error) {
return false;
}
if (exp) {

@@ -104,0 +115,0 @@ return Math.round(new Date().getTime() / 1000) <= exp;

@@ -19,7 +19,10 @@ import {inject} from 'aurelia-framework';

getMe() {
return this.rest.find(this.auth.getProfileUrl());
getMe(criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {
criteria = {id: criteria};
}
return this.rest.find(this.auth.getProfileUrl(), criteria);
}
updateMe(body, criteria = null) {
updateMe(body, criteria) {
if (typeof criteria === 'string' || typeof criteria === 'number') {

@@ -26,0 +29,0 @@ criteria = {id: criteria};

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