mirror of
https://github.com/tbluemel/rtf.js.git
synced 2026-11-30 16:47:59 +01:00
Update dependencies
This commit is contained in:
+1
-2
@@ -1,8 +1,7 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "8"
|
||||
- "12"
|
||||
install:
|
||||
- npm i -g npm@5.8.0
|
||||
- npm ci
|
||||
script:
|
||||
- bash travis-verify-build.sh
|
||||
|
||||
+5
-5
@@ -717,7 +717,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -1829,7 +1829,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -2281,7 +2281,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -2540,7 +2540,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -2754,7 +2754,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+9
-9
@@ -315,7 +315,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -8331,7 +8331,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -8636,7 +8636,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -8794,7 +8794,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -9090,7 +9090,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -9441,7 +9441,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -9627,7 +9627,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -9786,7 +9786,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -10047,7 +10047,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+4
-4
@@ -782,7 +782,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -1915,7 +1915,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -2375,7 +2375,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
@@ -2695,7 +2695,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Generated
+2989
-2947
File diff suppressed because it is too large
Load Diff
+14
-14
@@ -35,22 +35,22 @@
|
||||
"devDependencies": {
|
||||
"chai": "^4.2.0",
|
||||
"chai-html": "^1.3.0",
|
||||
"copy-webpack-plugin": "^5.1.1",
|
||||
"coverage-istanbul-loader": "^2.0.3",
|
||||
"coveralls": "^3.0.9",
|
||||
"jsdom": "^15.2.1",
|
||||
"mocha": "^6.2.2",
|
||||
"nyc": "^15.0.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"ts-loader": "^6.2.1",
|
||||
"tslint": "^5.20.1",
|
||||
"typescript": "^3.7.4",
|
||||
"copy-webpack-plugin": "^6.1.0",
|
||||
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
|
||||
"coveralls": "^3.1.0",
|
||||
"jsdom": "^16.4.0",
|
||||
"mocha": "^8.1.3",
|
||||
"nyc": "^15.1.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-loader": "^8.0.3",
|
||||
"tslint": "^6.1.3",
|
||||
"typescript": "^4.0.2",
|
||||
"typewiz-core": "^1.2.4",
|
||||
"typewiz-webpack": "^1.2.4",
|
||||
"webpack": "^4.41.5",
|
||||
"webpack-cli": "^3.3.10",
|
||||
"webpack-dev-server": "^3.10.3",
|
||||
"webpack-merge": "^4.2.2"
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.12",
|
||||
"webpack-dev-server": "^3.11.0",
|
||||
"webpack-merge": "^5.1.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"codepage": "^1.14.0"
|
||||
|
||||
@@ -123,7 +123,7 @@ export class EmfHeader {
|
||||
}
|
||||
|
||||
export class EMFRecords {
|
||||
private _records: Array<(gdi: GDIContext) => void>;
|
||||
private _records: ((gdi: GDIContext) => void)[];
|
||||
private _header: EmfHeader;
|
||||
|
||||
constructor(reader: Blob, first: number) {
|
||||
|
||||
+1
-1
@@ -338,7 +338,7 @@ export function CreateSimpleRegion(left: number, top: number, right: number, bot
|
||||
export class Scan {
|
||||
public top: number;
|
||||
public bottom: number;
|
||||
public scanlines: Array<{left: number, right: number}>;
|
||||
public scanlines: {left: number, right: number}[];
|
||||
|
||||
constructor(r: RectL, copy?: Scan) {
|
||||
if (r != null) {
|
||||
|
||||
@@ -36,8 +36,8 @@ export class Document {
|
||||
public _fonts: FonttblDestinationSub[];
|
||||
public _colors: IColor[];
|
||||
public _autoColor: number;
|
||||
public _stylesheets: Array<{index: number, name: string}>;
|
||||
public _ins: Array<string | ((renderer: Renderer) => void)>;
|
||||
public _stylesheets: {index: number, name: string}[];
|
||||
public _ins: (string | ((renderer: Renderer) => void))[];
|
||||
|
||||
constructor(settings: ISettings) {
|
||||
this._settings = settings || {};
|
||||
|
||||
@@ -206,9 +206,9 @@ export class GlobalState {
|
||||
public column: number;
|
||||
public state: State;
|
||||
public version: number;
|
||||
public text: Array<PlainText | HexText>;
|
||||
public text: (PlainText | HexText)[];
|
||||
public codepage: number;
|
||||
public _asyncTasks: Array<Promise<any>>;
|
||||
public _asyncTasks: Promise<any>[];
|
||||
public renderer: Renderer;
|
||||
|
||||
constructor(blob: ArrayBuffer, renderer: Renderer) {
|
||||
|
||||
@@ -119,7 +119,7 @@ export class Parser {
|
||||
}
|
||||
}
|
||||
|
||||
private summarizeText(text: Array<PlainText | HexText>) {
|
||||
private summarizeText(text: (PlainText | HexText)[]) {
|
||||
let result = "";
|
||||
for (let i = 0; i < text.length; i++) {
|
||||
const value = text[i];
|
||||
|
||||
@@ -87,7 +87,7 @@ export class DestinationTextBase implements IDestination {
|
||||
export abstract class DestinationFormattedTextBase implements IDestination {
|
||||
public _name: string;
|
||||
protected parser: GlobalState;
|
||||
private _records: Array<(rtf: RtfDestination) => void>;
|
||||
private _records: ((rtf: RtfDestination) => void)[];
|
||||
|
||||
constructor(parser: GlobalState, name: string) {
|
||||
this.parser = parser;
|
||||
|
||||
@@ -94,7 +94,7 @@ export class StylesheetDestinationSub extends DestinationBase {
|
||||
}
|
||||
|
||||
export class StylesheetDestination extends DestinationBase {
|
||||
private _stylesheets: Array<{ index: number, name: string }>;
|
||||
private _stylesheets: { index: number, name: string }[];
|
||||
private inst: Document;
|
||||
|
||||
constructor(parser: GlobalState, inst: Document) {
|
||||
|
||||
+2
-2
@@ -332,10 +332,10 @@ export function CreateSimpleRegion(left: number, top: number, right: number, bot
|
||||
export class Scan {
|
||||
public top: number;
|
||||
public bottom: number;
|
||||
public scanlines: Array<{left: number, right: number}>;
|
||||
public scanlines: {left: number, right: number}[];
|
||||
|
||||
constructor(reader: Blob, copy?: Scan, top?: number, bottom?: number,
|
||||
scanlines?: Array<{left: number, right: number}>) {
|
||||
scanlines?: {left: number, right: number}[]) {
|
||||
if (reader != null) {
|
||||
const cnt = reader.readUint16();
|
||||
this.top = reader.readUint16();
|
||||
|
||||
@@ -33,7 +33,7 @@ import { Region } from "./Region";
|
||||
import { Brush, ColorRef, Font, Palette, Pen } from "./Style";
|
||||
|
||||
export class WMFRecords {
|
||||
private _records: Array<(gdi: GDIContext) => void>;
|
||||
private _records: ((gdi: GDIContext) => void)[];
|
||||
|
||||
constructor(reader: Blob, first: number) {
|
||||
this._records = [];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path');
|
||||
const merge = require('webpack-merge');
|
||||
const {merge} = require('webpack-merge');
|
||||
const baseConfig = require('./base.config.js');
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
@@ -9,7 +9,7 @@ module.exports = merge(baseConfig, {
|
||||
test: /\.ts?$/,
|
||||
use: [
|
||||
{
|
||||
loader: "coverage-istanbul-loader",
|
||||
loader: "@jsdevtools/coverage-istanbul-loader",
|
||||
options: {
|
||||
esModules: true
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path');
|
||||
const merge = require('webpack-merge');
|
||||
const {merge} = require('webpack-merge');
|
||||
const baseConfig = require('./base.config.js');
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path');
|
||||
const merge = require('webpack-merge');
|
||||
const {merge} = require('webpack-merge');
|
||||
const baseConfig = require('./base.config.js');
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path');
|
||||
const merge = require('webpack-merge');
|
||||
const {merge} = require('webpack-merge');
|
||||
const baseConfig = require('./base.config.js');
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
@@ -7,7 +7,7 @@ module.exports = merge(baseConfig, {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts?$/,
|
||||
use: [ {
|
||||
use: [{
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
transpileOnly: true
|
||||
|
||||
Reference in New Issue
Block a user