File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vuejs-logger" ,
3
3
"author" : " Justin Kames" ,
4
- "version" : " 1.3.4 " ,
4
+ "version" : " 1.3.5 " ,
5
5
"description" : " Vuejs-logger, provides customizable logging functionality for Vue.js." ,
6
6
"main" : " dist/index.js" ,
7
7
"repository" : {
19
19
"babel" : {
20
20
"presets" : [
21
21
" es2015"
22
+ ],
23
+ "plugins" : [
24
+ " transform-object-assign"
22
25
]
23
26
},
24
27
"devDependencies" : {
25
28
"babel-cli" : " 6.24.1" ,
26
29
"babel-core" : " 6.25.0" ,
27
30
"babel-loader" : " 7.1.1" ,
31
+ "babel-plugin-transform-object-assign" : " 6.22.0" ,
28
32
"babel-preset-es2015" : " 6.24.1" ,
29
33
"chai" : " 4.1.0" ,
30
34
"codecov" : " 2.2.0" ,
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ export default (function () {
72
72
function getMethodName ( ) {
73
73
let error = { }
74
74
try { throw new Error ( '' ) } catch ( e ) { error = e }
75
+ // IE9 does not have .stack property
76
+ if ( error . stack === undefined ) {
77
+ return ''
78
+ }
75
79
let stackTrace = error . stack . split ( '\n' ) [ 3 ]
76
80
if ( / / . test ( stackTrace ) ) {
77
81
stackTrace = stackTrace . trim ( ) . split ( ' ' ) [ 1 ]
You can’t perform that action at this time.
0 commit comments