Socket
Socket
Sign inDemoInstall

tspoon

Package Overview
Dependencies
Maintainers
9
Versions
410
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tspoon - npm Package Compare versions

Comparing version 1.0.79 to 1.0.80

9

dist/src/mutable-source-code.js

@@ -31,3 +31,8 @@ "use strict";

ReplaceAction.prototype.execute = function (ast, magicString) {
magicString.overwrite(this.start, this.end, this.str);
if (this.start === this.end) {
magicString.insertLeft(this.start, this.str);
}
else {
magicString.overwrite(this.start, this.end, this.str);
}
var textSpan = ts.createTextSpanFromBounds(this.start, this.end);

@@ -51,3 +56,3 @@ var textChangeRange = ts.createTextChangeRange(textSpan, this.str.length);

InsertAction.prototype.execute = function (ast, magicString) {
magicString.insert(this.start, this.str);
magicString.insertLeft(this.start, this.str);
var textSpan = ts.createTextSpanFromBounds(this.start, this.start);

@@ -54,0 +59,0 @@ var textChangeRange = ts.createTextChangeRange(textSpan, this.str.length);

{
"private": false,
"name": "tspoon",
"version": "1.0.79",
"version": "1.0.80",
"description": "see README.md",

@@ -47,3 +47,3 @@ "main": "./dist/src/index.js",

"convert-source-map": "1.2.0",
"event-stream": "3.3.2",
"event-stream": "3.3.3",
"github-markdown": "2.2.0",

@@ -55,3 +55,3 @@ "gulp": "3.9.1",

"json-loader": "0.5.4",
"karma": "0.13.22",
"karma": "1.0.0",
"karma-chrome-launcher": "1.0.1",

@@ -66,3 +66,3 @@ "karma-mocha": "1.0.1",

"typedoc": "0.3.12",
"typings": "1.0.4",
"typings": "1.3.0",
"webpack": "1.13.1",

@@ -73,3 +73,3 @@ "webpack-dev-server": "1.14.1"

"lodash": "4.13.1",
"magic-string": "0.10.2",
"magic-string": "0.15.2",
"source-map": "0.5.6",

@@ -76,0 +76,0 @@ "typescript": "1.8.10"

@@ -25,3 +25,7 @@ import ts = require('typescript');

execute(ast:ts.SourceFile, magicString:MagicString):ts.SourceFile {
magicString.overwrite(this.start, this.end, this.str);
if (this.start === this.end) {
magicString.insertLeft(this.start, this.str);
} else {
magicString.overwrite(this.start, this.end, this.str);
}
const textSpan:ts.TextSpan = ts.createTextSpanFromBounds(this.start, this.end);

@@ -43,3 +47,3 @@ const textChangeRange:ts.TextChangeRange = ts.createTextChangeRange(textSpan, this.str.length);

execute(ast:ts.SourceFile, magicString:MagicString):ts.SourceFile {
magicString.insert(this.start, this.str);
magicString.insertLeft(this.start, this.str);
const textSpan:ts.TextSpan = ts.createTextSpanFromBounds(this.start, this.start);

@@ -46,0 +50,0 @@ const textChangeRange:ts.TextChangeRange = ts.createTextChangeRange(textSpan, this.str.length);

{
"compilerOptions": {
"declaration": false,
"module": "commonjs",
"sourceMap": true,
"target": "ES5",
"outDir": "dist"
"declaration": false,
"module": "commonjs",
"sourceMap": true,
"target": "ES5",
"outDir": "dist"
},
"exclude": [
"typings",
"node_modules",
"dist",
"example-poc",
"doc"
"typings",
"node_modules",
"dist",
"example-poc",
"doc"
]
}

@@ -6,9 +6,11 @@ {

"globalDependencies": {
"chai": "registry:dt/chai#3.4.0+20160317120654",
"magic-string": "github:wix/DefinitelyTyped/magic-string/magic-string.d.ts#01f3021243ffa85364ef970ae5e0298abdb0c986",
"mocha": "registry:dt/mocha#2.2.5+20160317120654",
"magic-string": "github:wix/DefinitelyTyped/magic-string/magic-string.d.ts#2c8b6434c131f585ca926a31d8e7b1db85c4b24b",
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
"source-map": "github:wix/DefinitelyTyped/source-map/source-map.d.ts#abeba0372252f463881d14c1973262e50f2dcca0",
"vinyl": "registry:dt/vinyl#1.1.0+20160316155526"
},
"globalDevDependencies": {
"chai": "registry:dt/chai#3.4.0+20160601211834",
"mocha": "registry:dt/mocha#2.2.5+20160619032855"
}
}
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/chai/chai.d.ts
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7273c57f5b35de28b77649d9160f557906a95c68/chai/chai.d.ts
declare namespace Chai {

@@ -372,3 +372,16 @@

export interface Config {
/**
* Default: false
*/
includeStack: boolean;
/**
* Default: true
*/
showDiff: boolean;
/**
* Default: 40
*/
truncateThreshold: number;
}

@@ -375,0 +388,0 @@

{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/chai/chai.d.ts",
"raw": "registry:dt/chai#3.4.0+20160317120654",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/chai/chai.d.ts"
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7273c57f5b35de28b77649d9160f557906a95c68/chai/chai.d.ts",
"raw": "registry:dt/chai#3.4.0+20160601211834",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7273c57f5b35de28b77649d9160f557906a95c68/chai/chai.d.ts"
}
}
// Generated by typings
// Source: https://raw.githubusercontent.com/wix/DefinitelyTyped/01f3021243ffa85364ef970ae5e0298abdb0c986/magic-string/magic-string.d.ts
// Source: https://raw.githubusercontent.com/wix/DefinitelyTyped/2c8b6434c131f585ca926a31d8e7b1db85c4b24b/magic-string/magic-string.d.ts
declare module 'magic-string' {

@@ -33,3 +33,3 @@

constructor(string: string, options?: MagicStringOptions);
addSourcemapLocation(char: number): void;
addSourcemapLocation(index: number): void;
append(content: string): MagicString;

@@ -39,8 +39,10 @@ clone(): MagicString;

getIndentString(): string;
indent(indentStr: string, options?: IndentOptions): MagicString;
insert(index: number, content: string ): MagicString;
locate(index: number ): number;
indent(prefix: string, options?: IndentOptions): MagicString;
insertLeft(index: number, content: string): MagicString;
insertRight(index: number, content: string): MagicString;
locate(index: number): number;
locateOrigin(index: number ): number;
overwrite(start: number, end: number, content: string ): MagicString;
prepend(content: string ): MagicString;
move(start: number, end: number, newIndex: number): MagicString;
overwrite(start: number, end: number, content?: string, storeName?: boolean): MagicString;
prepend(content: string): MagicString;
remove(start: number, end: number): MagicString;

@@ -47,0 +49,0 @@ slice(start: number, end: number): MagicString;

{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/wix/DefinitelyTyped/01f3021243ffa85364ef970ae5e0298abdb0c986/magic-string/magic-string.d.ts",
"raw": "github:wix/DefinitelyTyped/magic-string/magic-string.d.ts#01f3021243ffa85364ef970ae5e0298abdb0c986",
"typings": "https://raw.githubusercontent.com/wix/DefinitelyTyped/01f3021243ffa85364ef970ae5e0298abdb0c986/magic-string/magic-string.d.ts"
"src": "https://raw.githubusercontent.com/wix/DefinitelyTyped/2c8b6434c131f585ca926a31d8e7b1db85c4b24b/magic-string/magic-string.d.ts",
"raw": "github:wix/DefinitelyTyped/magic-string/magic-string.d.ts#2c8b6434c131f585ca926a31d8e7b1db85c4b24b",
"typings": "https://raw.githubusercontent.com/wix/DefinitelyTyped/2c8b6434c131f585ca926a31d8e7b1db85c4b24b/magic-string/magic-string.d.ts"
}
}
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/mocha/mocha.d.ts
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/b1daff0be8fa53f645365303d8e0145d055370e9/mocha/mocha.d.ts
interface MochaSetupOptions {

@@ -44,2 +44,3 @@ //milliseconds to wait before considering a test slow

declare var test: Mocha.ITestDefinition;
declare var specify: Mocha.ITestDefinition;

@@ -46,0 +47,0 @@ declare function before(action: () => void): void;

{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/mocha/mocha.d.ts",
"raw": "registry:dt/mocha#2.2.5+20160317120654",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/mocha/mocha.d.ts"
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/b1daff0be8fa53f645365303d8e0145d055370e9/mocha/mocha.d.ts",
"raw": "registry:dt/mocha#2.2.5+20160619032855",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/b1daff0be8fa53f645365303d8e0145d055370e9/mocha/mocha.d.ts"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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