Socket
Socket
Sign inDemoInstall

magic-string

Package Overview
Dependencies
1
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.30.5 to 0.30.6

4

dist/magic-string.cjs.js

@@ -189,4 +189,4 @@ 'use strict';

function getBtoa() {
if (typeof window !== 'undefined' && typeof window.btoa === 'function') {
return (str) => window.btoa(unescape(encodeURIComponent(str)));
if (typeof globalThis !== 'undefined' && typeof globalThis.btoa === 'function') {
return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
} else if (typeof Buffer === 'function') {

@@ -193,0 +193,0 @@ return (str) => Buffer.from(str, 'utf-8').toString('base64');

@@ -279,4 +279,4 @@ (function (global, factory) {

function getBtoa() {
if (typeof window !== 'undefined' && typeof window.btoa === 'function') {
return (str) => window.btoa(unescape(encodeURIComponent(str)));
if (typeof globalThis !== 'undefined' && typeof globalThis.btoa === 'function') {
return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
} else if (typeof Buffer === 'function') {

@@ -283,0 +283,0 @@ return (str) => Buffer.from(str, 'utf-8').toString('base64');

{
"name": "magic-string",
"version": "0.30.5",
"version": "0.30.6",
"description": "Modify strings, generate sourcemaps",

@@ -45,12 +45,12 @@ "keywords": [

"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.0",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"benchmark": "^2.1.4",
"bumpp": "^9.2.0",
"bumpp": "^9.3.0",
"conventional-changelog-cli": "^3.0.0",
"eslint": "^8.47.0",
"eslint": "^8.56.0",
"mocha": "^10.2.0",
"prettier": "^3.0.2",
"publint": "^0.2.1",
"rollup": "^3.28.0",
"prettier": "^3.2.4",
"publint": "^0.2.7",
"rollup": "^4.9.6",
"source-map-js": "^1.0.2",

@@ -57,0 +57,0 @@ "source-map-support": "^0.5.21"

# magic-string
<a href="https://travis-ci.org/Rich-Harris/magic-string">
<img src="http://img.shields.io/travis/Rich-Harris/magic-string.svg"
<a href="https://github.com/Rich-Harris/magic-string/actions/workflows/test.yml">
<img src="https://img.shields.io/github/actions/workflow/status/Rich-Harris/magic-string/test.yml"
alt="build status">

@@ -6,0 +6,0 @@ </a>

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc