@adminforth/upload 2.1.1 → 2.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.
@@ -15,8 +15,6 @@ steps:
15
15
  from_secret: VAULT_TOKEN
16
16
  commands:
17
17
  - infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
- secrets:
19
- - VAULT_TOKEN
20
18
 
21
19
  release:
22
20
  image: node:20
package/build.log CHANGED
@@ -11,5 +11,5 @@ custom/preview.vue
11
11
  custom/tsconfig.json
12
12
  custom/uploader.vue
13
13
 
14
- sent 46,106 bytes received 134 bytes 92,480.00 bytes/sec
15
- total size is 45,617 speedup is 0.99
14
+ sent 46,119 bytes received 134 bytes 92,506.00 bytes/sec
15
+ total size is 45,637 speedup is 0.99
@@ -78,6 +78,7 @@ onMounted(async () => {
78
78
  try {
79
79
  const response = await fetch(url.value, {
80
80
  method: 'HEAD',
81
+ mode: 'cors',
81
82
  });
82
83
  const ct = response.headers.get('Content-Type');
83
84
  if (ct) {
@@ -78,6 +78,7 @@ onMounted(async () => {
78
78
  try {
79
79
  const response = await fetch(url.value, {
80
80
  method: 'HEAD',
81
+ mode: 'cors',
81
82
  });
82
83
  const ct = response.headers.get('Content-Type');
83
84
  if (ct) {
package/dist/index.js CHANGED
@@ -271,8 +271,10 @@ export default class UploadPlugin extends AdminForthPlugin {
271
271
  else {
272
272
  previewUrl = yield this.options.storageAdapter.getDownloadUrl(filePath, 1800);
273
273
  }
274
+ const tagline = `${ADMINFORTH_NOT_YET_USED_TAG}=true`;
274
275
  return {
275
276
  uploadUrl,
277
+ tagline,
276
278
  filePath,
277
279
  uploadExtraParams,
278
280
  previewUrl,
package/index.ts CHANGED
@@ -307,9 +307,11 @@ export default class UploadPlugin extends AdminForthPlugin {
307
307
  } else {
308
308
  previewUrl = await this.options.storageAdapter.getDownloadUrl(filePath, 1800);
309
309
  }
310
+ const tagline = `${ADMINFORTH_NOT_YET_USED_TAG}=true`;
310
311
 
311
312
  return {
312
313
  uploadUrl,
314
+ tagline,
313
315
  filePath,
314
316
  uploadExtraParams,
315
317
  previewUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.1.1",
3
+ "version": "2.2.1",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",