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

magic-string

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-string - npm Package Compare versions

Comparing version 0.22.4 to 0.22.5

5

CHANGELOG.md
# magic-string changelog
## 0.22.5
* Add TypeScript interfaces used by rollup ([#131](https://github.com/Rich-Harris/magic-string/pull/131))
* Remove src directory from npm package
## 0.22.4

@@ -4,0 +9,0 @@

4

dist/magic-string.cjs.js

@@ -241,6 +241,6 @@ 'use strict';

var toString$1 = Object.prototype.toString;
var toString = Object.prototype.toString;
function isObject ( thing ) {
return toString$1.call( thing ) === '[object Object]';
return toString.call( thing ) === '[object Object]';
}

@@ -247,0 +247,0 @@

@@ -239,6 +239,6 @@ import { encode } from 'vlq';

var toString$1 = Object.prototype.toString;
var toString = Object.prototype.toString;
function isObject ( thing ) {
return toString$1.call( thing ) === '[object Object]';
return toString.call( thing ) === '[object Object]';
}

@@ -1295,3 +1295,4 @@

export { Bundle };export default MagicString$1;
export { Bundle };
export default MagicString$1;
//# sourceMappingURL=magic-string.es.js.map

@@ -243,6 +243,6 @@ (function (global, factory) {

var toString$1 = Object.prototype.toString;
var toString = Object.prototype.toString;
function isObject ( thing ) {
return toString$1.call( thing ) === '[object Object]';
return toString.call( thing ) === '[object Object]';
}

@@ -249,0 +249,0 @@

@@ -14,7 +14,8 @@ export interface BundleOptions {

export interface SourceMap {
version: string;
file: string;
sources: string[];
sourcesContent: string;
sourcesContent: string[];
names: string[];
mappings: string[];
mappings: string;

@@ -28,3 +29,3 @@ toString(): string;

addSource(source: MagicString | { filename?: string, content: MagicString }): Bundle;
append(str: string, options: BundleOptions): Bundle;
append(str: string, options?: BundleOptions): Bundle;
clone(): Bundle;

@@ -34,8 +35,9 @@ generateMap(options?: Partial<SourceMapOptions>): SourceMap;

indent(indentStr?: string): Bundle;
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
prepend(str: string): Bundle;
toString(): string;
trimLines(): string;
trim(charType: string): string;
trimStart(charType: string): Bundle;
trimEnd(charType: string): Bundle;
trimLines(): Bundle;
trim(charType?: string): Bundle;
trimStart(charType?: string): Bundle;
trimEnd(charType?: string): Bundle;
}

@@ -72,2 +74,3 @@

indent(indentStr?: string, options?: IndentOptions): MagicString;
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;

@@ -74,0 +77,0 @@ move(start: number, end: number, index: number): MagicString;

@@ -5,3 +5,3 @@ {

"author": "Rich Harris",
"version": "0.22.4",
"version": "0.22.5",
"repository": "https://github.com/rich-harris/magic-string",

@@ -14,19 +14,19 @@ "main": "dist/magic-string.cjs.js",

"dependencies": {
"vlq": "^0.2.1"
"vlq": "^0.2.2"
},
"devDependencies": {
"buble": "^0.14.0",
"buble": "^0.15.2",
"codecov.io": "^0.1.6",
"console-group": "^0.3.2",
"eslint": "^3.7.1",
"console-group": "^0.3.3",
"eslint": "^4.5.0",
"istanbul": "^0.4.5",
"mocha": "^3.1.0",
"remap-istanbul": "^0.6.4",
"resolve": "^1.1.7",
"rollup": "^0.36.1",
"rollup-plugin-buble": "^0.14.0",
"rollup-plugin-node-resolve": "^2.0.0",
"mocha": "^3.5.0",
"remap-istanbul": "^0.9.5",
"resolve": "^1.4.0",
"rollup": "^0.48.0",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.1.1",
"source-map": "^0.5.6",
"source-map-support": "^0.4.3"
"source-map-support": "^0.4.16"
},

@@ -42,20 +42,13 @@ "keywords": [

"test": "mocha",
"pretest": "npm run build:cjs",
"pretest-coverage": "npm run build:cjs",
"pretest": "npm run build",
"pretest-coverage": "npm run build",
"test-coverage": "rm -rf coverage/* && istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/*.js",
"posttest-coverage": "remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.lcov -t lcovonly -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped -t html -b dist",
"ci": "npm run test-coverage && codecov < coverage/coverage-remapped.lcov",
"build:cjs": "rollup -c",
"build:es": "rollup -c --environment ES",
"build:umd": "rollup -c --environment DEPS",
"build": " npm run build:cjs && npm run build:es && npm run build:umd",
"prepublish": "rm -rf dist && npm test && npm run build:es && npm run build:umd",
"build": "rollup -c",
"prepublish": "rm -rf dist && npm test",
"lint": "eslint src test",
"watch:cjs": "rollup -w -c",
"watch:es": "rollup -w -c --environment ES",
"watch:umd": "rollup -w -c --environment DEPS",
"watch": "npm run watch:es"
"watch": "rollup -cw"
},
"files": [
"src/*",
"dist/*",

@@ -62,0 +55,0 @@ "index.d.ts",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc