sanity-plugin-mux-input
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -36,7 +36,7 @@ "use strict"; | ||
cache.secrets = { | ||
token: secrets.token || null, | ||
secretKey: secrets.secretKey || null, | ||
enableSignedUrls: secrets.enableSignedUrls || false, | ||
signingKeyId: secrets.signingKeyId || null, | ||
signingKeyPrivate: secrets.signingKeyPrivate || null | ||
token: (secrets === null || secrets === void 0 ? void 0 : secrets.token) || null, | ||
secretKey: (secrets === null || secrets === void 0 ? void 0 : secrets.secretKey) || null, | ||
enableSignedUrls: (secrets === null || secrets === void 0 ? void 0 : secrets.enableSignedUrls) || false, | ||
signingKeyId: (secrets === null || secrets === void 0 ? void 0 : secrets.signingKeyId) || null, | ||
signingKeyPrivate: (secrets === null || secrets === void 0 ? void 0 : secrets.signingKeyPrivate) || null | ||
}; | ||
@@ -43,0 +43,0 @@ return cache; |
@@ -112,6 +112,2 @@ "use strict"; | ||
}; | ||
}).catch(error => { | ||
this.setState({ | ||
error | ||
}); | ||
}); | ||
@@ -407,3 +403,5 @@ } | ||
}); | ||
}); | ||
}).catch(error => this.setState({ | ||
error | ||
})); | ||
this.setupButton = /*#__PURE__*/_react.default.createRef(); | ||
@@ -410,0 +408,0 @@ this.pollInterval = null; |
@@ -137,7 +137,15 @@ "use strict"; | ||
if (!hasValidSigningKeys && enableSignedUrls) { | ||
var _yield$createSigningK = yield (0, _secrets.createSigningKeys)(), | ||
data = _yield$createSigningK.data; | ||
try { | ||
var _yield$createSigningK = yield (0, _secrets.createSigningKeys)(), | ||
data = _yield$createSigningK.data; | ||
signingKeyId = data.id; | ||
signingKeyPrivate = data.private_key; | ||
signingKeyId = data.id; | ||
signingKeyPrivate = data.private_key; | ||
} catch (_ref2) { | ||
var message = _ref2.message; | ||
_this.setState({ | ||
error: message | ||
}); | ||
} | ||
} | ||
@@ -144,0 +152,0 @@ |
{ | ||
"name": "sanity-plugin-mux-input", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "An input component that integrates Sanity Studio with MUX.com video encoding/hosting service.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
286279
2749
0