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

@forge/csp

Package Overview
Dependencies
Maintainers
8
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/csp - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2-next.0

6

CHANGELOG.md
# @forge/csp
## 0.1.2-next.0
### Patch Changes
- 1b3bfe1: Add local tunnel Custom UI CSP reported server
## 0.1.1

@@ -4,0 +10,0 @@

2

out/csp-injection-service.d.ts

@@ -6,4 +6,4 @@ import type { LambdaEnvironment } from '@forge/cli-shared';

private getForgeGlobalCSP;
getInjectableCSP: (existingCspDetails: CSPDetails, env: LambdaEnvironment) => string[];
getInjectableCSP: (existingCspDetails: CSPDetails, env: LambdaEnvironment, tunnelCspReporterUri?: string | undefined) => string[];
}
//# sourceMappingURL=csp-injection-service.d.ts.map

@@ -12,4 +12,4 @@ "use strict";

constructor() {
this.getInjectableCSP = (existingCspDetails, env) => {
const reportUri = this.getCSPReportUri(env);
this.getInjectableCSP = (existingCspDetails, env, tunnelCspReporterUri) => {
const reportUri = this.getCSPReportUri(env, tunnelCspReporterUri);
const defaultSrc = `'self'`;

@@ -32,3 +32,5 @@ const imgSrc = ["'self'", 'data:', 'blob:', gravatarUrl, ...avatarCdnHosts[env]].join(' ');

}
getCSPReportUri(env) {
getCSPReportUri(env, tunnelCspReporterUri) {
if (tunnelCspReporterUri)
return tunnelCspReporterUri;
if (env === 'prod')

@@ -35,0 +37,0 @@ return 'https://web-security-reports.services.atlassian.com/csp-report/forge-cdn';

{
"name": "@forge/csp",
"version": "0.1.1",
"version": "0.1.2-next.0",
"description": "Contains the CSP configuration for Custom UI resources in Forge",

@@ -14,3 +14,3 @@ "main": "out/index.js",

"devDependencies": {
"@forge/cli-shared": "^0.14.0",
"@forge/cli-shared": "^0.15.0-next.3",
"@types/jest": "^26.0.0"

@@ -17,0 +17,0 @@ },

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