anypush
Advanced tools
Comparing version 0.0.5 to 0.0.6
import Debug from 'debug'; | ||
import * as HTTP2Wrapper from 'http2-wrapper'; | ||
import { sign } from 'jsonwebtoken'; | ||
import JSONWebToken from 'jsonwebtoken'; | ||
import ms from 'ms'; | ||
@@ -111,3 +111,3 @@ import { ServerError, TargetInactiveError, TargetTooManyRequestsError, } from '../expected-errors.js'; | ||
const { key, keyId, teamId } = this.options; | ||
this.providerToken = sign({}, key, { | ||
this.providerToken = JSONWebToken.sign({}, key, { | ||
algorithm: 'ES256', | ||
@@ -114,0 +114,0 @@ issuer: teamId, |
{ | ||
"name": "anypush", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "AnyPush", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/vilic/anypush.git", |
import Debug from 'debug'; | ||
import * as HTTP2Wrapper from 'http2-wrapper'; | ||
import type {JwtHeader} from 'jsonwebtoken'; | ||
import {sign} from 'jsonwebtoken'; | ||
import JSONWebToken from 'jsonwebtoken'; | ||
import ms from 'ms'; | ||
@@ -442,3 +442,3 @@ | ||
this.providerToken = sign({}, key, { | ||
this.providerToken = JSONWebToken.sign({}, key, { | ||
algorithm: 'ES256', | ||
@@ -445,0 +445,0 @@ issuer: teamId, |
Sorry, the diff of this file is not supported yet
136276