Skip to content

Commit

Permalink
fix: typos, docs (#2)
Browse files Browse the repository at this point in the history
* fix: cdn urls

* docs: fix badge, note version coupling
  • Loading branch information
Max Beatty authored Mar 16, 2021
1 parent 3da504f commit 77d753e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/load.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 77d753e

Please sign in to comment.