File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
23
23
var isString = require ( '@stdlib/assert-is-string' ) . isPrimitive ;
24
24
var isFunction = require ( '@stdlib/assert-is-function' ) ;
25
- var format = require ( '@stdlib/string-format ' ) ;
25
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
26
26
27
27
28
28
// MAIN //
@@ -42,11 +42,11 @@ var format = require( '@stdlib/string-format' );
42
42
*/
43
43
function parseJSON ( str , reviver ) {
44
44
if ( ! isString ( str ) ) {
45
- throw new TypeError ( format ( 'invalid argument. First argument must be a string. Value: `%s`. ' , str ) ) ;
45
+ throw new TypeError ( format ( '1Wb3F ' , str ) ) ;
46
46
}
47
47
if ( arguments . length > 1 ) {
48
48
if ( ! isFunction ( reviver ) ) {
49
- throw new TypeError ( format ( 'invalid argument. Reviver argument must be a function. Value: `%s`. ' , reviver ) ) ;
49
+ throw new TypeError ( format ( '1WbBk ' , reviver ) ) ;
50
50
}
51
51
}
52
52
try {
Original file line number Diff line number Diff line change 39
39
"dependencies" : {
40
40
"@stdlib/assert-is-function" : " ^0.2.2" ,
41
41
"@stdlib/assert-is-string" : " ^0.2.2" ,
42
- "@stdlib/string-format " : " ^0.2.2" ,
42
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
43
43
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
44
44
},
45
45
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments