npm package diff
Package: @forge/egress
Versions: 2.0.1 - 2.0.2-next.0
Modified: package/out/egress/url-parser.js
Index: package/out/egress/url-parser.js
===================================================================
--- package/out/egress/url-parser.js
+++ package/out/egress/url-parser.js
@@ -5,8 +5,9 @@
const protocol = url.match(/^(.*?:)/)?.[0] ?? 'https:';
const hostname = url
.replace(protocol, '')
.replace(/^\/*/, '')
+ .replace(/^\\*/, '')
.split(/[\?\/]/)[0];
return { protocol, hostname };
}
exports.parseUrl = parseUrl;
Modified: package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/egress",
- "version": "2.0.1",
+ "version": "2.0.2-next.0",
"description": "Helpers and utils for egress implementation in Forge apps",
"main": "out/index.js",
"author": "Atlassian",
"license": "SEE LICENSE IN LICENSE.txt",
Modified: package/out/egress/url-parser.d.ts.map
Index: package/out/egress/url-parser.d.ts.map
===================================================================
--- package/out/egress/url-parser.d.ts.map
+++ package/out/egress/url-parser.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"url-parser.d.ts","sourceRoot":"","sources":["../../src/egress/url-parser.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAKzD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ7C"}
\ No newline at end of file
+{"version":3,"file":"url-parser.d.ts","sourceRoot":"","sources":["../../src/egress/url-parser.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAKzD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAS7C"}
\ No newline at end of file
Modified: package/CHANGELOG.md
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
# @forge/egress
+## 2.0.2-next.0
+
+### Patch Changes
+
+- 10c0bc6: Add egress support for custom URL schemes. Allow custom custom URL schemes as autoconvert patterns.
+
## 2.0.1
### Patch Changes