File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 13
13
},
14
14
"version" : " 1.2.1" ,
15
15
"description" : " textlint util convert Paragraph Node to text with SourceMap." ,
16
- "main" : " lib/StringSource .js" ,
16
+ "main" : " lib/index .js" ,
17
17
"files" : [
18
18
" lib" ,
19
19
" src"
32
32
"babel-preset-es2015" : " ^6.1.18" ,
33
33
"espower-babel" : " ^4.0.0" ,
34
34
"markdown-to-ast" : " ^3.1.1" ,
35
- "mocha" : " ^2.3.4 " ,
35
+ "mocha" : " ^3.0.2 " ,
36
36
"power-assert" : " ^1.2.0" ,
37
- "sentence-splitter" : " ^1.2 .0"
37
+ "sentence-splitter" : " ^2.0 .0"
38
38
},
39
39
"dependencies" : {
40
40
"object-assign" : " ^4.0.1" ,
Original file line number Diff line number Diff line change
1
+ // LICENSE : MIT
2
+ "use strict" ;
3
+ import StringSource from "./StringSource" ;
4
+ module . exports = StringSource ;
Original file line number Diff line number Diff line change 3
3
import assert from "power-assert"
4
4
import { parse } from "markdown-to-ast" ;
5
5
import StringSource from "../src/StringSource" ;
6
- import sentenceSplitter from "sentence-splitter" ;
6
+ import { split as sentenceSplitter } from "sentence-splitter" ;
7
7
describe ( "StringSource" , function ( ) {
8
8
describe ( "#toString" , function ( ) {
9
9
it ( "should concat string" , function ( ) {
Original file line number Diff line number Diff line change 1
1
// LICENSE : MIT
2
2
"use strict" ;
3
3
import assert from "power-assert"
4
- import { parse } from "markdown-to-ast" ;
5
4
import StringSource from "../src/StringSource" ;
6
- import sentenceSplitter from "sentence-splitter" ;
7
- describe ( "StringSource" , function ( ) {
8
- describe ( "#toString" , function ( ) {
9
- it ( "should concat string" , function ( ) {
5
+ import { split as sentenceSplitter } from "sentence-splitter" ;
6
+ describe ( "StringSource" , function ( ) {
7
+ describe ( "#toString" , function ( ) {
8
+ it ( "should concat string" , function ( ) {
10
9
const AST = {
11
10
"type" : "Document" ,
12
11
"raw" : "Str" ,
You can’t perform that action at this time.
0 commit comments