Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stripe/ui-extension-sdk

Package Overview
Dependencies
Maintainers
45
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stripe/ui-extension-sdk - npm Package Compare versions

Comparing version 8.8.0-alpha.6 to 8.8.0-alpha.8

utils/getUserAuthorizedPermissions.d.ts

2

package.json

@@ -6,3 +6,3 @@ {

},
"version": "8.8.0-alpha.6",
"version": "8.8.0-alpha.8",
"description": "The suite of functionality available to UI extensions in Stripe apps",

@@ -9,0 +9,0 @@ "author": "Stripe, Inc.",

@@ -38,3 +38,2 @@ "use strict";

imageSrc: ['https://test.com/image'],
purpose: 'test_purpose',
},

@@ -52,3 +51,3 @@ },

? (_h = partialMockContext === null || partialMockContext === void 0 ? void 0 : partialMockContext.appContext) === null || _h === void 0 ? void 0 : _h.authorizedPermissions
: (_j = exports.defaultMockContextProps.appContext) === null || _j === void 0 ? void 0 : _j.authorizedPermissions, authorizedContentSecurityPolicy: Object.assign(Object.assign(Object.assign({}, (_k = exports.defaultMockContextProps.appContext) === null || _k === void 0 ? void 0 : _k.authorizedContentSecurityPolicy), (_l = partialMockContext === null || partialMockContext === void 0 ? void 0 : partialMockContext.appContext) === null || _l === void 0 ? void 0 : _l.authorizedContentSecurityPolicy), { connectSrc: [], imageSrc: [], purpose: '' }) }),
: (_j = exports.defaultMockContextProps.appContext) === null || _j === void 0 ? void 0 : _j.authorizedPermissions, authorizedContentSecurityPolicy: Object.assign(Object.assign(Object.assign({}, (_k = exports.defaultMockContextProps.appContext) === null || _k === void 0 ? void 0 : _k.authorizedContentSecurityPolicy), (_l = partialMockContext === null || partialMockContext === void 0 ? void 0 : partialMockContext.appContext) === null || _l === void 0 ? void 0 : _l.authorizedContentSecurityPolicy), { connectSrc: [], imageSrc: [] }) }),
});

@@ -55,0 +54,0 @@ };

import type { NestableJSONValue } from '../types/util';
export declare type AuthorizedPermissions = string[];
export declare type AuthorizedContentSecurityPolicy = {
connectSrc?: string[];
imageSrc?: string[];
purpose?: string | null;
connectSrc: string[] | null;
imageSrc: string[] | null;
};

@@ -43,3 +42,3 @@ export declare type RoleDefinition = {

};
appContext?: {
appContext: {
authorizedPermissions?: AuthorizedPermissions;

@@ -46,0 +45,0 @@ authorizedContentSecurityPolicy?: AuthorizedContentSecurityPolicy;

@@ -5,2 +5,5 @@ import type { StripeApiFetch } from './apiFetch';

import type { ShowToast } from './toast';
import type { GetUserAuthorizedPermissions } from './getUserAuthorizedPermissions';
import type { IsPermissionAuthorized } from './isPermissionAuthorized';
import { IsSourceInAuthorizedCSP } from './isSourceInAuthorizedCSP';
export interface PlatformRPCs {

@@ -17,2 +20,5 @@ clipboardWriteText: (text: string) => Promise<void>;

showToast: ShowToast;
getUserAuthorizedPermissions: GetUserAuthorizedPermissions;
isPermissionAuthorized: IsPermissionAuthorized;
isSourceInAuthorizedCSP: IsSourceInAuthorizedCSP;
}

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

export declare const SDK_VERSION = "8.8.0-alpha.6";
export declare const SDK_VERSION = "8.8.0-alpha.8";
export declare const UI_VERSION = "^32.7.0";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UI_VERSION = exports.SDK_VERSION = void 0;
exports.SDK_VERSION = '8.8.0-alpha.6';
exports.SDK_VERSION = '8.8.0-alpha.8';
exports.UI_VERSION = '^32.7.0';
//# sourceMappingURL=version.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc