@jrc03c/gt-cli 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -97,7 +97,7 @@ async function fetchProgramSource(programId, credentials, environment) {
97
97
  if (!match) {
98
98
  throw new Error("Could not extract program source from edit page");
99
99
  }
100
- return match[1].replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;/g, "'");
100
+ return match[1].replace(/^\n/, "").replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;/g, "'");
101
101
  }
102
102
  function getEnvironment() {
103
103
  const env = process.env.GT_ENV ?? "production";
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "test:watch": "vitest"
40
40
  },
41
41
  "type": "module",
42
- "version": "0.1.3"
42
+ "version": "0.1.4"
43
43
  }