You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@globus/stencil-components

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globus/stencil-components - npm Package Compare versions

Comparing version

to
0.0.3-alpha

dist/cjs/index-29a81272.js

2

dist/cjs/loader.cjs.js

@@ -5,3 +5,3 @@ 'use strict';

const index = require('./index-f33d81e2.js');
const index = require('./index-29a81272.js');

@@ -8,0 +8,0 @@ const defineCustomElements = (win, options) => {

@@ -5,3 +5,3 @@ 'use strict';

const index = require('./index-f33d81e2.js');
const index = require('./index-29a81272.js');

@@ -8,0 +8,0 @@ /*

@@ -38,3 +38,3 @@ var _GlobusAuthContext_instances, _GlobusAuthContext_updateContext;

}
async componentWillRender() {
async componentWillLoad() {
var _a;

@@ -41,0 +41,0 @@ await ((_a = this.context.pkce) === null || _a === void 0 ? void 0 : _a.handleCodeRedirect());

import { createStore } from "@stencil/store";
const { state } = createStore({
export const store = createStore({
default: {

@@ -8,3 +8,3 @@ authenticated: false,

});
export default state;
export default store.state;
//# sourceMappingURL=store.js.map

@@ -14,9 +14,14 @@ import { h } from "@stencil/core";

import { GACAuthenticatedState } from "../gac-authenticated";
import { store } from "../store";
describe('globus-auth-context', () => {
beforeEach(() => {
store.dispose();
});
it('renders', async () => {
const page = await newSpecPage({
components: [GlobusAuthContext, GACAuthenticatedState],
template: () => (h("globus-auth-context", { clientId: "bb8b1927-8b64-4c68-a025-dd7daca20cbd", redirectUri: "http://localhost:3336", scopes: "urn:globus:auth:scope:transfer.api.globus.org:all" }, h("gac-authenticated", null, "THIS SHOULD NOT BE VISIBLE"), h("gac-authenticated", { state: "false" }, "You need to sign in."))),
template: () => (h("globus-auth-context", { clientId: "bb8b1927-8b64-4c68-a025-dd7daca20cbd", redirectUri: "http://localhost:3336", scopes: "urn:globus:auth:scope:transfer.api.globus.org:all" }, h("gac-authenticated", null, "THIS SHOULD NOT BE VISIBLE IN THE LIGHT DOM"), h("gac-authenticated", { state: "false" }, "You need to sign in."))),
});
expect(page.root).toMatchInlineSnapshot(`
const el = page.body.querySelector('globus-auth-context');
expect(el).toMatchInlineSnapshot(`
<globus-auth-context>

@@ -28,3 +33,3 @@ <mock:shadow-root>

<mock:shadow-root></mock:shadow-root>
THIS SHOULD NOT BE VISIBLE
THIS SHOULD NOT BE VISIBLE IN THE LIGHT DOM
</gac-authenticated>

@@ -39,5 +44,4 @@ <gac-authenticated>

`);
expect(page.body).toEqualText(`You need to sign in.`);
});
});
//# sourceMappingURL=globus-auth-context.e2e.js.map

@@ -41,3 +41,3 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';

}
async componentWillRender() {
async componentWillLoad() {
var _a;

@@ -44,0 +44,0 @@ await ((_a = this.context.pkce) === null || _a === void 0 ? void 0 : _a.handleCodeRedirect());

@@ -194,3 +194,3 @@ import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';

const { state } = createStore({
const store = createStore({
default: {

@@ -201,2 +201,3 @@ authenticated: false,

});
const state = store.state;

@@ -203,0 +204,0 @@ export { state as s };

@@ -1,3 +0,3 @@

import { b as bootstrapLazy } from './index-4e5216e0.js';
export { s as setNonce } from './index-4e5216e0.js';
import { b as bootstrapLazy } from './index-19c3593e.js';
export { s as setNonce } from './index-19c3593e.js';

@@ -4,0 +4,0 @@ const defineCustomElements = (win, options) => {

@@ -1,3 +0,3 @@

import { p as promiseResolve, b as bootstrapLazy } from './index-4e5216e0.js';
export { s as setNonce } from './index-4e5216e0.js';
import { p as promiseResolve, b as bootstrapLazy } from './index-19c3593e.js';
export { s as setNonce } from './index-19c3593e.js';

@@ -4,0 +4,0 @@ /*

@@ -1,2 +0,2 @@

import{p as t,b as e}from"./p-db9a2f80.js";export{s as setNonce}from"./p-db9a2f80.js";const a=()=>{const e=import.meta.url;const a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return t(a)};a().then((t=>e([["p-6ab811a0",[[1,"gac-authenticated",{contextId:[8,"context-id"],state:[1]}],[1,"globus-auth-context",{clientId:[1,"client-id"],scopes:[1],redirectUri:[1,"redirect-uri"],contextId:[8,"context-id"]},[[0,"authenticate","authenticateHandler"],[0,"revoke","revokeHandler"]]],[1,"globus-sdk"]]]],t)));
import{p as t,b as e}from"./p-ceb61fc9.js";export{s as setNonce}from"./p-ceb61fc9.js";const c=()=>{const e=import.meta.url;const c={};if(e!==""){c.resourcesUrl=new URL(".",e).href}return t(c)};c().then((t=>e([["p-03956cd8",[[1,"gac-authenticated",{contextId:[8,"context-id"],state:[1]}],[1,"globus-auth-context",{clientId:[1,"client-id"],scopes:[1],redirectUri:[1,"redirect-uri"],contextId:[8,"context-id"]},[[0,"authenticate","authenticateHandler"],[0,"revoke","revokeHandler"]]],[1,"globus-sdk"]]]],t)));
//# sourceMappingURL=stencil-components.esm.js.map

@@ -16,4 +16,4 @@ import { authorization } from '@globus/sdk';

connectedCallback(): void;
componentWillRender(): Promise<void>;
componentWillLoad(): Promise<void>;
render(): any;
}
import type { authorization } from '@globus/sdk';
declare const state: {
export declare const store: import("@stencil/store").ObservableMap<{
[key: string]: {

@@ -7,3 +7,9 @@ authenticated: boolean;

};
}>;
declare const _default: {
[key: string]: {
authenticated: boolean;
pkce: authorization.PKCEAuthorization | null;
};
};
export default state;
export default _default;
{
"name": "@globus/stencil-components",
"version": "0.0.2-alpha",
"version": "0.0.3-alpha",
"private": false,

@@ -26,7 +26,7 @@ "description": "A suite of Globus Web Components built with Stencil.",

"dependencies": {
"@globus/sdk": "^1.2.3-alpha",
"@stencil/core": "^4.3.0"
"@globus/sdk": "*",
"@stencil/core": "^4.3.0",
"@stencil/store": "^2.0.9"
},
"devDependencies": {
"@stencil/store": "^2.0.9",
"@types/jest": "^27.5.2",

@@ -33,0 +33,0 @@ "@types/node": "^16.18.11",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet