@dereekb/util 5.0.1 → 5.1.0
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 +9 -0
- package/package.json +1 -1
- package/src/lib/value/index.d.ts +1 -0
- package/src/lib/value/index.js +1 -0
- package/src/lib/value/index.js.map +1 -1
- package/src/lib/value/url.d.ts +7 -0
- package/src/lib/value/url.js +22 -0
- package/src/lib/value/url.js.map +1 -0
- package/test/CHANGELOG.md +4 -0
- package/test/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [5.1.0](https://github.com/dereekb/dbx-components/compare/v5.0.1-dev...v5.1.0) (2022-05-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added dbxFirebaseAppCheckHttpInterceptor ([96fb516](https://github.com/dereekb/dbx-components/commit/96fb5160a8131d4b13e434bcb3e93819122e1d6f))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
5
14
|
## [5.0.1](https://github.com/dereekb/dbx-components/compare/v5.0.0-dev...v5.0.1) (2022-05-26)
|
|
6
15
|
|
|
7
16
|
|
package/package.json
CHANGED
package/src/lib/value/index.d.ts
CHANGED
package/src/lib/value/index.js
CHANGED
|
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./equal"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./map"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./maybe"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./modifier"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./url"), exports);
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/value/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,kDAAwB;AACxB,gDAAsB;AACtB,kDAAwB;AACxB,qDAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/value/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,kDAAwB;AACxB,gDAAsB;AACtB,kDAAwB;AACxB,qDAA2B;AAC3B,gDAAsB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.urlWithoutParameters = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Removes any query parameters and hashbang parameters from the input url.
|
|
6
|
+
*
|
|
7
|
+
* @param url
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
function urlWithoutParameters(url) {
|
|
11
|
+
const queryOpenPosition = url.indexOf('?');
|
|
12
|
+
if (queryOpenPosition !== -1) {
|
|
13
|
+
url = url.substring(0, queryOpenPosition);
|
|
14
|
+
}
|
|
15
|
+
const hashOpenPosition = url.indexOf('#');
|
|
16
|
+
if (hashOpenPosition !== -1) {
|
|
17
|
+
url = url.substring(0, hashOpenPosition);
|
|
18
|
+
}
|
|
19
|
+
return url;
|
|
20
|
+
}
|
|
21
|
+
exports.urlWithoutParameters = urlWithoutParameters;
|
|
22
|
+
//# sourceMappingURL=url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/value/url.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,GAAW;IAC9C,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAE3C,IAAI,iBAAiB,KAAK,CAAC,CAAC,EAAE;QAC5B,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;KAC3C;IAED,MAAM,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAE1C,IAAI,gBAAgB,KAAK,CAAC,CAAC,EAAE;QAC3B,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;KAC1C;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAdD,oDAcC"}
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [5.1.0](https://github.com/dereekb/dbx-components/compare/v5.0.1-dev...v5.1.0) (2022-05-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [5.0.1](https://github.com/dereekb/dbx-components/compare/v5.0.0-dev...v5.0.1) (2022-05-26)
|
|
6
10
|
|
|
7
11
|
|
package/test/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/util/test",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"typings": "./src/index.d.ts",
|
|
6
6
|
"dependencies": {},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@dereekb/util": "5.0
|
|
8
|
+
"@dereekb/util": "5.1.0",
|
|
9
9
|
"make-error": "^1.3.0",
|
|
10
10
|
"extra-set": "^2.2.11",
|
|
11
11
|
"tslib": "^2.0.0"
|