@fibery/url-utils 2.2.4 → 2.2.5
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/index.ts +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ export const appendQueryFlag = (url: string, key: string) => {
|
|
|
8
8
|
return [`${location}${prefix}${key}`, ...hash].join("#");
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
export {makePath} from "./make-path";
|
|
12
|
+
|
|
11
13
|
export const appendQueryParameter = (url: string, key: string, value: string | null) => {
|
|
12
14
|
if (!value) {
|
|
13
15
|
return url;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const appendQueryFlag: (url: string, key: string) => string;
|
|
2
|
+
export { makePath } from "./make-path";
|
|
2
3
|
export declare const appendQueryParameter: (url: string, key: string, value: string | null) => string;
|
|
3
4
|
export declare const getFlagValue: (flag: string) => string | null;
|
|
4
5
|
export declare const getSharingKey: () => string | null;
|
|
@@ -33,4 +34,3 @@ export declare const createPureFiberyEntityUrlMatcher: ({ ownHost }: {
|
|
|
33
34
|
};
|
|
34
35
|
context?: Context;
|
|
35
36
|
};
|
|
36
|
-
export {};
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createPureFiberyEntityUrlMatcher = exports.getRelativeUrlFromAbsolute = exports.isPublicUrlInPrivateMode = exports.isRelativeUrl = exports.isPublicAccessMode = exports.isPublicForm = exports.isPublicSpaceMode = exports.isSharingMode = exports.getRefURL = exports.signedFileUrl = exports.appendIsPublicParam = exports.appendSharingKey = exports.getSharingKey = exports.getFlagValue = exports.appendQueryParameter = exports.appendQueryFlag = void 0;
|
|
3
|
+
exports.createPureFiberyEntityUrlMatcher = exports.getRelativeUrlFromAbsolute = exports.isPublicUrlInPrivateMode = exports.isRelativeUrl = exports.isPublicAccessMode = exports.isPublicForm = exports.isPublicSpaceMode = exports.isSharingMode = exports.getRefURL = exports.signedFileUrl = exports.appendIsPublicParam = exports.appendSharingKey = exports.getSharingKey = exports.getFlagValue = exports.appendQueryParameter = exports.makePath = exports.appendQueryFlag = void 0;
|
|
4
4
|
const url_constants_1 = require("./url-constants");
|
|
5
5
|
const parse_page_location_1 = require("./parse-page-location");
|
|
6
6
|
const locator_utils_1 = require("./locator-utils");
|
|
@@ -10,6 +10,8 @@ const appendQueryFlag = (url, key) => {
|
|
|
10
10
|
return [`${location}${prefix}${key}`, ...hash].join("#");
|
|
11
11
|
};
|
|
12
12
|
exports.appendQueryFlag = appendQueryFlag;
|
|
13
|
+
var make_path_1 = require("./make-path");
|
|
14
|
+
Object.defineProperty(exports, "makePath", { enumerable: true, get: function () { return make_path_1.makePath; } });
|
|
13
15
|
const appendQueryParameter = (url, key, value) => {
|
|
14
16
|
if (!value) {
|
|
15
17
|
return url;
|