@vendure/asset-server-plugin 2.1.0-next.4 → 2.1.0-next.6

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.
@@ -31,7 +31,7 @@ import { AssetServerOptions } from './types';
31
31
  * };
32
32
  * ```
33
33
  *
34
- * The full configuration is documented at [AssetServerOptions]({{< relref "asset-server-options" >}})
34
+ * The full configuration is documented at [AssetServerOptions](/reference/core-plugins/asset-server-plugin/asset-server-options)
35
35
  *
36
36
  * ## Image transformation
37
37
  *
@@ -43,7 +43,7 @@ import { AssetServerOptions } from './types';
43
43
  *
44
44
  * ### Preview mode
45
45
  *
46
- * The `mode` parameter can be either `crop` or `resize`. See the [ImageTransformMode]({{< relref "image-transform-mode" >}}) docs for details.
46
+ * The `mode` parameter can be either `crop` or `resize`. See the [ImageTransformMode](/reference/core-plugins/asset-server-plugin/image-transform-mode) docs for details.
47
47
  *
48
48
  * ### Focal point
49
49
  *
@@ -78,7 +78,7 @@ import { AssetServerOptions } from './types';
78
78
  * ### Transform presets
79
79
  *
80
80
  * Presets can be defined which allow a single preset name to be used instead of specifying the width, height and mode. Presets are
81
- * configured via the AssetServerOptions [presets property]({{< relref "asset-server-options" >}}#presets).
81
+ * configured via the AssetServerOptions [presets property](/reference/core-plugins/asset-server-plugin/asset-server-options/#presets).
82
82
  *
83
83
  * For example, defining the following preset:
84
84
  *
package/lib/src/plugin.js CHANGED
@@ -55,7 +55,7 @@ const transform_image_1 = require("./transform-image");
55
55
  * };
56
56
  * ```
57
57
  *
58
- * The full configuration is documented at [AssetServerOptions]({{< relref "asset-server-options" >}})
58
+ * The full configuration is documented at [AssetServerOptions](/reference/core-plugins/asset-server-plugin/asset-server-options)
59
59
  *
60
60
  * ## Image transformation
61
61
  *
@@ -67,7 +67,7 @@ const transform_image_1 = require("./transform-image");
67
67
  *
68
68
  * ### Preview mode
69
69
  *
70
- * The `mode` parameter can be either `crop` or `resize`. See the [ImageTransformMode]({{< relref "image-transform-mode" >}}) docs for details.
70
+ * The `mode` parameter can be either `crop` or `resize`. See the [ImageTransformMode](/reference/core-plugins/asset-server-plugin/image-transform-mode) docs for details.
71
71
  *
72
72
  * ### Focal point
73
73
  *
@@ -102,7 +102,7 @@ const transform_image_1 = require("./transform-image");
102
102
  * ### Transform presets
103
103
  *
104
104
  * Presets can be defined which allow a single preset name to be used instead of specifying the width, height and mode. Presets are
