@beseif-solutions/prow-core 1.2.4 → 1.3.0

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.
@@ -89,7 +89,7 @@ class Context {
89
89
  if (serialized) {
90
90
  resolved = resolved.replace(`"${expression}"`, (lodash_1.default.isObject(get) || lodash_1.default.isString(get)) ? JSON.stringify(get) : get);
91
91
  }
92
- resolved = resolved.replace(expression, lodash_1.default.toString(get));
92
+ resolved = resolved.replace(expression, lodash_1.default.isObject(get) ? JSON.stringify(get) : lodash_1.default.toString(get));
93
93
  }
94
94
  else {
95
95
  resolved = resolved.replace(expression, ``);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beseif-solutions/prow-core",
3
- "version": "1.2.4",
3
+ "version": "1.3.0",
4
4
  "description": "Prow core functionalities and classes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -102,7 +102,7 @@ class Context {
102
102
  if (_.has(clonedData, path)) {
103
103
  const get = _.get(clonedData, path);
104
104
  if (serialized) { resolved = resolved.replace(`"${expression}"`, (_.isObject(get) || _.isString(get)) ? JSON.stringify(get) : get); }
105
- resolved = resolved.replace(expression, _.toString(get));
105
+ resolved = resolved.replace(expression, _.isObject(get) ? JSON.stringify(get) : _.toString(get));
106
106
  } else { resolved = resolved.replace(expression, ``); }
107
107
  }
108
108
  }
package/tsconfig.json CHANGED
@@ -6,7 +6,9 @@
6
6
  "emitDecoratorMetadata": true,
7
7
  "removeComments": true,
8
8
  "esModuleInterop": true,
9
+ "rootDir": "src",
9
10
  "outDir": "dist",
11
+ "strict": false,
10
12
  "resolveJsonModule": true,
11
13
  "declaration": true
12
14
  },