spotify-web-api-ts-edge
Advanced tools
Comparing version 0.9.4 to 0.9.5
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encodeToBase64 = void 0; | ||
function encodeToBase64(str) { | ||
return Buffer.from(str).toString('base64'); | ||
function encodeToBase64(a) { | ||
var c, d, e, f, g, h, i, j, o, b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", k = 0, l = 0, m = "", n = []; | ||
if (!a) | ||
return a; | ||
do | ||
c = a.charCodeAt(k++), d = a.charCodeAt(k++), e = a.charCodeAt(k++), j = c << 16 | d << 8 | e, | ||
f = 63 & j >> 18, g = 63 & j >> 12, h = 63 & j >> 6, i = 63 & j, n[l++] = b.charAt(f) + b.charAt(g) + b.charAt(h) + b.charAt(i); | ||
while (k < a.length); | ||
return m = n.join(""), o = a.length % 3, (o ? m.slice(0, o - 3) : m) + "===".slice(o || 3); | ||
} | ||
exports.encodeToBase64 = encodeToBase64; | ||
//# sourceMappingURL=encodeToBase64.js.map |
@@ -1,4 +0,11 @@ | ||
export function encodeToBase64(str) { | ||
return Buffer.from(str).toString('base64'); | ||
export function encodeToBase64(a) { | ||
var c, d, e, f, g, h, i, j, o, b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", k = 0, l = 0, m = "", n = []; | ||
if (!a) | ||
return a; | ||
do | ||
c = a.charCodeAt(k++), d = a.charCodeAt(k++), e = a.charCodeAt(k++), j = c << 16 | d << 8 | e, | ||
f = 63 & j >> 18, g = 63 & j >> 12, h = 63 & j >> 6, i = 63 & j, n[l++] = b.charAt(f) + b.charAt(g) + b.charAt(h) + b.charAt(i); | ||
while (k < a.length); | ||
return m = n.join(""), o = a.length % 3, (o ? m.slice(0, o - 3) : m) + "===".slice(o || 3); | ||
} | ||
//# sourceMappingURL=encodeToBase64.js.map |
{ | ||
"name": "spotify-web-api-ts-edge", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "An isomorphic TypeScript wrapper for Spotify's Web API that can run on the edge", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
@@ -1,2 +0,2 @@ | ||
export declare function encodeToBase64(str: string): string; | ||
export declare function encodeToBase64(a: string): string; | ||
//# sourceMappingURL=encodeToBase64.d.ts.map |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
300136
2984
8