105
- * configured via the AssetServerOptions [presets property]({{< relref "asset-server-options" >}}#presets).
105
+ * configured via the AssetServerOptions [presets property](/reference/core-plugins/asset-server-plugin/asset-server-options/#presets).
106
106
  *
107
107
  * For example, defining the following preset:
108
108
  *
@@ -49,11 +49,11 @@ export interface S3Config {
49
49
  * Before using this strategy, make sure you have the `@aws-sdk/client-s3` and `@aws-sdk/lib-storage` package installed:
50
50
  *
51
51
  * ```sh
52
- * npm install @aws-sdk/client-s3 @aws-sdk/lib-storage
52
+ * npm install \@aws-sdk/client-s3 \@aws-sdk/lib-storage
53
53
  * ```
54
54
  *
55
55
  * @example
56
- * ```TypeScript
56
+ * ```ts
57
57
  * import { AssetServerPlugin, configureS3AssetStorage } from '\@vendure/asset-server-plugin';
58
58
  * import { DefaultAssetNamingStrategy } from '\@vendure/core';
59
59
  * import { fromEnv } from '\@aws-sdk/credential-providers';
@@ -80,7 +80,7 @@ export interface S3Config {
80
80
  * Reference: [How to use AWS SDK for Javascript with MinIO Server](https://docs.min.io/docs/how-to-use-aws-sdk-for-javascript-with-minio-server.html)
81
81
  *
82
82
  * @example
83
- * ```TypeScript
83
+ * ```ts
84
84
  * import { AssetServerPlugin, configureS3AssetStorage } from '\@vendure/asset-server-plugin';
85
85
  * import { DefaultAssetNamingStrategy } from '\@vendure/core';
86
86
  *
@@ -44,11 +44,11 @@ const constants_1 = require("./constants");
44
44
  * Before using this strategy, make sure you have the `@aws-sdk/client-s3` and `@aws-sdk/lib-storage` package installed:
45
45
  *
46
46
  * ```sh
47
- * npm install @aws-sdk/client-s3 @aws-sdk/lib-storage
47
+ * npm install \@aws-sdk/client-s3 \@aws-sdk/lib-storage
48
48
  * ```
49
49
  *
50
50
  * @example
51
- * ```TypeScript
51
+ * ```ts
52
52
  * import { AssetServerPlugin, configureS3AssetStorage } from '\@vendure/asset-server-plugin';
53
53
  * import { DefaultAssetNamingStrategy } from '\@vendure/core';
54
54
  * import { fromEnv } from '\@aws-sdk/credential-providers';
@@ -75,7 +75,7 @@ const constants_1 = require("./constants");
75
75
  * Reference: [How to use AWS SDK for Javascript with MinIO Server](https://docs.min.io/docs/how-to-use-aws-sdk-for-javascript-with-minio-server.html)
76
76
  *
77
77
  * @example
78
- * ```TypeScript
78
+ * ```ts
79
79
  * import { AssetServerPlugin, configureS3AssetStorage } from '\@vendure/asset-server-plugin';
80
80
  * import { DefaultAssetNamingStrategy } from '\@vendure/core';
81
81
  *
@@ -74,7 +74,7 @@ interface SharpAssetPreviewConfig {
74
74
  * The settings for the outputs will default to Sharp's defaults (https://sharp.pixelplumbing.com/api-output).
75
75
  * However, it is possible to pass your own configurations to control the output of each format:
76
76
  *
77
- * ```TypeScript
77
+ * ```ts
78
78
  * AssetServerPlugin.init({
79
79
  * previewStrategy: new SharpAssetPreviewStrategy({
80
80
  * jpegOptions: { quality: 95 },
@@ -22,7 +22,7 @@ const constants_1 = require("./constants");
22
22
  * The settings for the outputs will default to Sharp's defaults (https://sharp.pixelplumbing.com/api-output).
23
23
  * However, it is possible to pass your own configurations to control the output of each format:
24
24
  *
25
- * ```TypeScript
25
+ * ```ts
26
26
  * AssetServerPlugin.init({
27
27
  * previewStrategy: new SharpAssetPreviewStrategy({
28
28
  * jpegOptions: { quality: 95 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/asset-server-plugin",
3
- "version": "2.1.0-next.4",
3
+ "version": "2.1.0-next.6",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -27,8 +27,8 @@
27
27
  "@types/fs-extra": "^11.0.1",
28
28
  "@types/node-fetch": "^2.5.8",
29
29
  "@types/sharp": "^0.30.4",
30
- "@vendure/common": "2.1.0-next.4",
31
- "@vendure/core": "2.1.0-next.4",
30
+ "@vendure/common": "2.1.0-next.6",
31
+ "@vendure/core": "2.1.0-next.6",
32
32
  "express": "^4.17.1",
33
33
  "node-fetch": "^2.6.7",
34
34
  "rimraf": "^3.0.2",
@@ -39,5 +39,5 @@
39
39
  "fs-extra": "^11.1.1",
40
40
  "sharp": "~0.32.5"
41
41
  },
42
- "gitHead": "10ba12c0a870f30bb083bffc142feb040f76db22"
42
+ "gitHead": "e81dcd69f73ea61731abf72068b8d576609b4b24"
43
43
  }