@socialtip/asset-proxy-url-generator 0.5.0 → 0.6.2
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/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export type {
|
|
1
|
+
import { type InfoOptions, type ParsedUrlInput } from "@socialtip/asset-proxy-url-parser";
|
|
2
|
+
export type { InfoOptions, ParsedUrlInput, } from "@socialtip/asset-proxy-url-parser";
|
|
3
3
|
/** Options for generating a URL, derived from the asset-proxy parsed URL schema. All fields except `sourceUrl` are optional. */
|
|
4
4
|
export type UrlGeneratorOptions = Partial<ParsedUrlInput> & {
|
|
5
5
|
sourceUrl: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { encryptSourceUrl,
|
|
1
|
+
import { encryptSourceUrl, SHORTHANDS, sign, } from "@socialtip/asset-proxy-url-parser";
|
|
2
2
|
/** Generates an asset-proxy-compatible URL path. */
|
|
3
3
|
export function generateUrl(options, config) {
|
|
4
4
|
const segments = serializeOptions(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socialtip/asset-proxy-url-generator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Generate asset-proxy-compatible URL paths with optional encryption and signing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "UNLICENSED",
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
|
-
"url": "https://github.com/SocialTip/asset-proxy.git",
|
|
34
|
+
"url": "git+https://github.com/SocialTip/asset-proxy.git",
|
|
35
35
|
"directory": "packages/url-generator"
|
|
36
36
|
}
|
|
37
|
-
}
|
|
37
|
+
}
|