@manifoldco/shadowcat
Advanced tools
Comparing version
@@ -12,3 +12,8 @@ 'use strict'; | ||
this.tokenListener = (ev) => { | ||
this.receiveManifoldToken.emit(ev.data); | ||
const pumaToken = ev.data; | ||
this.receiveManifoldToken.emit({ | ||
token: pumaToken.access_token, | ||
expiry: pumaToken.expiry, | ||
error: pumaToken.error | ||
}); | ||
}; | ||
@@ -15,0 +20,0 @@ this.receiveManifoldToken = __chunk_1.createEvent(this, "receiveManifoldToken", 7); |
@@ -6,3 +6,8 @@ import { h } from "@stencil/core"; | ||
this.tokenListener = (ev) => { | ||
this.receiveManifoldToken.emit(ev.data); | ||
const pumaToken = ev.data; | ||
this.receiveManifoldToken.emit({ | ||
token: pumaToken.access_token, | ||
expiry: pumaToken.expiry, | ||
error: pumaToken.error | ||
}); | ||
}; | ||
@@ -51,7 +56,12 @@ } | ||
"complexType": { | ||
"original": "any", | ||
"resolved": "any", | ||
"references": {} | ||
"original": "AuthToken", | ||
"resolved": "AuthToken", | ||
"references": { | ||
"AuthToken": { | ||
"location": "import", | ||
"path": "../../interface" | ||
} | ||
} | ||
} | ||
}]; } | ||
} |
@@ -8,3 +8,8 @@ import { r as registerInstance, c as createEvent, h } from './chunk-1164485d.js'; | ||
this.tokenListener = function (ev) { | ||
_this.receiveManifoldToken.emit(ev.data); | ||
var pumaToken = ev.data; | ||
_this.receiveManifoldToken.emit({ | ||
token: pumaToken.access_token, | ||
expiry: pumaToken.expiry, | ||
error: pumaToken.error | ||
}); | ||
}; | ||
@@ -11,0 +16,0 @@ this.receiveManifoldToken = createEvent(this, "receiveManifoldToken", 7); |
@@ -8,3 +8,8 @@ import { r as registerInstance, c as createEvent, h } from './chunk-1164485d.js'; | ||
this.tokenListener = (ev) => { | ||
this.receiveManifoldToken.emit(ev.data); | ||
const pumaToken = ev.data; | ||
this.receiveManifoldToken.emit({ | ||
token: pumaToken.access_token, | ||
expiry: pumaToken.expiry, | ||
error: pumaToken.error | ||
}); | ||
}; | ||
@@ -11,0 +16,0 @@ this.receiveManifoldToken = createEvent(this, "receiveManifoldToken", 7); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-9422a1d9.system.js"],function(){"use strict";var t,e;return{setters:[function(n){t=n.p;e=n.b}],execute:function(){t().then(function(t){return e([["p-ndnzfdsq.system",[[0,"manifold-oauth",{oauthUrl:[1,"oauth-url"]}]]]],{resourcesUrl:t})})}}}); | ||
System.register(["./p-9422a1d9.system.js"],function(){"use strict";var t,e;return{setters:[function(r){t=r.p;e=r.b}],execute:function(){t().then(function(t){return e([["p-fsur2i83.system",[[0,"manifold-oauth",{oauthUrl:[1,"oauth-url"]}]]]],{resourcesUrl:t})})}}}); |
@@ -1,1 +0,1 @@ | ||
import{p as o,b as r}from"./p-86289101.js";o().then(o=>r([["p-wcsdpoqj",[[0,"manifold-oauth",{oauthUrl:[1,"oauth-url"]}]]]],{resourcesUrl:o})); | ||
import{p as o,b as r}from"./p-86289101.js";o().then(o=>r([["p-hcxdmbxm",[[0,"manifold-oauth",{oauthUrl:[1,"oauth-url"]}]]]],{resourcesUrl:o})); |
@@ -9,4 +9,6 @@ /* tslint:disable */ | ||
import { HTMLStencilElement, JSXBase } from './stencil.core'; | ||
import { | ||
AuthToken, | ||
} from './interface'; | ||
export namespace Components { | ||
@@ -34,3 +36,3 @@ interface ManifoldOauth { | ||
'oauthUrl'?: string; | ||
'onReceiveManifoldToken'?: (event: CustomEvent<any>) => void; | ||
'onReceiveManifoldToken'?: (event: CustomEvent<AuthToken>) => void; | ||
} | ||
@@ -37,0 +39,0 @@ |
import { EventEmitter } from "../../stencil.core"; | ||
import { AuthToken } from "../../interface"; | ||
export declare class ManifoldOauth { | ||
oauthUrl?: string; | ||
receiveManifoldToken: EventEmitter; | ||
receiveManifoldToken: EventEmitter<AuthToken>; | ||
tokenListener: (ev: MessageEvent) => void; | ||
@@ -6,0 +7,0 @@ componentWillLoad(): void; |
@@ -8,6 +8,18 @@ { | ||
"es2017": "dist/esm/index.mjs", | ||
"types": "dist/types/index.d.ts", | ||
"types": "dist/types/interface.d.ts", | ||
"collection": "dist/collection/collection-manifest.json", | ||
"collection:main": "dist/collection/index.js", | ||
"unpkg": "dist/shadowcat/shadowcat.js", | ||
"files": [ | ||
"dist/" | ||
], | ||
"scripts": { | ||
"build": "stencil build --docs", | ||
"prepare": "stencil build", | ||
"publish": "node scripts/publish", | ||
"start": "stencil build --dev --watch --serve", | ||
"test": "stencil test --spec --e2e", | ||
"test:coverage": "npm run test --coverage", | ||
"test.watch": "stencil test --spec --e2e --watchAll" | ||
}, | ||
"devDependencies": { | ||
@@ -24,3 +36,3 @@ "@stencil/core": "^1.1.6", | ||
"license": "MIT", | ||
"version": "0.0.2" | ||
"version": "0.1.3" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
653322
0.53%58
3.57%9757
0.45%58
3.57%1
Infinity%