@symbolic/lib
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -12,3 +12,3 @@ 'use strict'; | ||
var api = { | ||
async request({uri, body={}}, {shouldAlert=true}={}) { | ||
async request({uri, body={}}, {token, shouldAlert=true}={}) { | ||
var domain = { | ||
@@ -21,3 +21,3 @@ development: 'http://localhost:3301', | ||
body.token = Cookies.get('sessionToken'); | ||
body.token = token || Cookies.get('sessionToken'); | ||
@@ -24,0 +24,0 @@ try { |
{ | ||
"name": "@symbolic/lib", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "plain js utilities", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"watch": "rollup -c -w", | ||
"prepublishOnly": "npm run build && git commit -am \"built\" && npm version patch && git push" | ||
"prepublishOnly": "npm run build && npm version patch && git push" | ||
}, | ||
@@ -13,0 +13,0 @@ "author": "", |
@@ -6,3 +6,3 @@ import axios from 'axios'; | ||
var api = { | ||
async request({uri, body={}}, {shouldAlert=true}={}) { | ||
async request({uri, body={}}, {token, shouldAlert=true}={}) { | ||
var domain = { | ||
@@ -15,3 +15,3 @@ development: 'http://localhost:3301', | ||
body.token = Cookies.get('sessionToken'); | ||
body.token = token || Cookies.get('sessionToken'); | ||
@@ -18,0 +18,0 @@ try { |
6833