normalize line ending (CRLF -> LF)

This commit is contained in:
vvakame
2016-02-16 01:20:30 +09:00
parent bda9391b49
commit 4de74cb527
508 changed files with 79006 additions and 79006 deletions
+15 -15
View File
@@ -1,15 +1,15 @@
/// <reference path="./convert-source-map.d.ts" />
import convert = require("convert-source-map");
var json = convert
.fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
.toJSON();
var modified = convert
.fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
.setProperty('sources', ['CONSOLE.LOG("HI");'])
.toJSON();
console.log(json);
console.log(modified);
/// <reference path="./convert-source-map.d.ts" />
import convert = require("convert-source-map");
var json = convert
.fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
.toJSON();
var modified = convert
.fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
.setProperty('sources', ['CONSOLE.LOG("HI");'])
.toJSON();
console.log(json);
console.log(modified);
+27 -27
View File
@@ -1,27 +1,27 @@
// Type definitions for convert-source-map
// Project: https://github.com/thlorenz/convert-source-map
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "convert-source-map" {
export interface SourceMapConverter {
toObject(): any;
toJSON(space?: any): string;
toBase64(): string;
toComment(): string;
addProperty(key: string, value: any): SourceMapConverter;
setProperty(key: string, value: any): SourceMapConverter;
getProperty(key: string): any;
}
export function removeComments(src: string): string;
export var commentRegex: RegExp;
export function fromObject(obj: any): SourceMapConverter;
export function fromJSON(json: string): SourceMapConverter;
export function fromBase64(base64: string): SourceMapConverter;
export function fromComment(comment: string): SourceMapConverter;
export function fromSource(source: string): SourceMapConverter;
}
// Type definitions for convert-source-map
// Project: https://github.com/thlorenz/convert-source-map
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "convert-source-map" {
export interface SourceMapConverter {
toObject(): any;
toJSON(space?: any): string;
toBase64(): string;
toComment(): string;
addProperty(key: string, value: any): SourceMapConverter;
setProperty(key: string, value: any): SourceMapConverter;
getProperty(key: string): any;
}
export function removeComments(src: string): string;
export var commentRegex: RegExp;
export function fromObject(obj: any): SourceMapConverter;
export function fromJSON(json: string): SourceMapConverter;
export function fromBase64(base64: string): SourceMapConverter;
export function fromComment(comment: string): SourceMapConverter;
export function fromSource(source: string): SourceMapConverter;
}