From c7c5674dc9a2f4bc17b47c45a740684655d8980a Mon Sep 17 00:00:00 2001 From: bigopon Date: Sun, 11 Aug 2024 22:41:14 +1000 Subject: [PATCH] chore(all): prepare release 1.1.8 --- bower.json | 2 +- dist/amd/aurelia-path.js | 11 +++++----- dist/amd/aurelia-path.js.map | 2 +- dist/commonjs/aurelia-path.js | 7 ++++--- dist/commonjs/aurelia-path.js.map | 2 +- dist/es2015/aurelia-path.js | 3 ++- dist/es2015/aurelia-path.js.map | 2 +- dist/native-modules/aurelia-path.js | 7 ++++--- dist/native-modules/aurelia-path.js.map | 2 +- dist/system/aurelia-path.js | 15 +++++++------- dist/system/aurelia-path.js.map | 2 +- dist/types/index.d.ts | 27 +++++++++++++++++++++++++ doc/CHANGELOG.md | 18 ++++++++++++++--- doc/api.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 16 files changed, 76 insertions(+), 32 deletions(-) diff --git a/bower.json b/bower.json index 70cd5c4..1917a3e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-path", - "version": "1.1.7", + "version": "1.1.8", "description": "Utilities for path manipulation.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-path.js b/dist/amd/aurelia-path.js index 56f9731..0f112f6 100644 --- a/dist/amd/aurelia-path.js +++ b/dist/amd/aurelia-path.js @@ -1,4 +1,4 @@ -define(['exports'], function (exports) { 'use strict'; +define(['exports'], (function (exports) { 'use strict'; function trimDots(ary) { for (var i = 0; i < ary.length; ++i) { @@ -90,7 +90,8 @@ define(['exports'], function (exports) { 'use strict'; return scheme + urlPrefix + url3.join('/') + trailingSlash; } var encode = encodeURIComponent; - var encodeKey = function (k) { return encode(k).replace('%24', '$'); }; + var dollarSignRegex = /%24/g; + var encodeKey = function (k) { return encode(k).replace(dollarSignRegex, '$'); }; function buildParam(key, value, traditional) { var result = []; if (value === null || value === undefined) { @@ -99,7 +100,7 @@ define(['exports'], function (exports) { 'use strict'; if (Array.isArray(value)) { for (var i = 0, l = value.length; i < l; i++) { if (traditional) { - result.push(encodeKey(key) + "=" + encode(value[i])); + result.push("".concat(encodeKey(key), "=").concat(encode(value[i]))); } else { var arrayKey = key + '[' + (typeof value[i] === 'object' && value[i] !== null ? i : '') + ']'; @@ -113,7 +114,7 @@ define(['exports'], function (exports) { 'use strict'; } } else { - result.push(encodeKey(key) + "=" + encode(value)); + result.push("".concat(encodeKey(key), "=").concat(encode(value))); } return result; } @@ -209,5 +210,5 @@ define(['exports'], function (exports) { 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); -}); +})); //# sourceMappingURL=aurelia-path.js.map diff --git a/dist/amd/aurelia-path.js.map b/dist/amd/aurelia-path.js.map index a88f7f3..c8f53ac 100644 --- a/dist/amd/aurelia-path.js.map +++ b/dist/amd/aurelia-path.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;IAAA,SAAS,QAAQ,CAAC,GAAa;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;YACnC,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;YAClB,IAAI,IAAI,KAAK,GAAG,EAAE;gBAChB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACjB,CAAC,IAAI,CAAC,CAAC;aACR;iBAAM,IAAI,IAAI,KAAK,IAAI,EAAE;gBAMxB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;oBAClE,SAAS;iBACV;qBAAM,IAAI,CAAC,GAAG,CAAC,EAAE;oBAChB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;oBACrB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C,MAAM,CAAC,IAAI,CAAC,CAAC;gBAC5C,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;aACjC;iBAAM;gBACL,aAAa,GAAG,CAAC,CAAC;aACnB;YAED,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;gBACpB,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvD,IAAI,aAAa,EAAE;oBACjB,iBAAiB,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;iBAC7C;qBAAM;oBACL,gBAAgB,CAAC,GAAG,CAAC,CAAC;oBACtB,WAAW,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;iBAChE;aACF;iBAAM;gBACL,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;aACzB;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,SAAS,gBAAgB,CAAC,GAAW;QACnC,IAAI,GAAG,KAAK,WAAW,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;SAClD;IACH;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;IAAA,SAAS,QAAQ,CAAC,GAAa,EAAA;IAC7B,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;IACnC,QAAA,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IAClB,QAAA,IAAI,IAAI,KAAK,GAAG,EAAE;IAChB,YAAA,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACjB,CAAC,IAAI,CAAC,CAAC;aACR;IA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BAAA,iBAAiB,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;iBAC7C;qBAAM;oBACL,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtB,gBAAA,WAAW,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;iBAChE;aACF;iBAAM;IACL,YAAA,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;aACzB;SACF;IACD,IAAA,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,SAAS,gBAAgB,CAAC,GAAW,EAAA;IACnC,IAAA,IAAI,GAAG,KAAK,WAAW,EAAE;IACvB,QAAA,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;SAClD;IACH;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/commonjs/aurelia-path.js b/dist/commonjs/aurelia-path.js index 37ff0d7..542d768 100644 --- a/dist/commonjs/aurelia-path.js +++ b/dist/commonjs/aurelia-path.js @@ -92,7 +92,8 @@ function join(path1, path2) { return scheme + urlPrefix + url3.join('/') + trailingSlash; } var encode = encodeURIComponent; -var encodeKey = function (k) { return encode(k).replace('%24', '$'); }; +var dollarSignRegex = /%24/g; +var encodeKey = function (k) { return encode(k).replace(dollarSignRegex, '$'); }; function buildParam(key, value, traditional) { var result = []; if (value === null || value === undefined) { @@ -101,7 +102,7 @@ function buildParam(key, value, traditional) { if (Array.isArray(value)) { for (var i = 0, l = value.length; i < l; i++) { if (traditional) { - result.push(encodeKey(key) + "=" + encode(value[i])); + result.push("".concat(encodeKey(key), "=").concat(encode(value[i]))); } else { var arrayKey = key + '[' + (typeof value[i] === 'object' && value[i] !== null ? i : '') + ']'; @@ -115,7 +116,7 @@ function buildParam(key, value, traditional) { } } else { - result.push(encodeKey(key) + "=" + encode(value)); + result.push("".concat(encodeKey(key), "=").concat(encode(value))); } return result; } diff --git a/dist/commonjs/aurelia-path.js.map b/dist/commonjs/aurelia-path.js.map index 250b2cd..a69940d 100644 --- a/dist/commonjs/aurelia-path.js.map +++ b/dist/commonjs/aurelia-path.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,CAAC,GAAa;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACnC,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,IAAI,KAAK,GAAG,EAAE;YAChB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACjB,CAAC,IAAI,CAAC,CAAC;SACR;aAAM,IAAI,IAAI,KAAK,IAAI,EAAE;YAMxB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBAClE,SAAS;aACV;iBAAM,IAAI,CAAC,GAAG,CAAC,EAAE;gBAChB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBACrB,CAAC,IAAI,CAAC,CAAC;aACR;SACF;KACF;AACH,CAAC;SASe,cAAc,CAAC,IAAY,EAAE,IAAY;IACvD,IAAI,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,IAAI,SAAS,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEvC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,SAAS,EAAE;QAM/C,IAAI,mBAAmB,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,C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AAW,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;aAChE;SACF;aAAM;YACL,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;SACzB;KACF;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW;IACnC,IAAI,GAAG,KAAK,WAAW,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;AACH;;;;;;;"} \ No newline at end of file +{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,CAAC,GAAa,EAAA;AAC7B,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;AACnC,QAAA,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AAClB,QAAA,IAAI,IAAI,KAAK,GAAG,EAAE;AAChB,YAAA,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACjB,CAAC,IAAI,CAAC,CAAC;SACR;AAAM,aAAA,IAAI,IAAI,KAAK,IAAI,EAAE;YAMxB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBAClE,SAAS;aACV;AAAM,iBAAA,IAAI,CAAC,GAAG,CAAC,EAAE;gBAChB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBACrB,CAAC,IAAI,CAAC,CAAC;aACR;SACF;KACF;AACH,CAAC;AASe,SAAA,cAAc,CAAC,IAAY,EAAE,IAAY,EAAA;IACvD,IAAI,SAAS,GAAG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;;;"} \ No newline at end of file diff --git a/dist/es2015/aurelia-path.js b/dist/es2015/aurelia-path.js index 8298b48..72d18ef 100644 --- a/dist/es2015/aurelia-path.js +++ b/dist/es2015/aurelia-path.js @@ -88,7 +88,8 @@ function join(path1, path2) { return scheme + urlPrefix + url3.join('/') + trailingSlash; } let encode = encodeURIComponent; -let encodeKey = k => encode(k).replace('%24', '$'); +const dollarSignRegex = /%24/g; +let encodeKey = k => encode(k).replace(dollarSignRegex, '$'); function buildParam(key, value, traditional) { let result = []; if (value === null || value === undefined) { diff --git a/dist/es2015/aurelia-path.js.map b/dist/es2015/aurelia-path.js.map index 1c80096..e73656e 100644 --- a/dist/es2015/aurelia-path.js.map +++ b/dist/es2015/aurelia-path.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,SAAS,QAAQ,CAAC,GAAa;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACnC,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,IAAI,KAAK,GAAG,EAAE;YAChB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACjB,CAAC,IAAI,CAAC,CAAC;SACR;aAAM,IAAI,IAAI,KAAK,IAAI,EAAE;YAMxB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBAClE,SAAS;aACV;iBAAM,IAAI,CAAC,GAAG,CAAC,EAAE;gBAChB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBACrB,CAAC,IAAI,CAAC,CAAC;aACR;SACF;KACF;AACH,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AAG,CAAC,CAAC;SACjC;aAAM;YACL,aAAa,GAAG,CAAC,CAAC;SACnB;QAED,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;YACpB,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;YACvD,IAAI,aAAa,EAAE;gBACjB,iBAAiB,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;aAC7C;iBAAM;gBACL,gBAAgB,CAAC,GAAG,CAAC,CAAC;gBACtB,WAAW,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;aAChE;SACF;aAAM;YACL,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;SACzB;KACF;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW;IACnC,IAAI,GAAG,KAAK,WAAW,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;AACH;;;;"} \ No newline at end of file +{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,SAAS,QAAQ,CAAC,GAAa,EAAA;AAC7B,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;AACnC,QAAA,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AAClB,QAAA,IAAI,IAAI,KAAK,GAAG,EAAE;AAChB,YAAA,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACjB,CAAC,IAAI,CAAC,CAAC;SACR;AAAM,aAAA,IAAI,IAAI,KAAK,IAAI,EAAE;YAMxB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,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CAAC,CAAC;aAChE;SACF;aAAM;AACL,YAAA,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;SACzB;KACF;AACD,IAAA,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW,EAAA;AACnC,IAAA,IAAI,GAAG,KAAK,WAAW,EAAE;AACvB,QAAA,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;AACH;;;;"} \ No newline at end of file diff --git a/dist/native-modules/aurelia-path.js b/dist/native-modules/aurelia-path.js index 1f267a4..2c21d0b 100644 --- a/dist/native-modules/aurelia-path.js +++ b/dist/native-modules/aurelia-path.js @@ -88,7 +88,8 @@ function join(path1, path2) { return scheme + urlPrefix + url3.join('/') + trailingSlash; } var encode = encodeURIComponent; -var encodeKey = function (k) { return encode(k).replace('%24', '$'); }; +var dollarSignRegex = /%24/g; +var encodeKey = function (k) { return encode(k).replace(dollarSignRegex, '$'); }; function buildParam(key, value, traditional) { var result = []; if (value === null || value === undefined) { @@ -97,7 +98,7 @@ function buildParam(key, value, traditional) { if (Array.isArray(value)) { for (var i = 0, l = value.length; i < l; i++) { if (traditional) { - result.push(encodeKey(key) + "=" + encode(value[i])); + result.push("".concat(encodeKey(key), "=").concat(encode(value[i]))); } else { var arrayKey = key + '[' + (typeof value[i] === 'object' && value[i] !== null ? i : '') + ']'; @@ -111,7 +112,7 @@ function buildParam(key, value, traditional) { } } else { - result.push(encodeKey(key) + "=" + encode(value)); + result.push("".concat(encodeKey(key), "=").concat(encode(value))); } return result; } diff --git a/dist/native-modules/aurelia-path.js.map b/dist/native-modules/aurelia-path.js.map index 5341021..63f83e2 100644 --- a/dist/native-modules/aurelia-path.js.map +++ b/dist/native-modules/aurelia-path.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,SAAS,QAAQ,CAAC,GAAa;IAC7B,KAAK,IAAI,CAAC,GA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C,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAC7D,YAAA,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,YAAA,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;SACjC;aAAM;YACL,aAAa,GAAG,CAAC,CAAC;SACnB;AAED,QAAA,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;YACpB,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;YACvD,IAAI,aAAa,EAAE;AACjB,gBAAA,iBAAiB,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;aAC7C;iBAAM;gBACL,gBAAgB,CAAC,GAAG,CAAC,CAAC;AACtB,gBAAA,WAAW,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;aAChE;SACF;aAAM;AACL,YAAA,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;SACzB;KACF;AACD,IAAA,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW,EAAA;AACnC,IAAA,IAAI,GAAG,KAAK,WAAW,EAAE;AACvB,QAAA,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;AACH;;;;"} \ No newline at end of file diff --git a/dist/system/aurelia-path.js b/dist/system/aurelia-path.js index abd57ce..1a510f6 100644 --- a/dist/system/aurelia-path.js +++ b/dist/system/aurelia-path.js @@ -1,7 +1,7 @@ -System.register([], function (exports) { +System.register([], (function (exports) { 'use strict'; return { - execute: function () { + execute: (function () { exports({ buildQueryString: buildQueryString, @@ -100,7 +100,8 @@ System.register([], function (exports) { return scheme + urlPrefix + url3.join('/') + trailingSlash; } var encode = encodeURIComponent; - var encodeKey = function (k) { return encode(k).replace('%24', '$'); }; + var dollarSignRegex = /%24/g; + var encodeKey = function (k) { return encode(k).replace(dollarSignRegex, '$'); }; function buildParam(key, value, traditional) { var result = []; if (value === null || value === undefined) { @@ -109,7 +110,7 @@ System.register([], function (exports) { if (Array.isArray(value)) { for (var i = 0, l = value.length; i < l; i++) { if (traditional) { - result.push(encodeKey(key) + "=" + encode(value[i])); + result.push("".concat(encodeKey(key), "=").concat(encode(value[i]))); } else { var arrayKey = key + '[' + (typeof value[i] === 'object' && value[i] !== null ? i : '') + ']'; @@ -123,7 +124,7 @@ System.register([], function (exports) { } } else { - result.push(encodeKey(key) + "=" + encode(value)); + result.push("".concat(encodeKey(key), "=").concat(encode(value))); } return result; } @@ -212,7 +213,7 @@ System.register([], function (exports) { } } - } + }) }; -}); +})); //# sourceMappingURL=aurelia-path.js.map diff --git a/dist/system/aurelia-path.js.map b/dist/system/aurelia-path.js.map index cc42de4..bd15889 100644 --- a/dist/system/aurelia-path.js.map +++ b/dist/system/aurelia-path.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-path.js","sources":["../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;YAAA,SAAS,QAAQ,CAAC,GAAa;gBAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;oBACnC,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;oBAClB,IAAI,IAAI,KAAK,GAAG,EAAE;wBAChB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;wBACjB,CAAC,IAAI,CAAC,CAAC;qBACR;yBAAM,IAAI,IAAI,KAAK,IAAI,EAAE;wBAMxB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,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,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAC7D,YAAA,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC5C,YAAA,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;qBACjC;yBAAM;wBACL,aAAa,GAAG,CAAC,CAAC;qBACnB;YAED,QAAA,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;wBACpB,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;wBACvD,IAAI,aAAa,EAAE;YACjB,gBAAA,iBAAiB,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;yBAC7C;6BAAM;4BACL,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACtB,gBAAA,WAAW,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;yBAChE;qBACF;yBAAM;YACL,YAAA,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;qBACzB;iBACF;YACD,IAAA,OAAO,WAAW,CAAC;YACrB,CAAC;YAED,SAAS,gBAAgB,CAAC,GAAW,EAAA;YACnC,IAAA,IAAI,GAAG,KAAK,WAAW,EAAE;YACvB,QAAA,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;iBAClD;YACH;;;;;;;;"} \ No newline at end of file diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts index 77ccaa4..1555f0a 100644 --- a/dist/types/index.d.ts +++ b/dist/types/index.d.ts @@ -1,4 +1,31 @@ +/** +* Calculates a path relative to a file. +* +* @param name The relative path. +* @param file The file path. +* @return The calculated path. +*/ export declare function relativeToFile(name: string, file: string): string; +/** +* Joins two paths. +* +* @param path1 The first path. +* @param path2 The second path. +* @return The joined path. +*/ export declare function join(path1: string, path2: string): string; +/** +* Generate a query string from an object. +* +* @param params Object containing the keys and values to be used. +* @param traditional Boolean Use the old URI template standard (RFC6570) +* @returns The generated query string, excluding leading '?'. +*/ export declare function buildQueryString(params?: Object, traditional?: boolean): string; +/** +* Parse a query string. +* +* @param queryString The query string to parse. +* @returns Object with keys and values mapped from the query string. +*/ export declare function parseQueryString(queryString: string): Object; diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index d9c3956..5f7a636 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,4 +1,18 @@ -## 1.1.7 (2021-09-26) +# Changelog + +All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. + +## [1.1.8](https://github.com/aurelia/path/compare/1.1.7...1.1.8) (2024-08-11) + + +### Bug Fixes + +* update $ replace with global regexp ([#54](https://github.com/aurelia/path/issues/54)) ([919e134](https://github.com/aurelia/path/commit/919e13412722f6fb05e4d26254651495e41fa8e1)) + +## [1.1.7](https://github.com/aurelia/path/compare/1.1.6...1.1.7) (2021-09-26) + + +### Bug Fixes * fix: security issue gh closes #44 ([7c4e235](https://github.com/aurelia/path/commit/7c4e235)), closes [#44](https://github.com/aurelia/path/issues/44) * fix(security): prevent proto pollution in simple assignment ([d3bb6fa](https://github.com/aurelia/path/commit/d3bb6fa)) @@ -7,8 +21,6 @@ * chore(all): update build process, deps ([4aa9088](https://github.com/aurelia/path/commit/4aa9088)) * chore(ci): fix circleci yml ([a990648](https://github.com/aurelia/path/commit/a990648)) - - ## [1.1.6](https://github.com/aurelia/path/compare/1.1.2...1.1.6) (2019-10-15) diff --git a/doc/api.json b/doc/api.json index c067ea4..f831c6e 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1 +1 @@ -{"id":0,"name":"aurelia-path","kind":0,"kindString":"Project","flags":{},"originalName":"","children":[{"id":9,"name":"buildQueryString","kind":64,"kindString":"Function","flags":{},"sources":[{"fileName":"index.ts","line":161,"character":32}],"signatures":[{"id":10,"name":"buildQueryString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Generate a query string from an object.","returns":"The generated query string, excluding leading '?'.\n"},"parameters":[{"id":11,"name":"params","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Object containing the keys and values to be used."},"type":{"type":"reference","name":"Object"}},{"id":12,"name":"traditional","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Boolean Use the old URI template standard (RFC6570)"},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"string"}}]},{"id":5,"name":"join","kind":64,"kindString":"Function","flags":{},"sources":[{"fileName":"index.ts","line":56,"character":20}],"signatures":[{"id":6,"name":"join","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Joins two paths.","returns":"The joined path.\n"},"parameters":[{"id":7,"name":"path1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The first path."},"type":{"type":"intrinsic","name":"string"}},{"id":8,"name":"path2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The second path."},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"string"}}]},{"id":13,"name":"parseQueryString","kind":64,"kindString":"Function","flags":{},"sources":[{"fileName":"index.ts","line":230,"character":32}],"signatures":[{"id":14,"name":"parseQueryString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Parse a query string.","returns":"Object with keys and values mapped from the query string.\n"},"parameters":[{"id":15,"name":"queryString","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The query string to parse."},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","name":"Object"}}]},{"id":1,"name":"relativeToFile","kind":64,"kindString":"Function","flags":{},"sources":[{"fileName":"index.ts","line":30,"character":30}],"signatures":[{"id":2,"name":"relativeToFile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Calculates a path relative to a file.","returns":"The calculated path.\n"},"parameters":[{"id":3,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The relative path."},"type":{"type":"intrinsic","name":"string"}},{"id":4,"name":"file","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The file path."},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"string"}}]}],"groups":[{"title":"Functions","kind":64,"children":[9,5,13,1]}],"sources":[{"fileName":"index.ts","line":1,"character":0}]} \ No newline at end of file +{"id":0,"name":"aurelia-path","variant":"project","kind":1,"flags":{},"children":[{"id":9,"name":"buildQueryString","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"index.ts","line":162,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L162"}],"signatures":[{"id":10,"name":"buildQueryString","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Generate a query string from an object."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"The generated query string, excluding leading '?'."}]}]},"sources":[{"fileName":"index.ts","line":162,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L162"}],"parameters":[{"id":11,"name":"params","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Object containing the keys and values to be used."}]},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Object"},"name":"Object","package":"typescript"}},{"id":12,"name":"traditional","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Boolean Use the old URI template standard (RFC6570)"}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"string"}}]},{"id":5,"name":"join","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"index.ts","line":56,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L56"}],"signatures":[{"id":6,"name":"join","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Joins two paths."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"The joined path."}]}]},"sources":[{"fileName":"index.ts","line":56,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L56"}],"parameters":[{"id":7,"name":"path1","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The first path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":8,"name":"path2","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The second path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"string"}}]},{"id":13,"name":"parseQueryString","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"index.ts","line":231,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L231"}],"signatures":[{"id":14,"name":"parseQueryString","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse a query string."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"Object with keys and values mapped from the query string."}]}]},"sources":[{"fileName":"index.ts","line":231,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L231"}],"parameters":[{"id":15,"name":"queryString","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The query string to parse."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Object"},"name":"Object","package":"typescript"}}]},{"id":1,"name":"relativeToFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"index.ts","line":30,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L30"}],"signatures":[{"id":2,"name":"relativeToFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Calculates a path relative to a file."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"The calculated path."}]}]},"sources":[{"fileName":"index.ts","line":30,"character":16,"url":"https://github.com/aurelia/path/blob/919e13412722f6fb05e4d26254651495e41fa8e1/src/index.ts#L30"}],"parameters":[{"id":3,"name":"name","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The relative path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":4,"name":"file","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"string"}}]}],"groups":[{"title":"Functions","children":[9,5,13,1]}],"packageName":"aurelia-path","readme":[{"kind":"text","text":"# aurelia-path\n\n[![npm Version](https://img.shields.io/npm/v/aurelia-path.svg)](https://www.npmjs.com/package/aurelia-path)\n[![Discord Chat](https://img.shields.io/discord/448698263508615178.svg)](https://discord.gg/RBtyM6u)\n[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/aurelia/path)\n\nThis library is part of the [Aurelia](http://www.aurelia.io/) platform and contains utilities for path manipulation.\n\n> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Discord](https://discord.gg/RBtyM6u) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/hub.html).\n\n## Platform Support\n\nThis library can be used in the **browser** as well as on the **server**.\n\n## Building The Code\n\nTo build the code, follow these steps.\n\n1. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.\n2. From the project folder, execute the following command:\n\n "},{"kind":"code","text":"```shell\n npm ci\n ```"},{"kind":"text","text":"\n3. To build the code, you can now run:\n\n "},{"kind":"code","text":"```shell\n npm run build\n ```"},{"kind":"text","text":"\n5. You will find the compiled code in the "},{"kind":"code","text":"`dist`"},{"kind":"text","text":" folder, available in three module formats: AMD, CommonJS and ES6.\n\n## Running The Tests\n\nTo run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:\n\n1. You can now run the tests with this command:\n\n "},{"kind":"code","text":"```shell\n npm test\n ```"}],"symbolIdMap":{"0":{"sourceFileName":"src/index.ts","qualifiedName":""},"1":{"sourceFileName":"src/index.ts","qualifiedName":"relativeToFile"},"2":{"sourceFileName":"src/index.ts","qualifiedName":"relativeToFile"},"3":{"sourceFileName":"src/index.ts","qualifiedName":"name"},"4":{"sourceFileName":"src/index.ts","qualifiedName":"file"},"5":{"sourceFileName":"src/index.ts","qualifiedName":"join"},"6":{"sourceFileName":"src/index.ts","qualifiedName":"join"},"7":{"sourceFileName":"src/index.ts","qualifiedName":"path1"},"8":{"sourceFileName":"src/index.ts","qualifiedName":"path2"},"9":{"sourceFileName":"src/index.ts","qualifiedName":"buildQueryString"},"10":{"sourceFileName":"src/index.ts","qualifiedName":"buildQueryString"},"11":{"sourceFileName":"src/index.ts","qualifiedName":"params"},"12":{"sourceFileName":"src/index.ts","qualifiedName":"traditional"},"13":{"sourceFileName":"src/index.ts","qualifiedName":"parseQueryString"},"14":{"sourceFileName":"src/index.ts","qualifiedName":"parseQueryString"},"15":{"sourceFileName":"src/index.ts","qualifiedName":"queryString"}},"files":{"entries":{"1":"src/index.ts"},"reflections":{"1":0}}} diff --git a/package-lock.json b/package-lock.json index cc7daf2..55f2295 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aurelia-path", - "version": "1.1.7", + "version": "1.1.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aurelia-path", - "version": "1.1.7", + "version": "1.1.8", "license": "MIT", "devDependencies": { "@rollup/plugin-typescript": "11.1.6", diff --git a/package.json b/package.json index 36fda67..5868b87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-path", - "version": "1.1.7", + "version": "1.1.8", "description": "Utilities for path manipulation.", "keywords": [ "aurelia",