@strapi/provider-upload-cloudinary 4.2.0-beta.1 → 4.2.0-beta.4

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.
Files changed (2) hide show
  1. package/README.md +8 -7
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -21,13 +21,13 @@ yarn add @strapi/provider-upload-cloudinary
21
21
  npm install @strapi/provider-upload-cloudinary --save
22
22
  ```
23
23
 
24
- ## Configurations
24
+ ## Configuration
25
25
 
26
- Your configuration is passed down to the cloudinary configuration. (e.g: `cloudinary.config(config)`). You can see the complete list of options [here](https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters)
26
+ - `provider` defines the name of the provider
27
+ - `providerOptions` is passed down during the construction of the provider. (ex: `cloudinary.config`). [Complete list of options](https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters)
28
+ - `actionOptions` is passed directly to each method respectively allowing for custom options. You can find the complete list of [upload/ uploadStream options](https://cloudinary.com/documentation/image_upload_api_reference#upload_optional_parameters) and [delete options](https://cloudinary.com/documentation/image_upload_api_reference#destroy_optional_parameters)
27
29
 
28
- `actionOptions` are passed directly to the upload and delete functions respectively allowing for custom options such as folder, type, etc. You can see the complete list of upload options [here](https://cloudinary.com/documentation/image_upload_api_reference#upload_optional_parameters) and delete options [here](https://cloudinary.com/documentation/image_upload_api_reference#destroy_optional_parameters)
29
-
30
- See the [using a provider](https://docs.strapi.io/developer-docs/latest/plugins/upload.html#using-a-provider) documentation for information on installing and using a provider. And see the [environment variables](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.html#environment-variables) for setting and using environment variables in your configs.
30
+ See the [documentation about using a provider](https://docs.strapi.io/developer-docs/latest/plugins/upload.html#using-a-provider) for information on installing and using a provider. To understand how environment variables are used in Strapi, please refer to the [documentation about environment variables](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.html#environment-variables).
31
31
 
32
32
  ### Provider Configuration
33
33
 
@@ -46,6 +46,7 @@ module.exports = ({ env }) => ({
46
46
  },
47
47
  actionOptions: {
48
48
  upload: {},
49
+ uploadStream: {},
49
50
  delete: {},
50
51
  },
51
52
  },
@@ -70,8 +71,8 @@ module.exports = [
70
71
  useDefaults: true,
71
72
  directives: {
72
73
  'connect-src': ["'self'", 'https:'],
73
- 'img-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
74
- 'media-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
74
+ 'img-src': ["'self'", 'data:', 'blob:', 'dl.airtable.com', 'res.cloudinary.com'],
75
+ 'media-src': ["'self'", 'data:', 'blob:', 'dl.airtable.com', 'res.cloudinary.com'],
75
76
  upgradeInsecureRequests: null,
76
77
  },
77
78
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/provider-upload-cloudinary",
3
- "version": "4.2.0-beta.1",
3
+ "version": "4.2.0-beta.4",
4
4
  "description": "Cloudinary provider for strapi upload",
5
5
  "keywords": [
6
6
  "upload",
@@ -36,13 +36,13 @@
36
36
  "test": "echo \"no tests yet\""
37
37
  },
38
38
  "dependencies": {
39
- "@strapi/utils": "4.2.0-beta.1",
39
+ "@strapi/utils": "4.2.0-beta.4",
40
40
  "cloudinary": "^1.25.1",
41
41
  "into-stream": "^5.1.0"
42
42
  },
43
43
  "engines": {
44
- "node": ">=12.22.0 <=16.x.x",
44
+ "node": ">=14.19.1 <=16.x.x",
45
45
  "npm": ">=6.0.0"
46
46
  },
47
- "gitHead": "4fa2804f35e15ed72dfd309fb5bb1c4dba18932f"
47
+ "gitHead": "5caff35a30e33b7a660eb946299f9e3d2d35b2b8"
48
48
  }