@naturalcycles/nodejs-lib 12.98.2 → 12.98.3

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.
@@ -55,5 +55,7 @@ export declare function objectToShellExport(obj: AnyObject, prefix?: string): st
55
55
  *
56
56
  * Quotes are important, otherwise it'll break on e.g space character in the value.
57
57
  * Includes trailing newline for composability.
58
+ *
59
+ * UPD: Quoted values behave inconsistently, so we're trying to NOT quote now, and-see-what-happens.
58
60
  */
59
61
  export declare function objectToGithubActionsEnv(obj: AnyObject, prefix?: string): string;
@@ -114,6 +114,8 @@ exports.objectToShellExport = objectToShellExport;
114
114
  *
115
115
  * Quotes are important, otherwise it'll break on e.g space character in the value.
116
116
  * Includes trailing newline for composability.
117
+ *
118
+ * UPD: Quoted values behave inconsistently, so we're trying to NOT quote now, and-see-what-happens.
117
119
  */
118
120
  function objectToGithubActionsEnv(obj, prefix = '') {
119
121
  if (!Object.keys(obj).length)
@@ -121,7 +123,7 @@ function objectToGithubActionsEnv(obj, prefix = '') {
121
123
  return (Object.entries(obj)
122
124
  .map(([k, v]) => {
123
125
  if (v) {
124
- return `${prefix}${k}="${v}"`;
126
+ return `${prefix}${k}=${v}`;
125
127
  }
126
128
  })
127
129
  .filter(Boolean)
@@ -7,7 +7,6 @@ const git_util_1 = require("./git.util");
7
7
  function generateBuildInfo() {
8
8
  const now = (0, js_lib_1.localTime)();
9
9
  const ts = now.unix();
10
- const tsStr = now.toPretty();
11
10
  const rev = (0, git_util_1.gitCurrentCommitSha)();
12
11
  const branchName = (0, git_util_1.gitCurrentBranchName)();
13
12
  const repoName = (0, git_util_1.gitCurrentRepoName)();
@@ -27,7 +26,6 @@ function generateBuildInfo() {
27
26
  return (0, js_lib_1._filterUndefinedValues)({
28
27
  ts,
29
28
  tsCommit,
30
- tsStr,
31
29
  repoName,
32
30
  branchName,
33
31
  rev,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
- "version": "12.98.2",
3
+ "version": "12.98.3",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "docs-serve": "vuepress dev docs",
@@ -156,6 +156,8 @@ export function objectToShellExport(obj: AnyObject, prefix = ''): string {
156
156
  *
157
157
  * Quotes are important, otherwise it'll break on e.g space character in the value.
158
158
  * Includes trailing newline for composability.
159
+ *
160
+ * UPD: Quoted values behave inconsistently, so we're trying to NOT quote now, and-see-what-happens.
159
161
  */
160
162
  export function objectToGithubActionsEnv(obj: AnyObject, prefix = ''): string {
161
163
  if (!Object.keys(obj).length) return ''
@@ -164,7 +166,7 @@ export function objectToGithubActionsEnv(obj: AnyObject, prefix = ''): string {
164
166
  Object.entries(obj)
165
167
  .map(([k, v]) => {
166
168
  if (v) {
167
- return `${prefix}${k}="${v}"`
169
+ return `${prefix}${k}=${v}`
168
170
  }
169
171
  })
170
172
  .filter(Boolean)
@@ -10,7 +10,6 @@ import {
10
10
  export function generateBuildInfo(): BuildInfo {
11
11
  const now = localTime()
12
12
  const ts = now.unix()
13
- const tsStr = now.toPretty()
14
13
 
15
14
  const rev = gitCurrentCommitSha()
16
15
  const branchName = gitCurrentBranchName()
@@ -34,7 +33,6 @@ export function generateBuildInfo(): BuildInfo {
34
33
  return _filterUndefinedValues({
35
34
  ts,
36
35
  tsCommit,
37
- tsStr,
38
36
  repoName,
39
37
  branchName,
40
38
  rev,