This repository was archived by the owner on Apr 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " brix-bisheng" ,
3- "version" : " 0.1.4 " ,
3+ "version" : " 0.1.5 " ,
44 "authors" : [
55 " 墨智 <mozhi.gyy@alibaba-inc.com>"
66 ],
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ define(
496496 type : TYPES . UPDATE ,
497497 path : path . concat ( name ) ,
498498 value : value ,
499- oldValue : oldValue [ name ] !== undefined ? oldValue [ name ] . valueOf ( ) : oldValue [ name ]
499+ oldValue : ( oldValue [ name ] !== undefined && oldValue [ name ] !== null ) ? oldValue [ name ] . valueOf ( ) : oldValue [ name ]
500500 } )
501501 continue
502502 }
@@ -644,7 +644,7 @@ define(
644644 }
645645 }
646646 return $ ( target )
647- } ,
647+ }
648648 }
649649
650650 // comment 定位符
@@ -1568,7 +1568,7 @@ define(
15681568 var content = Handlebars . compile ( ast ) ( context )
15691569
15701570 content = HTML . convert ( content )
1571- Scanner . scan ( content [ 0 ] , change . context )
1571+ Scanner . scan ( content [ 0 ] , change . root )
15721572 content = content . contents ( )
15731573
15741574 var target = Locator . parseTarget ( locator )
Original file line number Diff line number Diff line change 11{
22 "name" : " brix-bisheng" ,
3- "version" : " 0.1.4 " ,
3+ "version" : " 0.1.5 " ,
44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ define(
276276 var content = Handlebars . compile ( ast ) ( context )
277277
278278 content = HTML . convert ( content )
279- Scanner . scan ( content [ 0 ] , change . context )
279+ Scanner . scan ( content [ 0 ] , change . root )
280280 content = content . contents ( )
281281
282282 var target = Locator . parseTarget ( locator )
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ define(
103103 }
104104 }
105105 return $ ( target )
106- } ,
106+ }
107107 }
108108
109109 // comment 定位符
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ define(
495495 type : TYPES . UPDATE ,
496496 path : path . concat ( name ) ,
497497 value : value ,
498- oldValue : oldValue [ name ] !== undefined ? oldValue [ name ] . valueOf ( ) : oldValue [ name ]
498+ oldValue : ( oldValue [ name ] !== undefined && oldValue [ name ] !== null ) ? oldValue [ name ] . valueOf ( ) : oldValue [ name ]
499499 } )
500500 continue
501501 }
You can’t perform that action at this time.
0 commit comments