Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mozilla/hawk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 57ebb934272296393595aea06d83f79895f3d79c
Choose a base ref
...
head repository: mozilla/hawk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f1426e47123bb2193748c712bc2585e2ec2b1da0
Choose a head ref
Loading
Showing with 1,943 additions and 4,968 deletions.
  1. +0 −2 .eslintignore
  2. +62 −0 .github/workflows/codeql-analysis.yml
  3. +13 −19 .gitignore
  4. +0 −18 .npmignore
  5. +37 −0 .taskcluster.yml
  6. +0 −8 .travis.yml
  7. +613 −0 API.md
  8. +15 −0 CODE_OF_CONDUCT.md
  9. +5 −0 CONTRIBUTING.md
  10. +0 −28 LICENSE
  11. +9 −0 LICENSE.md
  12. +12 −624 README.md
  13. +3 −0 SECURITY.md
  14. +0 −23 bower.json
  15. +0 −3 client.js
  16. +0 −19 component.json
  17. +0 −92 example/usage.js
  18. BIN images/hawk.png
  19. BIN images/logo.png
  20. +0 −644 lib/browser.js
  21. +62 −79 lib/client.js
  22. +3 −6 lib/crypto.js
  23. +3 −5 lib/index.js
  24. +189 −196 lib/server.js
  25. +32 −24 lib/utils.js
  26. +13 −22 package.json
  27. +0 −1,545 test/browser.js
  28. +149 −192 test/client.js
  29. +7 −21 test/crypto.js
  30. +123 −217 test/index.js
  31. +18 −32 test/readme.js
  32. +367 −597 test/server.js
  33. +176 −517 test/uri.js
  34. +32 −35 test/utils.js
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 21 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['javascript']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
32 changes: 13 additions & 19 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
.idea
*.iml
npm-debug.log
dump.rdb
node_modules
components
build
results.tap
results.xml
npm-shrinkwrap.json
config.json
.DS_Store
*/.DS_Store
*/*/.DS_Store
._*
*/._*
*/*/._*
**/node_modules
**/package-lock.json

coverage.*
lib-cov
dist

**/.DS_Store
**/._*

**/*.pem

**/.vs
**/.vscode
**/.idea
yarn.lock
18 changes: 0 additions & 18 deletions .npmignore

This file was deleted.

37 changes: 37 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 1
policy:
pullRequests: public
tasks:
$let:
head_rev:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.sha}
else: ${event.after}
repository:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.repo.html_url}
else: ${event.repository.html_url}
in:
- provisionerId: 'proj-taskcluster'
workerType: 'ci'
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
maxRunTime: 3600
image: node:12
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${repository} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${head_rev} &&
yarn &&
yarn test
metadata:
name: test
description: Tests for hawk
owner: nobody@mozilla.com
source: https://github.com/mozilla/hawk
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

Loading