cloudflare-workers-and-google-oauth
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -12,3 +12,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("./constants"); | ||
const PEM_HEADER = '-----BEGIN PRIVATE KEY-----'; | ||
const PEM_FOOTER = '-----END PRIVATE KEY-----'; | ||
// Inspiration: https://gist.github.com/markelliot/6627143be1fc8209c9662c504d0ff205 | ||
// GoogleOAuth encapsulates the logic required to retrieve an access token | ||
@@ -38,4 +40,4 @@ // for the OAuth flow. | ||
const plainKey = signingKey | ||
.replace(constants_1.PEM_HEADER, '') | ||
.replace(constants_1.PEM_FOOTER, '') | ||
.replace(PEM_HEADER, '') | ||
.replace(PEM_FOOTER, '') | ||
.replace(/(\r\n|\n|\r)/gm, ''); | ||
@@ -42,0 +44,0 @@ const binaryKey = this.str2ab(atob(plainKey)); |
{ | ||
"name": "cloudflare-workers-and-google-oauth", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Enables easier interfacing with GCS OAuth API for use in Cloudflare Workers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
5283
93