@naturalcycles/nodejs-lib 14.2.0 → 14.2.1

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.
@@ -76,7 +76,7 @@ function checkAndlogEnvironment() {
76
76
  '\n' +
77
77
  formatObject({
78
78
  NODE_OPTIONS: NODE_OPTIONS || 'not defined',
79
- TZ,
79
+ TZ: TZ || 'not defined',
80
80
  })));
81
81
  if (!NODE_OPTIONS) {
82
82
  console.warn(`NODE_OPTIONS env variable is not defined. You may run into out-of-memory issues when running memory-intensive scripts. It's recommended to set it to:\n--max-old-space-size=12000`);
@@ -84,15 +84,17 @@ function checkAndlogEnvironment() {
84
84
  else if (NODE_OPTIONS.includes('max_old')) {
85
85
  console.warn(`It looks like you're using "max_old_space_size" syntax with underscores instead of dashes - it's WRONG and doesn't work in environment variables. Strongly advised to rename it to "max-old-space-size"`);
86
86
  }
87
- if (!TZ) {
88
- console.error([
89
- '!!! TZ environment variable is required to be set, but was not set.',
90
- 'The runScript will exit and not continue further because of that,',
91
- 'please ensure the TZ variable and try again.',
92
- 'If you are running locally, you can add TZ=UTC to the local .env file.',
93
- ].join('\n'));
94
- process.exit(1);
95
- }
87
+ // if (!TZ) {
88
+ // console.error(
89
+ // [
90
+ // '!!! TZ environment variable is required to be set, but was not set.',
91
+ // 'The runScript will exit and not continue further because of that,',
92
+ // 'please ensure the TZ variable and try again.',
93
+ // 'If you are running locally, you can add TZ=UTC to the local .env file.',
94
+ // ].join('\n'),
95
+ // )
96
+ // process.exit(1)
97
+ // }
96
98
  }
97
99
  function formatObject(obj) {
98
100
  return Object.entries(obj)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
3
  "type": "module",
4
- "version": "14.2.0",
4
+ "version": "14.2.1",
5
5
  "scripts": {
6
6
  "prepare": "husky",
7
7
  "build": "dev-lib build",
@@ -113,7 +113,7 @@ function checkAndlogEnvironment(): void {
113
113
  '\n' +
114
114
  formatObject({
115
115
  NODE_OPTIONS: NODE_OPTIONS || 'not defined',
116
- TZ,
116
+ TZ: TZ || 'not defined',
117
117
  }),
118
118
  ),
119
119
  )
@@ -128,17 +128,17 @@ function checkAndlogEnvironment(): void {
128
128
  )
129
129
  }
130
130
 
131
- if (!TZ) {
132
- console.error(
133
- [
134
- '!!! TZ environment variable is required to be set, but was not set.',
135
- 'The runScript will exit and not continue further because of that,',
136
- 'please ensure the TZ variable and try again.',
137
- 'If you are running locally, you can add TZ=UTC to the local .env file.',
138
- ].join('\n'),
139
- )
140
- process.exit(1)
141
- }
131
+ // if (!TZ) {
132
+ // console.error(
133
+ // [
134
+ // '!!! TZ environment variable is required to be set, but was not set.',
135
+ // 'The runScript will exit and not continue further because of that,',
136
+ // 'please ensure the TZ variable and try again.',
137
+ // 'If you are running locally, you can add TZ=UTC to the local .env file.',
138
+ // ].join('\n'),
139
+ // )
140
+ // process.exit(1)
141
+ // }
142
142
  }
143
143
 
144
144
  function formatObject(obj: AnyObject): string {