Repository: teleporthq/teleport-code-generators
Pull request #633 (2022-01-13 17:28:36)

chore(deps): bump follow-redirects from 1.14.4 to 1.14.7
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.7.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/2ede36d7c60d3acdcd324dcd99a9dbd52e4fb3a6"><code>2ede36d</code></a> Release version 1.14.7 of the npm package.</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/8b347cbcef7c7b72a6e9be20f5710c17d6163c22"><code>8b347cb</code></a> Drop Cookie header across domains.</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/6f5029ae1a0fdab4dc25f6379a5ee303c2319070"><code>6f5029a</code></a> Release version 1.14.6 of the npm package.</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/af706bee57de954414c0bde0a9f33e62beea3e52"><code>af706be</code></a> Ignore null headers.</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/d01ab7a5c5df3617c7a40a03de7af6427fdfac55"><code>d01ab7a</code></a> Release version 1.14.5 of the npm package.</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/40052ea8aa13559becee5795715c1d45b1f0eb76"><code>40052ea</code></a> Make compatible with Node 17.</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/86f7572f9365dadc39f85916259b58973819617f"><code>86f7572</code></a> Fix: clear internal timer on request abort to avoid leakage</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/2e1eaf0218c5315a2ab27f53964d0535d4dafb51"><code>2e1eaf0</code></a> Keep Authorization header on subdomain redirects.</li>
<li><a href="https://github.com/follow-redirects/follow-redirects/commit/2ad9e82b6277ae2104f7770e9ff1186cc6da29d4"><code>2ad9e82</code></a> Carry over Host header on relative redirects (<a href="https://github-redirect.dependabot.com/follow-redirects/follow-redirects/issues/172">#172</a>)</li>
<li>See full diff in <a href="https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.7">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=follow-redirects&package-manager=npm_and_yarn&previous-version=1.14.4&new-version=1.14.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/teleporthq/teleport-code-generators/network/alerts).

</details>

