Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare-workers-and-google-oauth

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflare-workers-and-google-oauth - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

dist/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc