Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac4ac57

Browse files
authored
Merge pull request#8 from streamich/upgrade-1
Upgrade 1
2 parents6ca5527 +0121fd8 commitac4ac57

File tree

13 files changed

+2411
-2034
lines changed

13 files changed

+2411
-2034
lines changed

‎package.json‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@
2929
},
3030
"dependencies": {},
3131
"devDependencies": {
32-
"@types/jest":"^22.2.3",
33-
"@types/node":"^10.1.3",
32+
"@semantic-release/changelog":"^3.0.2",
33+
"@semantic-release/git":"^7.0.8",
34+
"@semantic-release/npm":"^5.1.4",
35+
"@types/jest":"^24.0.6",
36+
"@types/node":"^11.9.5",
37+
"browserify":"^16.2.3",
38+
"git-cz":"^1.8.0",
3439
"husky":"^0.14.3",
35-
"jest":"^23.0.1",
36-
"git-cz":"^1.7.0",
37-
"prettier":"^1.13.0",
38-
"pretty-quick":"^1.6.0",
39-
"rimraf":"2.6.2",
40-
"semantic-release":"^15.10.5",
41-
"@semantic-release/changelog":"^3.0.1",
42-
"@semantic-release/npm":"^5.0.5",
43-
"@semantic-release/git":"^7.0.5",
44-
"ts-jest":"^22.4.6",
45-
"ts-node":"^6.0.5",
46-
"tslint":"^5.10.0",
40+
"jest":"^24.1.0",
41+
"prettier":"^1.16.4",
42+
"pretty-quick":"^1.10.0",
43+
"rimraf":"^2.6.3",
44+
"semantic-release":"^15.13.3",
45+
"ts-jest":"^24.0.0",
46+
"ts-node":"^8.0.2",
47+
"tslint":"^5.12.1",
4748
"tslint-config-mailonline":"^3.0.0",
48-
"typescript":"^2.8.3",
49-
"browserify":"^16.2.2"
49+
"typescript":"^3.3.3333"
5050
},
5151
"prettier": {
5252
"printWidth":120,

‎src/__tests__/block.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('Block Markdown', () => {
169169

170170
it('supports all h1-h6 heading levels',()=>{
171171
constparser=create();
172-
constresult=depth=>({
172+
constresult=(depth:any)=>({
173173
type:'root',
174174
children:{
175175
type:'heading',

‎src/__tests__/createParser.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import icon from '../tokenizer/icon';
44
describe('createParser()',()=>{
55
test('returns a parser object',()=>{
66
constparser=createParser({
7-
inline:[icon(32)],
7+
inline:[icon(32)asany],
88
block:[],
99
});
1010

@@ -14,7 +14,7 @@ describe('createParser()', () => {
1414

1515
test('returns a single AST token',()=>{
1616
constparser=createParser({
17-
inline:[icon(32)],
17+
inline:[icon(32)asany],
1818
block:[],
1919
});
2020

‎src/__tests__/integration.spec.ts‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs';
22
import*aspathfrom'path';
33
import{create}from'../index';
44

5-
constcheck=(md,json)=>
5+
constcheck=(md:any,json:any)=>
66
test(md,()=>{
77
constparser=create();
88
constmdFilepath=path.join(__dirname,'fixtures',md);
@@ -12,15 +12,6 @@ const check = (md, json) =>
1212
expect(ast).toMatchObject(expected);
1313
});
1414

15-
constlog=(md,json)=>{
16-
constparser=create();
17-
constmdFilepath=path.join(__dirname,'fixtures',md);
18-
constast=parser.tokenizeBlock(fs.readFileSync(mdFilepath,'utf8'));
19-
20-
// tslint:disable-next-line no-console
21-
console.log(JSON.stringify(ast,null,4));
22-
};
23-
2415
describe('Integration',()=>{
2516
check('basic.md','basic.json');
2617
check('blockquotes.md','blockquotes.json');

‎src/__tests__/smartypants.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import{create}from'../index';
22

3-
constcheck=(name,src,out)=>
3+
constcheck=(name:any,src:any,out:any)=>
44
test(name,()=>{
55
constparser=create();
66
constast=parser.tokenizeInline(src);

‎src/tokenizer/__tests__/Icon.spec.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import {token} from '../../createParser';
33

44
consttokenizer=icon(32);
55

6-
construnTokenizer=(tk,value)=>{
6+
construnTokenizer=(tk:any,value:any)=>{
77
// tslint:disable no-unnecessary-callback-wrapper
8-
consteat=(subvalue,type,children,overrides)=>
9-
token(subvalue,type,children,overrides);
8+
consteat=(subvalue:any,type:any,children:any,overrides:any)=>token(subvalue,type,children,overrides);
109

1110
returntk.call({},eat,value);
1211
};

‎src/tokenizer/__tests__/Link.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import link from '../link';
33

44
consttokenizer=link();
55

6-
construnTokenizer=(tk,value)=>{
6+
construnTokenizer=(tk:any,value:any)=>{
77
// tslint:disable no-unnecessary-callback-wrapper
8-
consteat=(subvalue,type,children,overrides)=>token(subvalue,type,children,overrides);
8+
consteat=(subvalue:any,type:any,children:any,overrides:any)=>token(subvalue,type,children,overrides);
99

1010
returntk.call(
1111
{

‎src/tokenizer/__tests__/list.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import list from '../list';
33

44
consttokenizer=list;
55

6-
construnTokenizer=(tk,value)=>{
6+
construnTokenizer=(tk:any,value:any)=>{
77
// tslint:disable no-unnecessary-callback-wrapper
8-
consteat=(subvalue,type,children,overrides)=>token(subvalue,type,children,overrides);
8+
consteat=(subvalue:any,type:any,children:any,overrides:any)=>token(subvalue,type,children,overrides);
99

1010
returntk.call(
1111
{

‎src/tokenizer/__tests__/mark.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import mark from '../mark';
33

44
consttokenizer=mark;
55

6-
construnTokenizer=(tk,value)=>{
6+
construnTokenizer=(tk:any,value:any)=>{
77
// tslint:disable no-unnecessary-callback-wrapper
8-
consteat=(subvalue,type,children,overrides)=>token(subvalue,type,children,overrides);
8+
consteat=(subvalue:any,type:any,children:any,overrides:any)=>token(subvalue,type,children,overrides);
99

1010
returntk.call(
1111
{

‎src/tokenizer/__tests__/text.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import text from '../text';
33

44
consttokenizer=text();
55

6-
construnTokenizer=(tk,value)=>{
6+
construnTokenizer=(tk:any,value:any)=>{
77
// tslint:disable no-unnecessary-callback-wrapper
8-
consteat=(subvalue,type,children,overrides)=>token(subvalue,type,children,overrides);
8+
consteat=(subvalue:any,type:any,children:any,overrides:any)=>token(subvalue,type,children,overrides);
99

1010
returntk.call({},eat,value);
1111
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp