@dereekb/util 5.0.1 → 5.2.1

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 CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [5.2.1](https://github.com/dereekb/dbx-components/compare/v5.2.0-dev...v5.2.1) (2022-05-29)
6
+
7
+
8
+
9
+ # [5.2.0](https://github.com/dereekb/dbx-components/compare/v5.1.0-dev...v5.2.0) (2022-05-29)
10
+
11
+
12
+
13
+ # [5.1.0](https://github.com/dereekb/dbx-components/compare/v5.0.1-dev...v5.1.0) (2022-05-27)
14
+
15
+
16
+ ### Features
17
+
18
+ * added dbxFirebaseAppCheckHttpInterceptor ([96fb516](https://github.com/dereekb/dbx-components/commit/96fb5160a8131d4b13e434bcb3e93819122e1d6f))
19
+
20
+
21
+
5
22
  ## [5.0.1](https://github.com/dereekb/dbx-components/compare/v5.0.0-dev...v5.0.1) (2022-05-26)
6
23
 
7
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "5.0.1",
3
+ "version": "5.2.1",
4
4
  "type": "commonjs",
5
5
  "exports": {
6
6
  ".": {
@@ -3,3 +3,4 @@ export * from './equal';
3
3
  export * from './map';
4
4
  export * from './maybe';
5
5
  export * from './modifier';
6
+ export * from './url';
@@ -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,7 @@
1
+ /**
2
+ * Removes any query parameters and hashbang parameters from the input url.
3
+ *
4
+ * @param url
5
+ * @returns
6
+ */
7
+ export declare function urlWithoutParameters(url: string): string;
@@ -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":";;;AAAA;;;;;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,18 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [5.2.1](https://github.com/dereekb/dbx-components/compare/v5.2.0-dev...v5.2.1) (2022-05-29)
6
+
7
+
8
+
9
+ # [5.2.0](https://github.com/dereekb/dbx-components/compare/v5.1.0-dev...v5.2.0) (2022-05-29)
10
+
11
+
12
+
13
+ # [5.1.0](https://github.com/dereekb/dbx-components/compare/v5.0.1-dev...v5.1.0) (2022-05-27)
14
+
15
+
16
+
5
17
  ## [5.0.1](https://github.com/dereekb/dbx-components/compare/v5.0.0-dev...v5.0.1) (2022-05-26)
6
18
 
7
19
 
package/test/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "5.0.1",
3
+ "version": "5.2.1",
4
4
  "main": "./src/index.js",
5
5
  "typings": "./src/index.d.ts",
6
6
  "dependencies": {},
7
7
  "peerDependencies": {
8
- "@dereekb/util": "5.0.1",
8
+ "@dereekb/util": "5.2.1",
9
9
  "make-error": "^1.3.0",
10
10
  "extra-set": "^2.2.11",
11
11
  "tslib": "^2.0.0"