codecov[bot]: # [Codecov](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq) Report
> Merging [#633](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq) (8d60ee0) into [development](https://codecov.io/gh/teleporthq/teleport-code-generators/commit/9e2878c6c612c47b78e281e2c1786171ca9914ec?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq) (9e2878c) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/graphs/tree.svg?width=650&height=150&src=pr&token=LI2WPEFm1R&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq)](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq)

```diff
@@             Coverage Diff              @@
##           development     #633   +/-   ##
============================================
  Coverage        72.92%   72.92%           
============================================
  Files              195      195           
  Lines             6915     6915           
  Branches          1789     1789           
============================================
  Hits              5043     5043           
- Misses            1826     1846   +20     
+ Partials            46       26   -20     
```


| [Impacted Files](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq) | Coverage Δ | |
|---|---|---|
| [packages/teleport-publisher-zip/src/index.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtcHVibGlzaGVyLXppcC9zcmMvaW5kZXgudHM=) | `56.52% <0.00%> (ø)` | |
| [packages/teleport-code-generator/src/index.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtY29kZS1nZW5lcmF0b3Ivc3JjL2luZGV4LnRz) | `89.65% <0.00%> (ø)` | |
| [packages/teleport-github-gateway/src/utils.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtZ2l0aHViLWdhdGV3YXkvc3JjL3V0aWxzLnRz) | `16.90% <0.00%> (ø)` | |
| [packages/teleport-project-packer/src/index.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtcHJvamVjdC1wYWNrZXIvc3JjL2luZGV4LnRz) | `90.90% <0.00%> (ø)` | |
| [packages/teleport-publisher-vercel/src/node.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtcHVibGlzaGVyLXZlcmNlbC9zcmMvbm9kZS50cw==) | `0.00% <0.00%> (ø)` | |
| [packages/teleport-publisher-vercel/src/utils.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtcHVibGlzaGVyLXZlcmNlbC9zcmMvdXRpbHMudHM=) | `12.26% <0.00%> (ø)` | |
| [packages/teleport-publisher-vercel/src/browser.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtcHVibGlzaGVyLXZlcmNlbC9zcmMvYnJvd3Nlci50cw==) | `0.00% <0.00%> (ø)` | |
| [...ges/teleport-github-gateway/src/github-instance.ts](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq#diff-cGFja2FnZXMvdGVsZXBvcnQtZ2l0aHViLWdhdGV3YXkvc3JjL2dpdGh1Yi1pbnN0YW5jZS50cw==) | `25.43% <0.00%> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq). Last update [9e2878c...8d60ee0](https://codecov.io/gh/teleporthq/teleport-code-generators/pull/633?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=teleporthq).


Patch:
diff --git a/lerna.json b/lerna.json
index c2e8dfd9..345b876d 100644
--- a/lerna.json
+++ b/lerna.json
@@ -2,7 +2,7 @@
   "packages": [
     "packages/*"
   ],
-  "version": "0.19.9",
+  "version": "0.19.12",
   "useWorkspaces": true,
   "npmClient": "yarn",
   "command": {
diff --git a/packages/teleport-code-generator/package.json b/packages/teleport-code-generator/package.json
index 7cd86925..1d60ecd5 100644
--- a/packages/teleport-code-generator/package.json
+++ b/packages/teleport-code-generator/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@teleporthq/teleport-code-generator",
-  "version": "0.19.9",
+  "version": "0.19.12",
   "description": "A standalone version of the teleport ecosystem with all the project and component generators installed",
   "author": "teleportHQ",
   "license": "MIT",
@@ -33,7 +33,7 @@
     "@teleporthq/teleport-project-generator-angular": "^0.19.8",
     "@teleporthq/teleport-project-generator-gatsby": "^0.19.8",
     "@teleporthq/teleport-project-generator-gridsome": "^0.19.8",
-    "@teleporthq/teleport-project-generator-html": "^0.19.8",
+    "@teleporthq/teleport-project-generator-html": "^0.19.12",
     "@teleporthq/teleport-project-generator-next": "^0.19.8",
     "@teleporthq/teleport-project-generator-nuxt": "^0.19.8",
     "@teleporthq/teleport-project-generator-preact": "^0.19.8",
@@ -41,10 +41,10 @@
     "@teleporthq/teleport-project-generator-reactnative": "^0.19.8",
     "@teleporthq/teleport-project-generator-stencil": "^0.19.8",
     "@teleporthq/teleport-project-generator-vue": "^0.19.8",
-    "@teleporthq/teleport-project-packer": "^0.19.9",
+    "@teleporthq/teleport-project-packer": "^0.19.10",
     "@teleporthq/teleport-publisher-codesandbox": "^0.19.8",
     "@teleporthq/teleport-publisher-disk": "^0.19.8",
-    "@teleporthq/teleport-publisher-github": "^0.19.9",
+    "@teleporthq/teleport-publisher-github": "^0.19.10",
     "@teleporthq/teleport-publisher-netlify": "^0.19.8",
     "@teleporthq/teleport-publisher-vercel": "^0.19.8",
     "@teleporthq/teleport-publisher-zip": "^0.19.8",
diff --git a/packages/teleport-github-gateway/package.json b/packages/teleport-github-gateway/package.json
index 34fc93da..cb38714e 100644
--- a/packages/teleport-github-gateway/package.json
+++ b/packages/teleport-github-gateway/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@teleporthq/teleport-github-gateway",
-  "version": "0.19.9",
+  "version": "0.19.10",
   "description": "Teleport github gateway - use this package if you require a github integration",
   "author": "teleportHQ",
   "license": "MIT",
diff --git a/packages/teleport-github-gateway/src/github-instance.ts b/packages/teleport-github-gateway/src/github-instance.ts
index 0929e9ef..df78a90a 100644
--- a/packages/teleport-github-gateway/src/github-instance.ts
+++ b/packages/teleport-github-gateway/src/github-instance.ts
@@ -22,6 +22,7 @@ import {
   GithubFile,
   RepositoryCommitsListMeta,
   RepositoryCommitMeta,
+  CreateBranchMeta,
 } from './types'
 import { createBase64GithubFileBlob } from './utils'
 
@@ -65,6 +66,16 @@ export default class GithubInstance {
     return data
   }
 
+  public async createBranch(meta: CreateBranchMeta) {
+    const { repo, owner, sourceBranch, newBranch } = meta
+    const repository = await this.githubApi.getRepo(owner, repo)
+    if (!repository) {
+      throw new Error('Repository does not exist')
+    }
+
+    return repository.createBranch(sourceBranch, newBranch)
+  }
+
   public async createRepository(repository: NewRepository): Promise<GithubRepositoryData> {
     const { username, meta } = repository
     const user = await this.githubApi.getUser(username)
diff --git a/packages/teleport-github-gateway/src/index.ts b/packages/teleport-github-gateway/src/index.ts
index a5e1c215..6962df50 100644
--- a/packages/teleport-github-gateway/src/index.ts
+++ b/packages/teleport-github-gateway/src/index.ts
@@ -11,6 +11,7 @@ import {
   GithubCommitMeta,
   RepositoryCommitsListMeta,
   RepositoryCommitMeta,
+  CreateBranchMeta,
 } from './types'
 
 export const createGithubGateway: GithubGatewayFactory = (auth: ServiceAuth = {}) => {
@@ -48,6 +49,11 @@ export const createGithubGateway: GithubGatewayFactory = (auth: ServiceAuth = {}
     return githubInstance.getRepositoryCommits(meta)
   }
 
+  const createBranch = async (meta: CreateBranchMeta, authData: ServiceAuth) => {
+    authorizeGithubInstance(authData)
+    return githubInstance.createBranch(meta)
+  }
+
   const getRepositoryBranches = async (owner: string, repo: string, authData: ServiceAuth) => {
     authorizeGithubInstance(authData)
     return githubInstance.getRepositoryBranches(owner, repo)
@@ -70,6 +76,7 @@ export const createGithubGateway: GithubGatewayFactory = (auth: ServiceAuth = {}
     getUserRepositories,
     createRepository,
     getRepositoryCommits,
+    createBranch,
     getRepositoryBranches,
     commitFilesToRepo,
     getCommitData,
@@ -77,4 +84,4 @@ export const createGithubGateway: GithubGatewayFactory = (auth: ServiceAuth = {}
   }
 }
 
-export { GithubFile, RepositoryIdentity, GithubCommitMeta, RepositoryCommitMeta }
+export { GithubFile, RepositoryIdentity, GithubCommitMeta, CreateBranchMeta, RepositoryCommitMeta }
diff --git a/packages/teleport-github-gateway/src/types.ts b/packages/teleport-github-gateway/src/types.ts
index 0fe3c9d8..fbd38ec5 100644
--- a/packages/teleport-github-gateway/src/types.ts
+++ b/packages/teleport-github-gateway/src/types.ts
@@ -10,6 +10,7 @@ export interface GithubGateway {
   commitFilesToRepo: (commitMeta: GithubCommitMeta, auth?: ServiceAuth) => Promise<string>
   createRepository: (repository: NewRepository, auth?: ServiceAuth) => Promise<GithubRepositoryData>
   getRepositoryCommits: (meta: RepositoryCommitsListMeta, authData: ServiceAuth) => Promise<any>
+  createBranch: (meta: CreateBranchMeta, authData: ServiceAuth) => Promise<any>
   getRepositoryBranches: (owner: string, repo: string, authData: ServiceAuth) => Promise<any>
   getCommitData: (meta: RepositoryCommitMeta, authData: ServiceAuth) => Promise<any>
   authorizeGithubInstance: (authData?: ServiceAuth) => void
@@ -29,6 +30,13 @@ export interface GithubCommitMeta {
   commitMessage?: string
 }
 
+export interface CreateBranchMeta {
+  repo: string
+  owner: string
+  sourceBranch: string
+  newBranch: string
+}
+
 export interface RepositoryCommitMeta {
   repo: string
   owner: string
diff --git a/packages/teleport-project-generator-html/package.json b/packages/teleport-project-generator-html/package.json
index f4528d9f..b78782b3 100644
--- a/packages/teleport-project-generator-html/package.json
+++ b/packages/teleport-project-generator-html/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@teleporthq/teleport-project-generator-html",
-  "version": "0.19.8",
+  "version": "0.19.12",
   "description": "Project generator for generate plain html files",
   "author": "teleportHQ",
   "license": "MIT",
diff --git a/packages/teleport-project-generator-html/src/index.ts b/packages/teleport-project-generator-html/src/index.ts
index 89680354..a581badf 100644
--- a/packages/teleport-project-generator-html/src/index.ts
+++ b/packages/teleport-project-generator-html/src/index.ts
@@ -5,7 +5,7 @@ import { createStyleSheetPlugin } from '@teleporthq/teleport-plugin-css'
 import prettierHTML from '@teleporthq/teleport-postprocessor-prettier-html'
 import HTMLTemplate from './project-template'
 import { pluginCloneGlobals } from './plugin-clone-globals'
-import { pluginImageResolution } from './plugin-image-resolution'
+import { pluginImageResolver } from './plugin-image-resolution'
 
 const createHTMLProjectGenerator = (config?: { individualEntyFile: boolean }) => {
   const { individualEntyFile } = config || { individualEntyFile: true }
@@ -38,7 +38,7 @@ const createHTMLProjectGenerator = (config?: { individualEntyFile: boolean }) =>
     },
   })
 
-  generator.addPlugin(pluginImageResolution)
+  generator.addPlugin(pluginImageResolver)
   if (individualEntyFile) {
     generator.addPlugin(pluginCloneGlobals)
   }
diff --git a/packages/teleport-project-generator-html/src/plugin-clone-globals.ts b/packages/teleport-project-generator-html/src/plugin-clone-globals.ts
index e780a945..12a44fe3 100644
--- a/packages/teleport-project-generator-html/src/plugin-clone-globals.ts
+++ b/packages/teleport-project-generator-html/src/plugin-clone-globals.ts
@@ -19,13 +19,18 @@ class ProjectPluginCloneGlobals implements ProjectPlugin {
       return structure
     }
 
-    const result = parse(entryFile.files[0].content)
-    const body = result.querySelector('body')
+    const parsedEntryFile = parse(entryFile.files[0].content)
+    const body = parsedEntryFile.querySelector('body')
+    const head = parsedEntryFile.querySelector('head')
+    /* script tags are injected using customCode field of UIDL */
+    const scriptTags = body.querySelectorAll('script')
+
     body.childNodes = []
 
     if (Object.values(uidl.root?.styleSetDefinitions || {}).length > 0) {
-      const head = result.querySelector('head')
-      head.appendChild(new HTMLElement('link', {}, 'rel="stylesheet" href="./style.css"', result))
+      head.appendChild(
+        new HTMLElement('link', {}, 'rel="stylesheet" href="./style.css"', parsedEntryFile)
+      )
     }
 
     files.forEach((fileId, key) => {
@@ -33,9 +38,28 @@ class ProjectPluginCloneGlobals implements ProjectPlugin {
       if (path[0] === '') {
         const newFiles: GeneratedFile[] = fileId.files.map((file) => {
           if (file.fileType === FileType.HTML) {
-            body.innerHTML = file.content
+            const parsedIndividualFile = parse(file.content)
+            const metaTags = parsedIndividualFile.getElementsByTagName('meta')
+            const titleTags = parsedIndividualFile.getElementsByTagName('title')
+
+            metaTags.forEach((metaTag) => {
+              head.childNodes.unshift(metaTag)
+              metaTag.remove()
+            })
+            titleTags.forEach((titleTag) => {
+              const inheritedHeadTags = head.getElementsByTagName('title')
+              if (inheritedHeadTags.length > 0) {
+                head.removeChild(head.getElementsByTagName('title')[0])
+              }
+              head.childNodes.unshift(titleTag)
+              titleTag.remove()
+            })
+
+            body.innerHTML = parsedIndividualFile.toString()
+            body.childNodes.push(...scriptTags)
+
             const prettyFile = prettierHTML({
-              [FileType.HTML]: result.toString(),
+              [FileType.HTML]: parsedEntryFile.toString(),
             })
 
             return { name: file.name, content: prettyFile[FileType.HTML], fileType: FileType.HTML }
diff --git a/packages/teleport-project-generator-html/src/plugin-image-resolution.ts b/packages/teleport-project-generator-html/src/plugin-image-resolution.ts
index 058acbc2..ac9a597d 100644
--- a/packages/teleport-project-generator-html/src/plugin-image-resolution.ts
+++ b/packages/teleport-project-generator-html/src/plugin-image-resolution.ts
@@ -10,7 +10,7 @@ import {
 } from '@teleporthq/teleport-types'
 const { parse, join, relative, isAbsolute } = PathResolver
 
-class ProjectPluginImageResolution implements ProjectPlugin {
+class ProjectPluginImageResolver implements ProjectPlugin {
   private relativePath: string
 
   async runBefore(structure: ProjectPluginStructure) {
@@ -117,4 +117,4 @@ class ProjectPluginImageResolution implements ProjectPlugin {
   }
 }
 
-export const pluginImageResolution = new ProjectPluginImageResolution()
+export const pluginImageResolver = new ProjectPluginImageResolver()
diff --git a/packages/teleport-project-packer/package.json b/packages/teleport-project-packer/package.json
index f97551f0..47c94a0d 100644
--- a/packages/teleport-project-packer/package.json
+++ b/packages/teleport-project-packer/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@teleporthq/teleport-project-packer",
-  "version": "0.19.9",
+  "version": "0.19.10",
   "description": "Bare-bone project packer that accepts any project generator and publisher",
   "author": "teleportHQ",
   "license": "MIT",
@@ -24,7 +24,7 @@
     "build": "tsc -p tsconfig.json && tsc -p tsconfig.json --module commonjs --outDir dist/cjs"
   },
   "dependencies": {
-    "@teleporthq/teleport-github-gateway": "^0.19.9",
+    "@teleporthq/teleport-github-gateway": "^0.19.10",
     "@teleporthq/teleport-types": "^0.19.8",
     "cross-fetch": "^3.0.4"
   },
diff --git a/packages/teleport-publisher-github/package.json b/packages/teleport-publisher-github/package.json
index 7e56fe36..5e9940d6 100644
--- a/packages/teleport-publisher-github/package.json
+++ b/packages/teleport-publisher-github/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@teleporthq/teleport-publisher-github",
-  "version": "0.19.9",
+  "version": "0.19.10",
   "description": "Project github publisher",
   "author": "teleportHQ",
   "license": "MIT",
@@ -24,7 +24,7 @@
     "build": "tsc -p tsconfig.json && tsc -p tsconfig.json --module commonjs --outDir dist/cjs"
   },
   "dependencies": {
-    "@teleporthq/teleport-github-gateway": "^0.19.9",
+    "@teleporthq/teleport-github-gateway": "^0.19.10",
     "@teleporthq/teleport-types": "^0.19.8"
   },
   "gitHead": "b185c3fdb7dc94ff8c7eed63f7edba055fffa8d0"
diff --git a/packages/teleport-publisher-vercel/src/utils.ts b/packages/teleport-publisher-vercel/src/utils.ts
index b6ee59b4..ce29bf1d 100644
--- a/packages/teleport-publisher-vercel/src/utils.ts
+++ b/packages/teleport-publisher-vercel/src/utils.ts
@@ -9,10 +9,10 @@ import {
 } from '@teleporthq/teleport-types'
 import { ProjectFolderInfo, VercelFile, VercelPayload } from './types'
 
-const CREATE_DEPLOY_URL = 'https://api.vercel.com/v12/now/deployments'
+const CREATE_DEPLOY_URL = 'https://api.vercel.com/v13/deployments'
 const DELETE_PROJECT_URL = 'https://api.vercel.com/v8/projects'
-const UPLOAD_FILES_URL = 'https://api.vercel.com/v2/now/files'
-const CHECK_DEPLOY_BASE_URL = 'https://api.vercel.com/v11/now/deployments/get?url='
+const UPLOAD_FILES_URL = 'https://api.vercel.com/v2/files'
+const CHECK_DEPLOY_BASE_URL = 'https://api.vercel.com/v13/deployments/get?url='
 
 export const generateProjectFiles = async (
   project: GeneratedFolder,
diff --git a/yarn.lock b/yarn.lock
index 6e56d2f1..79e03e1f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4492,9 +4492,9 @@ flush-write-stream@^1.0.0:
     readable-stream "^2.3.6"
 
 follow-redirects@^1.0.0, follow-redirects@^1.14.0:
-  version "1.14.4"
-  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.4.tgz#838fdf48a8bbdd79e52ee51fb1c94e3ed98b9379"
-  integrity sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==
+  version "1.14.7"
+  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685"
+  integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==
 
 for-in@^1.0.2:
   version "1.0.2"
@@ -10041,9 +10041,9 @@ trim-newlines@^3.0.0:
   integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==
 
 trim-off-newlines@^1.0.0:
-  version "1.0.1"
-  resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3"
-  integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM=
+  version "1.0.3"
+  resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz#8df24847fcb821b0ab27d58ab6efec9f2fe961a1"
+  integrity sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==
 
 tryer@^1.0.1:
   version "1.0.1"


Test patch:
diff --git a/packages/teleport-project-generator-html/__tests__/index.ts b/packages/teleport-project-generator-html/__tests__/index.ts
index 788488f5..e8dda533 100644
--- a/packages/teleport-project-generator-html/__tests__/index.ts
+++ b/packages/teleport-project-generator-html/__tests__/index.ts
@@ -9,7 +9,7 @@ import {
 import { element, elementNode, staticNode } from '@teleporthq/teleport-uidl-builders'
 import { UIDLUtils } from '@teleporthq/teleport-shared'
 import ProjectTemplate from '../src/project-template'
-import { pluginImageResolution } from '../src/plugin-image-resolution'
+import { pluginImageResolver } from '../src/plugin-image-resolution'
 
 describe('Image Resolution project-plugin', () => {
   const files = new Map<string, InMemoryFileRecord>()
@@ -105,7 +105,7 @@ describe('Image Resolution project-plugin', () => {
       rootFolder: UIDLUtils.cloneObject(ProjectTemplate),
     }
 
-    const result = await pluginImageResolution.runBefore(structrue)
+    const result = await pluginImageResolver.runBefore(structrue)
     const { uidl } = result
     const rootNode = uidl.root.node.content
 
diff --git a/packages/teleport-test/package.json b/packages/teleport-test/package.json
index 2ca7c138..8d013fc3 100644
--- a/packages/teleport-test/package.json
+++ b/packages/teleport-test/package.json
@@ -1,7 +1,7 @@
 {
   "name": "teleport-test",
   "private": true,
-  "version": "0.19.9",
+  "version": "0.19.12",
   "description": "A private repo used for testing the entire ecosystem locally",
   "author": "teleportHQ",
   "license": "MIT",
@@ -25,7 +25,7 @@
     "bundle": "webpack --config webpack.config.js"
   },
   "dependencies": {
-    "@teleporthq/teleport-code-generator": "^0.19.9",
+    "@teleporthq/teleport-code-generator": "^0.19.12",
     "@teleporthq/teleport-component-generator-html": "^0.19.8",
     "@teleporthq/teleport-project-generator-angular": "^0.19.8",
     "@teleporthq/teleport-project-generator-gatsby": "^0.19.8",
@@ -37,7 +37,7 @@
     "@teleporthq/teleport-project-generator-reactnative": "^0.19.8",
     "@teleporthq/teleport-project-generator-stencil": "^0.19.8",
     "@teleporthq/teleport-project-generator-vue": "^0.19.8",
-    "@teleporthq/teleport-project-packer": "^0.19.9",
+    "@teleporthq/teleport-project-packer": "^0.19.10",
     "@teleporthq/teleport-project-plugin-gatsby-styled-components": "^0.19.8",
     "@teleporthq/teleport-project-plugin-next-css-modules": "^0.19.8",
     "@teleporthq/teleport-project-plugin-next-react-jss": "^0.19.8",