uport-core
Advanced tools
Comparing version 0.0.39 to 0.0.40
@@ -76,5 +76,5 @@ 'use strict'; | ||
var payload = { url: uri, message: message }; | ||
var PUTUTU_URL = 'https://pututu.uport.space'; // TODO - change to .me | ||
var PUTUTU_URL = 'https://api.uport.me/pututu/'; // TODO - change to .me | ||
return new Promise(function (resolve, reject) { | ||
var endpoint = '/api/v2/sns'; | ||
var endpoint = 'sns/'; | ||
if (!token) { | ||
@@ -100,3 +100,3 @@ return reject(new Error('Missing push notification token')); | ||
(0, _nets2.default)({ | ||
uri: PUTUTU_URL + endpoint, | ||
uri: 'https://api.uport.me/pututu/sns/', | ||
json: payload, | ||
@@ -103,0 +103,0 @@ method: 'POST', |
{ | ||
"name": "uport-core", | ||
"version": "0.0.39", | ||
"version": "0.0.40", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -57,5 +57,5 @@ import { encryptMessage } from './../crypto/index.js' | ||
let payload = {url: uri, message} | ||
const PUTUTU_URL = 'https://pututu.uport.space' // TODO - change to .me | ||
const PUTUTU_URL = 'https://api.uport.me/pututu/' // TODO - change to .me | ||
return new Promise((resolve, reject) => { | ||
let endpoint = '/api/v2/sns' | ||
let endpoint = 'sns/' | ||
if (!token) { | ||
@@ -81,3 +81,3 @@ return reject(new Error('Missing push notification token')) | ||
nets({ | ||
uri: PUTUTU_URL + endpoint, | ||
uri: 'https://api.uport.me/pututu/sns/', | ||
json: payload, | ||
@@ -84,0 +84,0 @@ method: 'POST', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2930696