@openscreen/app-bridge
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,1 +0,22 @@ | ||
export * from './src/app-bridge'; | ||
interface AuthResponse { | ||
sessionToken: string; | ||
} | ||
interface AuthTokenPayload { | ||
accountId: string; | ||
principalId: string; | ||
expires: number; | ||
appAccountId: string; | ||
projectId: string; | ||
iat: number; | ||
exp: number; | ||
iss: string; | ||
} | ||
interface AppBridge { | ||
getSessionToken: (env?: Env) => Promise<AuthResponse>; | ||
getIsEmbeddedInOpenscreen: (env?: Env) => Promise<boolean>; | ||
} | ||
declare type Env = 'dev' | 'stage' | 'prod' | 'local' | undefined; | ||
declare const appBridge: AppBridge; | ||
export { AppBridge, AuthResponse, AuthTokenPayload, Env, appBridge }; |
{ | ||
"name": "@openscreen/app-bridge", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
"license": "ISC", | ||
"author": "Openscreen Inc.", | ||
"main": "./dist/index.js", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": "./dist/mjs/index.js", | ||
"require": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"main": "./dist/cjs/index.cjs", | ||
"module": "./dist/mjs/index.js", | ||
"types": "./dist/index.d.ts", | ||
@@ -13,5 +21,9 @@ "scripts": { | ||
"devDependencies": { | ||
"@rollup/plugin-terser": "0.4.0", | ||
"eslint": "7.26.0", | ||
"rollup": "2.79.1", | ||
"rollup-plugin-dts": "4.2.3", | ||
"rollup-plugin-typescript2": "0.34.1", | ||
"typescript": "4.3.2" | ||
} | ||
} |
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"target": "esnext", | ||
"module": "esnext", | ||
"outDir": "./dist", | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": "src", | ||
"declaration": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"inlineSourceMap": false, | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"jsx": "preserve", | ||
"listEmittedFiles": false, | ||
"listFiles": false, | ||
"moduleResolution": "node", | ||
"baseUrl": "src/", | ||
"noFallthroughCasesInSwitch": true, | ||
"pretty": true, | ||
"resolveJsonModule": true, | ||
"declaration": true, | ||
"outDir": "dist/", | ||
"isolatedModules": true, | ||
"jsx": "preserve", | ||
"incremental": true | ||
"rootDir": "src", | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"traceResolution": false, | ||
"forceConsistentCasingInFileNames": true | ||
}, | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | ||
"exclude": ["node_modules", "dist"] | ||
"exclude": ["node_modules", "dist"], | ||
"include": ["src"] | ||
} |
Sorry, the diff of this file is not supported yet
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
19
150
Yes
7547
6
1