@capgo/capacitor-downloader 7.0.11 → 7.0.18

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.
@@ -79,7 +79,7 @@ public class CapacitorDownloaderPlugin extends Plugin {
79
79
 
80
80
  JSObject headers = call.getObject("headers");
81
81
  if (headers != null) {
82
- for (Iterator<String> it = headers.keys(); it.hasNext();) {
82
+ for (Iterator<String> it = headers.keys(); it.hasNext(); ) {
83
83
  String key = it.next();
84
84
  request.addRequestHeader(key, headers.getString(key));
85
85
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorDownloader = registerPlugin('CapacitorDownloader', {\n web: () => import('./web').then((m) => new m.CapacitorDownloaderWeb()),\n});\nexport * from './definitions';\nexport { CapacitorDownloader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorDownloaderWeb extends WebPlugin {\n async download(options) {\n console.log('DOWNLOAD', options);\n throw new Error('Method not implemented.');\n }\n async pause(id) {\n console.log('PAUSE', id);\n throw new Error('Method not implemented.');\n }\n async resume(id) {\n console.log('RESUME', id);\n throw new Error('Method not implemented.');\n }\n async stop(id) {\n console.log('STOP', id);\n throw new Error('Method not implemented.');\n }\n async checkStatus(id) {\n console.log('CHECK STATUS', id);\n throw new Error('Method not implemented.');\n }\n async getFileInfo(path) {\n console.log('GET FILE INFO', path);\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;AAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;AAC1E,CAAC;;ACFM,MAAM,sBAAsB,SAASC,cAAS,CAAC;AACtD,IAAI,MAAM,QAAQ,CAAC,OAAO,EAAE;AAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC;AACxC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD;AACA,IAAI,MAAM,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC;AAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD;AACA,IAAI,MAAM,MAAM,CAAC,EAAE,EAAE;AACrB,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;AACjC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD;AACA,IAAI,MAAM,IAAI,CAAC,EAAE,EAAE;AACnB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;AAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD;AACA,IAAI,MAAM,WAAW,CAAC,EAAE,EAAE;AAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC;AACvC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD;AACA,IAAI,MAAM,WAAW,CAAC,IAAI,EAAE;AAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC;AAC1C,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD;AACA;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorDownloader = registerPlugin('CapacitorDownloader', {\n web: () => import('./web').then((m) => new m.CapacitorDownloaderWeb()),\n});\nexport * from './definitions';\nexport { CapacitorDownloader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorDownloaderWeb extends WebPlugin {\n async download(options) {\n console.log('DOWNLOAD', options);\n throw new Error('Method not implemented.');\n }\n async pause(id) {\n console.log('PAUSE', id);\n throw new Error('Method not implemented.');\n }\n async resume(id) {\n console.log('RESUME', id);\n throw new Error('Method not implemented.');\n }\n async stop(id) {\n console.log('STOP', id);\n throw new Error('Method not implemented.');\n }\n async checkStatus(id) {\n console.log('CHECK STATUS', id);\n throw new Error('Method not implemented.');\n }\n async getFileInfo(path) {\n console.log('GET FILE INFO', path);\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;AAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;AAC1E,CAAC;;ACFM,MAAM,sBAAsB,SAASC,cAAS,CAAC;AACtD,IAAI,MAAM,QAAQ,CAAC,OAAO,EAAE;AAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC;AACxC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC;AAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,MAAM,CAAC,EAAE,EAAE;AACrB,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;AACjC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,EAAE,EAAE;AACnB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;AAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,WAAW,CAAC,EAAE,EAAE;AAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC;AACvC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,WAAW,CAAC,IAAI,EAAE;AAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC;AAC1C,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorDownloader = registerPlugin('CapacitorDownloader', {\n web: () => import('./web').then((m) => new m.CapacitorDownloaderWeb()),\n});\nexport * from './definitions';\nexport { CapacitorDownloader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorDownloaderWeb extends WebPlugin {\n async download(options) {\n console.log('DOWNLOAD', options);\n throw new Error('Method not implemented.');\n }\n async pause(id) {\n console.log('PAUSE', id);\n throw new Error('Method not implemented.');\n }\n async resume(id) {\n console.log('RESUME', id);\n throw new Error('Method not implemented.');\n }\n async stop(id) {\n console.log('STOP', id);\n throw new Error('Method not implemented.');\n }\n async checkStatus(id) {\n console.log('CHECK STATUS', id);\n throw new Error('Method not implemented.');\n }\n async getFileInfo(path) {\n console.log('GET FILE INFO', path);\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;IAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;IAC1E,CAAC;;ICFM,MAAM,sBAAsB,SAASC,cAAS,CAAC;IACtD,IAAI,MAAM,QAAQ,CAAC,OAAO,EAAE;IAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC;IACxC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,MAAM,KAAK,CAAC,EAAE,EAAE;IACpB,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC;IAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,MAAM,MAAM,CAAC,EAAE,EAAE;IACrB,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;IACjC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,MAAM,IAAI,CAAC,EAAE,EAAE;IACnB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;IAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,MAAM,WAAW,CAAC,EAAE,EAAE;IAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC;IACvC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA,IAAI,MAAM,WAAW,CAAC,IAAI,EAAE;IAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC;IAC1C,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD;IACA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorDownloader = registerPlugin('CapacitorDownloader', {\n web: () => import('./web').then((m) => new m.CapacitorDownloaderWeb()),\n});\nexport * from './definitions';\nexport { CapacitorDownloader };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorDownloaderWeb extends WebPlugin {\n async download(options) {\n console.log('DOWNLOAD', options);\n throw new Error('Method not implemented.');\n }\n async pause(id) {\n console.log('PAUSE', id);\n throw new Error('Method not implemented.');\n }\n async resume(id) {\n console.log('RESUME', id);\n throw new Error('Method not implemented.');\n }\n async stop(id) {\n console.log('STOP', id);\n throw new Error('Method not implemented.');\n }\n async checkStatus(id) {\n console.log('CHECK STATUS', id);\n throw new Error('Method not implemented.');\n }\n async getFileInfo(path) {\n console.log('GET FILE INFO', path);\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;IAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;IAC1E,CAAC;;ICFM,MAAM,sBAAsB,SAASC,cAAS,CAAC;IACtD,IAAI,MAAM,QAAQ,CAAC,OAAO,EAAE;IAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC;IACxC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ,IAAI,MAAM,KAAK,CAAC,EAAE,EAAE;IACpB,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC;IAChC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ,IAAI,MAAM,MAAM,CAAC,EAAE,EAAE;IACrB,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;IACjC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,EAAE,EAAE;IACnB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;IAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ,IAAI,MAAM,WAAW,CAAC,EAAE,EAAE;IAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC;IACvC,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ,IAAI,MAAM,WAAW,CAAC,IAAI,EAAE;IAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC;IAC1C,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-downloader",
3
- "version": "7.0.11",
3
+ "version": "7.0.18",
4
4
  "description": "Download file in background or foreground",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",