@alwatr/resolve-url 5.5.26 → 5.5.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.5.28](https://github.com/Alwatr/nanolib/compare/@alwatr/resolve-url@5.5.27...@alwatr/resolve-url@5.5.28) (2025-12-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alwatr/resolve-url
|
|
9
|
+
|
|
10
|
+
## [5.5.27](https://github.com/Alwatr/nanolib/compare/@alwatr/resolve-url@5.5.26...@alwatr/resolve-url@5.5.27) (2025-11-18)
|
|
11
|
+
|
|
12
|
+
### 🔨 Code Refactoring
|
|
13
|
+
|
|
14
|
+
* remove unnecessary type declarations from tsconfig.json files ([89bcc7d](https://github.com/Alwatr/nanolib/commit/89bcc7db839807110b80f8ba34414ea9734d9c75))
|
|
15
|
+
|
|
6
16
|
## [5.5.26](https://github.com/Alwatr/nanolib/compare/@alwatr/resolve-url@5.5.25...@alwatr/resolve-url@5.5.26) (2025-11-15)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @alwatr/resolve-url
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 📦 @alwatr/resolve-url v5.5.
|
|
2
|
-
__dev_mode__: console.debug("📦 @alwatr/resolve-url v5.5.
|
|
1
|
+
/** 📦 @alwatr/resolve-url v5.5.28 */
|
|
2
|
+
__dev_mode__: console.debug("📦 @alwatr/resolve-url v5.5.28");
|
|
3
3
|
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{resolveUrl:()=>resolveUrl});module.exports=__toCommonJS(main_exports);function resolveUrl(...parts){parts=parts.filter(part=>typeof part==="string"&&part.length>0);if(parts.length===0){return""}const leadingSlashes=/^\/+/;const trailingSlashes=/\/+$/;const multipleSlashes=/\/{2,}/g;const prefix=parts[0].charAt(0)==="/"?"/":"";const lastPart=parts[parts.length-1];const suffix=lastPart.charAt(lastPart.length-1)==="/"?"/":"";const url=(prefix+parts.map(part=>part.replace(leadingSlashes,"").replace(trailingSlashes,"")).filter(part=>part).join("/").replace("://","{{PROTOCOL_SLASH}}")+suffix).replace(multipleSlashes,"/").replace("{{PROTOCOL_SLASH}}","://");return url}0&&(module.exports={resolveUrl});
|
|
4
4
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 📦 @alwatr/resolve-url v5.5.
|
|
2
|
-
__dev_mode__: console.debug("📦 @alwatr/resolve-url v5.5.
|
|
1
|
+
/** 📦 @alwatr/resolve-url v5.5.28 */
|
|
2
|
+
__dev_mode__: console.debug("📦 @alwatr/resolve-url v5.5.28");
|
|
3
3
|
function resolveUrl(...parts){parts=parts.filter(part=>typeof part==="string"&&part.length>0);if(parts.length===0){return""}const leadingSlashes=/^\/+/;const trailingSlashes=/\/+$/;const multipleSlashes=/\/{2,}/g;const prefix=parts[0].charAt(0)==="/"?"/":"";const lastPart=parts[parts.length-1];const suffix=lastPart.charAt(lastPart.length-1)==="/"?"/":"";const url=(prefix+parts.map(part=>part.replace(leadingSlashes,"").replace(trailingSlashes,"")).filter(part=>part).join("/").replace("://","{{PROTOCOL_SLASH}}")+suffix).replace(multipleSlashes,"/").replace("{{PROTOCOL_SLASH}}","://");return url}export{resolveUrl};
|
|
4
4
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/resolve-url",
|
|
3
3
|
"description": "A tiny TypeScript library to resolve URLs.",
|
|
4
|
-
"version": "5.5.
|
|
4
|
+
"version": "5.5.28",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@alwatr/nano-build": "6.3.
|
|
9
|
-
"@alwatr/prettier-config": "
|
|
10
|
-
"@alwatr/tsconfig-base": "6.0.
|
|
11
|
-
"@alwatr/type-helper": "6.1.
|
|
8
|
+
"@alwatr/nano-build": "6.3.10",
|
|
9
|
+
"@alwatr/prettier-config": "6.0.1",
|
|
10
|
+
"@alwatr/tsconfig-base": "6.0.4",
|
|
11
|
+
"@alwatr/type-helper": "6.1.8",
|
|
12
12
|
"@jest/globals": "^30.2.0",
|
|
13
13
|
"jest": "^30.2.0",
|
|
14
14
|
"typescript": "^5.9.3"
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"sideEffects": false,
|
|
76
76
|
"type": "module",
|
|
77
77
|
"types": "./dist/main.d.ts",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "d4edc8bf4a48fc84e01cd2625ce840f906bff27d"
|
|
79
79
|
}
|