From 77d753ebb352ee72f565b1842dde9b34d00deb26 Mon Sep 17 00:00:00 2001 From: Max Beatty Date: Tue, 16 Mar 2021 14:20:07 -0700 Subject: [PATCH] fix: typos, docs (#2) * fix: cdn urls * docs: fix badge, note version coupling --- .github/workflows/ci.yml | 2 +- README.md | 2 +- src/load.test.ts | 2 +- src/payments.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 103c465..c1f2a77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v2 with: - node-version: '15' + node-version: '15' # keep in sync w/ .nvmrc - name: Get npm cache directory id: npm-cache diff --git a/README.md b/README.md index 5bccdb6..a488556 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # web-sdk -[![LICENSE]()](https://github.com/square/web-sdk/blob/main/LICENSE) +[![LICENSE](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://github.com/square/web-sdk/blob/main/LICENSE) [![CI](https://github.com/square/web-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/square/web-sdk/actions/workflows/ci.yml) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) diff --git a/src/load.test.ts b/src/load.test.ts index ae4f948..fbe5c0e 100644 --- a/src/load.test.ts +++ b/src/load.test.ts @@ -7,7 +7,7 @@ describe('Load', () => { }); it('memoizes loadPromise', () => { - const src = 'https://websdk.squarecdn.com/v0/square.js'; + const src = 'https://web.squarecdn.com/v0/square.js'; const p1 = Load.loadSquare(src); const p2 = Load.loadSquare(src); diff --git a/src/payments.ts b/src/payments.ts index ef20d68..6c2a3dc 100644 --- a/src/payments.ts +++ b/src/payments.ts @@ -16,11 +16,11 @@ function getSrcForApplicationId(applicationId: string): string { let src = ''; if (applicationId.startsWith('sq0idp-')) { - src = 'https://websdk.squarecdn.com/'; + src = 'https://web.squarecdn.com/'; } if (applicationId.startsWith('sandbox-sq0idb-')) { - src = 'https://sandbox.websdk.squarecdn.com/'; + src = 'https://sandbox.web.squarecdn.com/'; } if (src.length === 0) {