@creately/clipboard
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -59,14 +59,19 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
var _a; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
_a.trys.push([0, , 2, 3]); | ||
_b.trys.push([0, 2, 3, 4]); | ||
return [4 /*yield*/, clipboardpoly.writeText(data)]; | ||
case 1: | ||
_a.sent(); | ||
return [3 /*break*/, 3]; | ||
_b.sent(); | ||
return [3 /*break*/, 4]; | ||
case 2: | ||
_a = _b.sent(); | ||
console.log('System clipboard is not supported.'); | ||
return [3 /*break*/, 4]; | ||
case 3: | ||
this.storeToLocalClipboard(data); | ||
return [7 /*endfinally*/]; | ||
case 3: return [2 /*return*/]; | ||
case 4: return [2 /*return*/]; | ||
} | ||
@@ -73,0 +78,0 @@ }); |
{ | ||
"name": "@creately/clipboard", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Clipboard Service which uses system clipboard as primary and local storage as fallback.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
10491
168