@pittica/drive-folder-qrcode 1.2.4 → 1.2.5

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.
@@ -153,7 +153,7 @@ var createFile = exports.createFile = /*#__PURE__*/function () {
153
153
  */
154
154
  var uploadFile = exports.uploadFile = /*#__PURE__*/function () {
155
155
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(folder, content, name, mimeType, credentials) {
156
- var client, file;
156
+ var client;
157
157
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
158
158
  while (1) switch (_context5.prev = _context5.next) {
159
159
  case 0:
@@ -218,9 +218,8 @@ var uploadFile = exports.uploadFile = /*#__PURE__*/function () {
218
218
  }, _callee4);
219
219
  })));
220
220
  case 5:
221
- file = _context5.sent;
222
- return _context5.abrupt("return", file);
223
- case 7:
221
+ return _context5.abrupt("return", _context5.sent);
222
+ case 6:
224
223
  case "end":
225
224
  return _context5.stop();
226
225
  }
@@ -44,10 +44,16 @@ var _default = exports["default"] = /*#__PURE__*/function () {
44
44
  folders = _context.sent;
45
45
  console.info("Processing \"".concat(drive, "\"..."));
46
46
  return _context.abrupt("return", folders.map(function (folder) {
47
- return {
48
- folder: folder,
49
- qr: (0, _image["default"])(folder, size, margin, logo, data ? (0, _logo.resize)(data, size) : null, colors, font)
50
- };
47
+ try {
48
+ var qr = (0, _image["default"])(folder, size, margin, logo, data ? (0, _logo.resize)(data, size) : null, colors, font);
49
+ console.info("Creating QR code for \"".concat(folder.name, "\"."));
50
+ return {
51
+ folder: folder,
52
+ qr: qr
53
+ };
54
+ } catch (_unused) {
55
+ console.error("Error creating QR code for \"".concat(folder.name, "\"."));
56
+ }
51
57
  }));
52
58
  case 9:
53
59
  case "end":
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pittica/drive-folder-qrcode",
3
3
  "private": false,
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "description": "Creates QR codes from Google Drive folder names.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {