Skip to content

Commit

Permalink
replace all urls with https
Browse files Browse the repository at this point in the history
  • Loading branch information
xavdid committed Oct 4, 2019
1 parent 9d32737 commit 05ccd92
Show file tree
Hide file tree
Showing 63 changed files with 303 additions and 310 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# this needs to combine all other eslintignore files so that lint-staged knows what to ignore
packages/cli/snippets/dynamic-dropdowns-*.js
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"files": [
"packages/*/test/**/*.js",
"packages/*/smoke-test/**/*.js",
"packages/*/integration-test/**/*.js",
"packages/cli/src/tests/**/*.js",
"packages/cli/src/smoke-tests/**/*.js"
],
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Below are all of the changes:

### core

* (fix) Can't use unencrypted `http://` protocol when SSL checks are disabled ([#135](https://github.com/zapier/zapier-platform-core/pull/135))
* (fix) Can't use unencrypted `https://` protocol when SSL checks are disabled ([#135](https://github.com/zapier/zapier-platform-core/pull/135))

## 7.6.0

Expand Down
52 changes: 26 additions & 26 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ npm install -g zapier-platform-cli
**Usage:** `zapier apps`


Lists any apps that you have admin access to. Also checks the current directory for a linked app, which you can control with `zapier link`.

**Arguments**
Expand Down Expand Up @@ -47,7 +47,7 @@ $ zapier apps
**Usage:** `zapier build`


Builds a ready-to-upload zip file, but does not upload / push the zip file. Generally you'd use `zapier push` which does this and `zapier upload` together.

It does the following steps:
Expand Down Expand Up @@ -90,7 +90,7 @@ $ zapier build
**Usage:** `zapier collaborate [[email protected]]`


Give any user registered on Zapier the ability to collaborate on your app. Commonly, this is useful for teammates, contractors, or other developers who might want to make changes on your app. Only admin access is supported. If you'd only like to provide read-only or testing access, try `zapier invite`.

**Arguments**
Expand Down Expand Up @@ -134,7 +134,7 @@ $ zapier collaborate [email protected] --remove
**Usage:** `zapier convert appid path`


Creates a new CLI app from an existing app.

If you're converting a **Legacy Web Builder** app: the new app contains code stubs only. It is supposed to get you started - it isn't going to create a complete app!
Expand Down Expand Up @@ -173,7 +173,7 @@ $ zapier convert 1234 .
**Usage:** `zapier delete version 1.0.0`


A utility to allow deleting app versions that aren't used.

> The app version needs to have no users/Zaps in order to be deleted.
Expand All @@ -199,7 +199,7 @@ $ zapier delete version 1.0.0
**Usage:** `zapier deprecate 1.0.0 2017-01-20`


A utility to alert users of breaking changes that require the deprecation of an app version.

Use this when an app version will not be supported or start breaking at a known date.
Expand Down Expand Up @@ -233,7 +233,7 @@ $ zapier deprecate 1.0.0 2017-01-20
**Usage:** `zapier describe`


Prints a human readable enumeration of your app's triggers, searches, and actions as seen by Zapier. Useful to understand how your resources convert and relate to different actions.

> These are the same actions we'd display in our editor!
Expand Down Expand Up @@ -284,7 +284,7 @@ $ zapier describe
**Usage:** `zapier env 1.0.0 CLIENT_SECRET 12345`


Manage the environment of your app so that `process.env` has the necessary variables, making it easy to match a local environment with a production environment via `CLIENT_SECRET=12345 zapier test`.

**Arguments**
Expand Down Expand Up @@ -331,7 +331,7 @@ $ zapier env 1.0.0 CLIENT_SECRET --remove
**Usage:** `zapier help [command]`


Prints documentation to the terminal screen.

Generally - the `zapier` command works off of two files:
Expand Down Expand Up @@ -391,7 +391,7 @@ $ │ logout │ zapier logout │ Deactivates all
**Usage:** `zapier history`


Get the history of your app, listing all the changes made over the lifetime of your app. This includes everything from creation, updates, migrations, admins and invitee changes as well as who made the change and when.

**Arguments**
Expand Down Expand Up @@ -423,7 +423,7 @@ $ zapier history
**Usage:** `zapier init path`


Initializes a new Zapier app. If you specify a template, will download and install the app from that template.

After running this, you'll have a new example app in your directory. If you re-run this command on an existing directory it will leave existing files alone and not clobber them.
Expand Down Expand Up @@ -455,7 +455,7 @@ $ zapier init example-app --template=minimal
**Usage:** `zapier invite [[email protected]] [1.0.0]`


Invite any user registered on Zapier to test your app. Commonly, this is useful for teammates, contractors, or other team members who might want to test, QA, or view your app versions. If you'd like to provide full admin access, try `zapier collaborate`.

> Send an email directly, which contains a one-time use link for them only - or share the public URL to "bulk" invite folks!
Expand Down Expand Up @@ -506,7 +506,7 @@ $ zapier invite [email protected] --remove
**Usage:** `zapier link`


Link the current directory to an app you have access to. It is fairly uncommon to run this command - more often you'd just `git clone [email protected]:example-inc/example.git` which would have a `.zapierapprc` file already included. If not, you'd need to be an admin on the app and use this command to regenerate the `.zapierapprc` file.

Or, if you are making an app from scratch - you should prefer `zapier init`.
Expand Down Expand Up @@ -549,7 +549,7 @@ $ zapier link
**Usage:** `zapier login`


This is an interactive prompt which will create, retrieve and store a deploy key.

> This will change the `~/.zapierrc` (home directory identifies the deploy key & user).
Expand All @@ -569,7 +569,7 @@ $ zapier login
**Usage:** `zapier logout`


Deactivates all your personal deploy keys and resets your local config. Does not delete any apps or versions.

> This will delete the `~/.zapierrc` (home directory identifies the deploy key & user).
Expand All @@ -591,7 +591,7 @@ All personal keys deactivated - now try `zapier login` to login again.
**Usage:** `zapier logs`


Get the logs that are automatically collected during the running of your app. Either explicitly during `z.console.log()`, automatically via `z.request()`, or any sort of traceback or error.

> Does not collect or list the errors found locally during `zapier test`.
Expand Down Expand Up @@ -627,7 +627,7 @@ $ zapier logs --type=http
# ┌────────────────────────────────────────────────────────┐
# │ = 1 = │
# │ Status │ 200 │
# │ URL │ http://httpbin.org/get │
# │ URL │ https://httpbin.org/get │
# │ Querystring │ hello=world │
# │ Version │ 1.0.0 │
# │ Step │ 99c16565-1547-4b16-bcb5-45189d9d8afa │
Expand All @@ -642,7 +642,7 @@ $ zapier logs --type=http
**Usage:** `zapier migrate 1.0.0 1.0.1 [10%]`


Starts a migration to move users between different versions of your app. You may also "revert" by simply swapping the from/to verion strings in the command line arguments (IE: `zapier migrate 1.0.1 1.0.0`).

Only migrate users between non-breaking versions, use `zapier deprecate` if you have breaking changes!
Expand Down Expand Up @@ -678,7 +678,7 @@ $ zapier migrate 1.0.0 1.0.1 15%
**Usage:** `zapier promote 1.0.0`


Promotes an app version into production (non-private) rotation, which means new users can use this app version.

* This **does** mark the version as the official public version - all other versions & users are grandfathered.
Expand Down Expand Up @@ -716,7 +716,7 @@ $ zapier promote 1.0.0
**Usage:** `zapier push`


A shortcut for `zapier build && zapier upload` - this is our recommended way to push an app. This is a common workflow:

1. Make changes in `index.js` or other files.
Expand Down Expand Up @@ -754,7 +754,7 @@ $ zapier push
**Usage:** `zapier register "Example"`


This command registers your app with Zapier. After running this, you can run `zapier push` to push a version of your app that you can use in the Zapier editor.

> This will change the `./.zapierapprc` (which identifies the app associated with the current directory).
Expand Down Expand Up @@ -782,7 +782,7 @@ $ zapier register "Example"
**Usage:** `zapier scaffold {resource|trigger|search|create} "Name"`


The scaffold command does two general things:

