@stepzen/sdk 0.11.1 → 0.11.4
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.
|
@@ -6,7 +6,7 @@ const dotenv = require("dotenv");
|
|
|
6
6
|
const fs = require("fs-extra");
|
|
7
7
|
const os = require("os");
|
|
8
8
|
const path = require("path");
|
|
9
|
-
const
|
|
9
|
+
const transpiler_1 = require("@stepzen/transpiler");
|
|
10
10
|
const transpileConfigurationset = async (file) => {
|
|
11
11
|
if (!file) {
|
|
12
12
|
return;
|
|
@@ -17,7 +17,7 @@ const transpileConfigurationset = async (file) => {
|
|
|
17
17
|
const configPath = path.join(tmp, 'config.yaml');
|
|
18
18
|
fs.ensureDirSync(tmp);
|
|
19
19
|
fs.copyFileSync(file, configPath);
|
|
20
|
-
const result = await transpile(tmp);
|
|
20
|
+
const result = await transpiler_1.transpile(tmp);
|
|
21
21
|
if (result.transpiled) {
|
|
22
22
|
fs.emptyDirSync(tmp);
|
|
23
23
|
fs.writeFileSync(configPath, result.config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transpiling.js","sourceRoot":"","sources":["../../src/shared/transpiling.ts"],"names":[],"mappings":";AAAA,8CAA8C;;;AAE9C,iCAAgC;AAChC,+BAA8B;AAC9B,yBAAwB;AACxB,6BAA4B;
|
|
1
|
+
{"version":3,"file":"transpiling.js","sourceRoot":"","sources":["../../src/shared/transpiling.ts"],"names":[],"mappings":";AAAA,8CAA8C;;;AAE9C,iCAAgC;AAChC,+BAA8B;AAC9B,yBAAwB;AACxB,6BAA4B;AAC5B,oDAA6C;AAEtC,MAAM,yBAAyB,GAAG,KAAK,EAC5C,IAAwB,EACK,EAAE;IAC/B,IAAI,CAAC,IAAI,EAAE;QACT,OAAM;KACP;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IACvD,MAAM,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,EAAC,CAAC,CAAA;IAEnD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,sBAAsB,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;IACtE,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,aAAa,CAAC,CAAA;IAEhD,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;IACrB,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;IAEjC,MAAM,MAAM,GAAG,MAAM,sBAAS,CAAC,GAAG,CAAC,CAAA;IAEnC,IAAI,MAAM,CAAC,UAAU,EAAE;QACrB,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;QACpB,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;QAC3C,OAAO,UAAU,CAAA;KAClB;IAED,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;IAClB,OAAM;AACR,CAAC,CAAA;AA1BY,QAAA,yBAAyB,6BA0BrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stepzen/sdk",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Darren Waddell <darren@stepzen.com>",
|
|
6
6
|
"homepage": "https://stepzen.com",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"posttest": "prettier . --check"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@stepzen/transpiler": "0.
|
|
25
|
+
"@stepzen/transpiler": "0.2.1",
|
|
26
26
|
"archiver": "^5.3.0",
|
|
27
27
|
"debug": "^4.3.4",
|
|
28
28
|
"form-data": "^4.0.0",
|
|
@@ -4,8 +4,7 @@ import * as dotenv from 'dotenv'
|
|
|
4
4
|
import * as fs from 'fs-extra'
|
|
5
5
|
import * as os from 'os'
|
|
6
6
|
import * as path from 'path'
|
|
7
|
-
|
|
8
|
-
const {transpile} = require('@stepzen/transpiler')
|
|
7
|
+
import {transpile} from '@stepzen/transpiler'
|
|
9
8
|
|
|
10
9
|
export const transpileConfigurationset = async (
|
|
11
10
|
file: string | undefined,
|