@forge/csp
Advanced tools
Comparing version 3.2.2-experimental-1828c63 to 3.2.2-experimental-264fa0f
# @forge/csp | ||
## 3.2.2-experimental-264fa0f | ||
### Patch Changes | ||
- 386c1f1: Bump cheerio from version 0.22 to version 1.0 | ||
## 3.2.2 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const cheerio_1 = tslib_1.__importDefault(require("cheerio")); | ||
const cheerio_1 = require("cheerio"); | ||
const content_security_policy_parser_1 = tslib_1.__importDefault(require("content-security-policy-parser")); | ||
@@ -32,3 +32,3 @@ const crypto_1 = tslib_1.__importDefault(require("crypto")); | ||
const external = permissions?.external ?? {}; | ||
const $ = cheerio_1.default.load(body); | ||
const $ = (0, cheerio_1.load)(body, { xml: { xmlMode: false } }); | ||
const { 'script-src': scriptSrc, 'style-src': styleSrc, ...mappedExternalCsp } = this.mapExternalPermissionsToCsp(external); | ||
@@ -35,0 +35,0 @@ return { |
{ | ||
"name": "@forge/csp", | ||
"version": "3.2.2-experimental-1828c63", | ||
"version": "3.2.2-experimental-264fa0f", | ||
"description": "Contains the CSP configuration for Custom UI resources in Forge", | ||
@@ -14,4 +14,4 @@ "main": "out/index.js", | ||
"devDependencies": { | ||
"@forge/cli-shared": "5.3.0-next.3-experimental-1828c63", | ||
"@forge/manifest": "7.5.1-next.3-experimental-1828c63", | ||
"@forge/cli-shared": "5.4.0-next.1-experimental-264fa0f", | ||
"@forge/manifest": "7.5.4-next.0-experimental-264fa0f", | ||
"@types/jest": "^29.5.12", | ||
@@ -21,5 +21,5 @@ "@types/node": "14.18.63" | ||
"dependencies": { | ||
"cheerio": "^0.22.0", | ||
"cheerio": "^1.0.0", | ||
"content-security-policy-parser": "^0.4.1" | ||
} | ||
} |
30999
+ Addedcheerio@1.0.0(transitive)
+ Addedcheerio-select@2.1.0(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.2.2(transitive)
+ Addedencoding-sniffer@0.2.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedhtmlparser2@9.1.0(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedparse5@7.2.1(transitive)
+ Addedparse5-htmlparser2-tree-adapter@7.1.0(transitive)
+ Addedparse5-parser-stream@7.1.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedundici@6.21.1(transitive)
+ Addedwhatwg-encoding@3.1.1(transitive)
+ Addedwhatwg-mimetype@4.0.0(transitive)
- Removedcheerio@0.22.0(transitive)
- Removedcss-select@1.2.0(transitive)
- Removedcss-what@2.1.3(transitive)
- Removeddom-serializer@0.1.1(transitive)
- Removeddomelementtype@1.3.1(transitive)
- Removeddomhandler@2.4.2(transitive)
- Removeddomutils@1.5.1(transitive)
- Removedentities@1.1.2(transitive)
- Removedhtmlparser2@3.10.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedlodash.assignin@4.2.0(transitive)
- Removedlodash.bind@4.2.1(transitive)
- Removedlodash.defaults@4.2.0(transitive)
- Removedlodash.filter@4.6.0(transitive)
- Removedlodash.flatten@4.4.0(transitive)
- Removedlodash.foreach@4.5.0(transitive)
- Removedlodash.map@4.6.0(transitive)
- Removedlodash.merge@4.6.2(transitive)
- Removedlodash.pick@4.4.0(transitive)
- Removedlodash.reduce@4.6.0(transitive)
- Removedlodash.reject@4.6.0(transitive)
- Removedlodash.some@4.6.0(transitive)
- Removednth-check@1.0.2(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedcheerio@^1.0.0