* Creates a new destination file like `resources/contact.js`
Expand Down Expand Up @@ -819,7 +819,7 @@ $ zapier scaffold resource "Tag" --entry=index.js --dest=resources/tag
**Usage:** `zapier test`


This command is effectively the same as `npm test`, except we also validate your app and set up the environment. We recommend using mocha as your testing framework.

**Arguments**
Expand Down Expand Up @@ -849,7 +849,7 @@ $ zapier test
**Usage:** `zapier upload`


Upload the zip files already built by `zapier build` in build/build.zip and build/source.zip. The version and other app details are read by Zapier from the zip files.

> Note: we generally recommend using `zapier push` which does both `zapier build && zapier upload` in one step.
Expand All @@ -870,7 +870,7 @@ $ zapier upload
**Usage:** `zapier validate`


Runs the standard validation routine powered by json-schema that checks your app for any structural errors. This is the same routine that runs during `zapier build`, `zapier upload`, `zapier push` or even as a test in `zapier test`.

**Arguments**
Expand Down Expand Up @@ -909,7 +909,7 @@ $ zapier validate
**Usage:** `zapier versions`


Lists the versions of your app available for use in the Zapier editor.

**Arguments**
Expand Down
2 changes: 1 addition & 1 deletion example-apps/dynamic-dropdown/triggers/people.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { generateID } = require('../utils');
// fetches a list of records from the endpoint
const fetchList = (z, bundle) => {
const request = {
url: 'http://swapi.co/api/people/'
url: 'https://swapi.co/api/people/'
};

// ideally, we should poll through all the pages of results, but in this example
Expand Down
2 changes: 1 addition & 1 deletion example-apps/dynamic-dropdown/triggers/species.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const generateID = require('../utils').generateID;
// fetches a list of records from the endpoint
const fetchList = (z, bundle) => {
const request = {
url: 'http://swapi.co/api/species/',
url: 'https://swapi.co/api/species/',
params: {}
};

Expand Down
2 changes: 1 addition & 1 deletion example-apps/files/triggers/newFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const listFiles = (z, bundle) => {
// You may return a promise or a normal data structure from any perform method.
return z
.request({
url: 'http://57b20fb546b57d1100a3c405.mockapi.io/api/files'
url: 'https://57b20fb546b57d1100a3c405.mockapi.io/api/files'
})
.then(response => {
const files = JSON.parse(response.content);
Expand Down
76 changes: 39 additions & 37 deletions example-apps/github/samples/sample_repo_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,65 +28,67 @@ module.exports = {
url: 'https://api.github.com/repos/octocat/Hello-World',
html_url: 'https://github.com/octocat/Hello-World',
archive_url:
'http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}',
'https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}',
assignees_url:
'http://api.github.com/repos/octocat/Hello-World/assignees{/user}',
blobs_url: 'http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}',
'https://api.github.com/repos/octocat/Hello-World/assignees{/user}',
blobs_url: 'https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}',
branches_url:
'http://api.github.com/repos/octocat/Hello-World/branches{/branch}',
'https://api.github.com/repos/octocat/Hello-World/branches{/branch}',
clone_url: 'https://github.com/octocat/Hello-World.git',
collaborators_url:
'http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}',
'https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}',
comments_url:
'http://api.github.com/repos/octocat/Hello-World/comments{/number}',
commits_url: 'http://api.github.com/repos/octocat/Hello-World/commits{/sha}',
'https://api.github.com/repos/octocat/Hello-World/comments{/number}',
commits_url: 'https://api.github.com/repos/octocat/Hello-World/commits{/sha}',
compare_url:
'http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}',
'https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}',
contents_url:
'http://api.github.com/repos/octocat/Hello-World/contents/{+path}',
'https://api.github.com/repos/octocat/Hello-World/contents/{+path}',
contributors_url:
'http://api.github.com/repos/octocat/Hello-World/contributors',
'https://api.github.com/repos/octocat/Hello-World/contributors',
deployments_url:
'http://api.github.com/repos/octocat/Hello-World/deployments',
downloads_url: 'http://api.github.com/repos/octocat/Hello-World/downloads',
events_url: 'http://api.github.com/repos/octocat/Hello-World/events',
forks_url: 'http://api.github.com/repos/octocat/Hello-World/forks',
'https://api.github.com/repos/octocat/Hello-World/deployments',
downloads_url: 'https://api.github.com/repos/octocat/Hello-World/downloads',
events_url: 'https://api.github.com/repos/octocat/Hello-World/events',
forks_url: 'https://api.github.com/repos/octocat/Hello-World/forks',
git_commits_url:
'http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}',
'https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}',
git_refs_url:
'http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}',
'https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}',
git_tags_url:
'http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}',
'https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}',
git_url: 'git:github.com/octocat/Hello-World.git',
hooks_url: 'http://api.github.com/repos/octocat/Hello-World/hooks',
hooks_url: 'https://api.github.com/repos/octocat/Hello-World/hooks',
issue_comment_url:
'http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}',
'https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}',
issue_events_url:
'http://api.github.com/repos/octocat/Hello-World/issues/events{/number}',
issues_url: 'http://api.github.com/repos/octocat/Hello-World/issues{/number}',
keys_url: 'http://api.github.com/repos/octocat/Hello-World/keys{/key_id}',
labels_url: 'http://api.github.com/repos/octocat/Hello-World/labels{/name}',
languages_url: 'http://api.github.com/repos/octocat/Hello-World/languages',
merges_url: 'http://api.github.com/repos/octocat/Hello-World/merges',
'https://api.github.com/repos/octocat/Hello-World/issues/events{/number}',
issues_url:
'https://api.github.com/repos/octocat/Hello-World/issues{/number}',
keys_url: 'https://api.github.com/repos/octocat/Hello-World/keys{/key_id}',
labels_url: 'https://api.github.com/repos/octocat/Hello-World/labels{/name}',
languages_url: 'https://api.github.com/repos/octocat/Hello-World/languages',
merges_url: 'https://api.github.com/repos/octocat/Hello-World/merges',
milestones_url:
'http://api.github.com/repos/octocat/Hello-World/milestones{/number}',
'https://api.github.com/repos/octocat/Hello-World/milestones{/number}',
mirror_url: 'git:git.example.com/octocat/Hello-World',
notifications_url:
'http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}',
pulls_url: 'http://api.github.com/repos/octocat/Hello-World/pulls{/number}',
releases_url: 'http://api.github.com/repos/octocat/Hello-World/releases{/id}',
'https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}',
pulls_url: 'https://api.github.com/repos/octocat/Hello-World/pulls{/number}',
releases_url:
'https://api.github.com/repos/octocat/Hello-World/releases{/id}',
ssh_url: '[email protected]:octocat/Hello-World.git',
stargazers_url: 'http://api.github.com/repos/octocat/Hello-World/stargazers',
stargazers_url: 'https://api.github.com/repos/octocat/Hello-World/stargazers',
statuses_url:
'http://api.github.com/repos/octocat/Hello-World/statuses/{sha}',
'https://api.github.com/repos/octocat/Hello-World/statuses/{sha}',
subscribers_url:
'http://api.github.com/repos/octocat/Hello-World/subscribers',
'https://api.github.com/repos/octocat/Hello-World/subscribers',
subscription_url:
'http://api.github.com/repos/octocat/Hello-World/subscription',
'https://api.github.com/repos/octocat/Hello-World/subscription',
svn_url: 'https://svn.github.com/octocat/Hello-World',
tags_url: 'http://api.github.com/repos/octocat/Hello-World/tags',
teams_url: 'http://api.github.com/repos/octocat/Hello-World/teams',
trees_url: 'http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}',
tags_url: 'https://api.github.com/repos/octocat/Hello-World/tags',
teams_url: 'https://api.github.com/repos/octocat/Hello-World/teams',
trees_url: 'https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}',
homepage: 'https://github.com',
language: null,
forks_count: 9,
Expand Down Expand Up @@ -119,6 +121,6 @@ module.exports = {
name: 'MIT License',
spdx_id: 'MIT',
url: 'https://api.github.com/licenses/mit',
html_url: 'http://choosealicense.com/licenses/mit/'
html_url: 'https://choosealicense.com/licenses/mit/'
}
};
Loading

0 comments on commit 05ccd92

Please sign in to comment.