-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Comparing changes
Open a pull request
base repository: auth0/node-jsonwebtoken
base: e54e53c70ad3fa0d6b54f916ea4a2a2d5a8c47c2
head repository: auth0/node-jsonwebtoken
compare: e1fa9dcc12054a8681db4e6373da1b30cf7016e3
Commits on May 13, 2017
-
Configuration menu - View commit details
-
Copy full SHA for b61cc34 - Browse repository at this point
Copy the full SHA b61cc34View commit details
Commits on Aug 29, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 66a4f8b - Browse repository at this point
Copy the full SHA 66a4f8bView commit details
Commits on Sep 6, 2017
-
Remove joi to shrink module size (#348)
* Add cost-of-modules report to npm test Results before any changes ┌─────────────┬────────────┬───────┐ │ name │ children │ size │ ├─────────────┼────────────┼───────┤ │ joi │ 4 │ 3.12M │ <--!!! ├─────────────┼────────────┼───────┤ │ jws │ 5 │ 0.18M │ ├─────────────┼────────────┼───────┤ │ lodash.once │ 0 │ 0.01M │ ├─────────────┼────────────┼───────┤ │ ms │ 0 │ 0.01M │ ├─────────────┼────────────┼───────┤ │ xtend │ 0 │ 0.00M │ ├─────────────┼────────────┼───────┤ │ 5 modules │ 9 children │ 3.32M │ └─────────────┴────────────┴───────┘ * Replace joi with bespoke validator based on lodash Dramatically reduces the module size without breaking ES5 compatability - ┌──────────────────────┬────────────┬───────┐ │ name │ children │ size │ ├──────────────────────┼────────────┼───────┤ │ jws │ 5 │ 0.18M │ ├──────────────────────┼────────────┼───────┤ │ lodash.includes │ 0 │ 0.02M │ ├──────────────────────┼────────────┼───────┤ │ lodash.once │ 0 │ 0.01M │ ├──────────────────────┼────────────┼───────┤ │ lodash.isinteger │ 0 │ 0.01M │ ├──────────────────────┼────────────┼───────┤ │ ms │ 0 │ 0.01M │ ├──────────────────────┼────────────┼───────┤ │ lodash.isplainobject │ 0 │ 0.01M │ ├──────────────────────┼────────────┼───────┤ │ xtend │ 0 │ 0.00M │ ├──────────────────────┼────────────┼───────┤ │ lodash.isstring │ 0 │ 0.00M │ ├──────────────────────┼────────────┼───────┤ │ lodash.isboolean │ 0 │ 0.00M │ ├──────────────────────┼────────────┼───────┤ │ lodash.isnumber │ 0 │ 0.00M │ ├──────────────────────┼────────────┼───────┤ │ lodash.isarray │ 0 │ 0.00M │ ├──────────────────────┼────────────┼───────┤ │ 11 modules │ 5 children │ 0.25M │ └──────────────────────┴────────────┴───────┘ * Enhance validator error messages and add tests
Configuration menu - View commit details
-
Copy full SHA for 2e7e68d - Browse repository at this point
Copy the full SHA 2e7e68dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0be5409 - Browse repository at this point
Copy the full SHA 0be5409View commit details -
verify: remove process.nextTick (#302)
running synchronous code asynchronously using process.nextTick has a negative latency impact
Configuration menu - View commit details
-
Copy full SHA for 3305cf0 - Browse repository at this point
Copy the full SHA 3305cf0View commit details -
Merge pull request #349 from ziluvatar/fix-max-age-number-and-seconds
maxAge: Fix logic with number + use seconds instead of ms
Configuration menu - View commit details
-
Copy full SHA for cfc04a9 - Browse repository at this point
Copy the full SHA cfc04a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12cd8f7 - Browse repository at this point
Copy the full SHA 12cd8f7View commit details -
Merge pull request #393 from ziluvatar/migration-notes-to-readme
docs: readme, migration notes
Configuration menu - View commit details
-
Copy full SHA for 2ec3263 - Browse repository at this point
Copy the full SHA 2ec3263View commit details -
Configuration menu - View commit details
-
Copy full SHA for f38bd8e - Browse repository at this point
Copy the full SHA f38bd8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f313850 - Browse repository at this point
Copy the full SHA f313850View commit details
Commits on Sep 12, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 7508e89 - Browse repository at this point
Copy the full SHA 7508e89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71e900d - Browse repository at this point
Copy the full SHA 71e900dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb39501 - Browse repository at this point
Copy the full SHA bb39501View commit details
Commits on Sep 15, 2017
-
Fix typo in 'options.header' reference; Update Buffer() example to us…
…e recommended method (#380)
Configuration menu - View commit details
-
Copy full SHA for 128a9e1 - Browse repository at this point
Copy the full SHA 128a9e1View commit details
Commits on Oct 9, 2017
-
Configuration menu - View commit details
-
Copy full SHA for d3f996b - Browse repository at this point
Copy the full SHA d3f996bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77ee965 - Browse repository at this point
Copy the full SHA 77ee965View commit details -
Enhance audience check to verify against regular expressions (#398)
* Enhance audience check to verify against regular expressions * Enhance audience check to verify against regular expressions * Adapted README to have a showcase of the new RegExp-check for the audience validation
Configuration menu - View commit details
-
Copy full SHA for 81501a1 - Browse repository at this point
Copy the full SHA 81501a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb27eb3 - Browse repository at this point
Copy the full SHA bb27eb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c08f65 - Browse repository at this point
Copy the full SHA 5c08f65View commit details -
Configuration menu - View commit details
-
Copy full SHA for efa517a - Browse repository at this point
Copy the full SHA efa517aView commit details
Commits on Nov 17, 2017
-
Configuration menu - View commit details
-
Copy full SHA for dddcb73 - Browse repository at this point
Copy the full SHA dddcb73View commit details
Commits on Jan 10, 2018
-
add newer node versions to build matrix (#428)
* add newer node versions to build matrix * Dont test for node 9 Its not stable and seems to fail on travis
Configuration menu - View commit details
-
Copy full SHA for 83f3eee - Browse repository at this point
Copy the full SHA 83f3eeeView commit details
Commits on Jan 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 25e0e62 - Browse repository at this point
Copy the full SHA 25e0e62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2764a64 - Browse repository at this point
Copy the full SHA 2764a64View commit details
Commits on Jan 22, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d265cf1 - Browse repository at this point
Copy the full SHA d265cf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b0a010 - Browse repository at this point
Copy the full SHA 7b0a010View commit details
Commits on Mar 2, 2018
-
Add a new mutatePayload option (#446)
This option allows you to keep a reference to the raw token payload after claims have been applied to it but before it has been encoded.
Configuration menu - View commit details
-
Copy full SHA for d6d7c5e - Browse repository at this point
Copy the full SHA d6d7c5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c86a093 - Browse repository at this point
Copy the full SHA c86a093View commit details -
Configuration menu - View commit details
-
Copy full SHA for dee583a - Browse repository at this point
Copy the full SHA dee583aView commit details -
Clarify that buffer/string payloads must be JSON (#442)
It does kinda go without saying that JWTs (_JSON_ Web Tokens) need to contain JSON but it's worth mentioning that signing doesn't check your payload. In some unit tests I was writing where the payload was a dummy (non-JSON parsable) string, JWTs were being signed okay but they're not valid according to the spec.
1Configuration menu - View commit details
-
Copy full SHA for e8ac1be - Browse repository at this point
Copy the full SHA e8ac1beView commit details
Commits on Apr 5, 2018
-
Check payload is not null when decoded. (#444)
* Check payload is not null when decoded. Fixed "Cannot read property 'nbf' of null" * Condition on obj !== null for clarity * Added test for decoding null token
Configuration menu - View commit details
-
Copy full SHA for 1232ae9 - Browse repository at this point
Copy the full SHA 1232ae9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a9954a - Browse repository at this point
Copy the full SHA 7a9954aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 092d55a - Browse repository at this point
Copy the full SHA 092d55aView commit details
Commits on Apr 26, 2018
-
Configuration menu - View commit details
-
Copy full SHA for f0e0954 - Browse repository at this point
Copy the full SHA f0e0954View commit details
Commits on May 22, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c8ff7b2 - Browse repository at this point
Copy the full SHA c8ff7b2View commit details
Commits on May 23, 2018
-
Configuration menu - View commit details
-
Copy full SHA for cd33cc8 - Browse repository at this point
Copy the full SHA cd33cc8View commit details
Commits on May 30, 2018
-
Update 'jws' dependency to latest to fix a security issue
Configuration menu - View commit details
-
Copy full SHA for ebde9b7 - Browse repository at this point
Copy the full SHA ebde9b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e3e396 - Browse repository at this point
Copy the full SHA 5e3e396View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73c4a5a - Browse repository at this point
Copy the full SHA 73c4a5aView commit details
Commits on Jun 11, 2018
-
Secret callback revisited (#480)
* Introduction of the secret callback Without the more contentious 'none'-changes * Removed some spaces... I should really add a editor.config and eslint to this project ;-) * Removed xtend as a dependency, as the native Object.Assign can do this as well * Removed xtend as a dependency, as the native Object.Assign can do this as well * Resolve feedback from review * Added extra test and fixed the associated bug * The return of the header * Forgot to change this one as well... Sorry bout that * Updated the readme and made the if-statements consistent * Space; The final frontier
Configuration menu - View commit details
-
Copy full SHA for d01cc7b - Browse repository at this point
Copy the full SHA d01cc7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 969813f - Browse repository at this point
Copy the full SHA 969813fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad98358 - Browse repository at this point
Copy the full SHA ad98358View commit details
Commits on Jun 16, 2018
-
Added Istanbul to check test-coverage (#468)
* Added Istanbul to check test-coverage * node_modules_bak is generated and automatically removed by cost-of-modules and isn't needed in the ignore.
Configuration menu - View commit details
-
Copy full SHA for 9676a83 - Browse repository at this point
Copy the full SHA 9676a83View commit details -
Use lolex for faking date in tests (#491)
Sinon.JS provides a project called lolex to handle faking dates. This change replaces the fakeDate utility with the equivalent Sinon.JS code.
Configuration menu - View commit details
-
Copy full SHA for 677ead6 - Browse repository at this point
Copy the full SHA 677ead6View commit details
Commits on Jun 25, 2018
-
Complete ESLint conversion and cleanup (#490)
* Add extension to ESLint config file The .eslintrc file without an extension was deprecated a few years ago, so this change renames the file to add the required extension. See: eslint/eslint@c9a8883 * Add ESLint to package.json This change adds ESLint as a dev-dependency and adds a lint script that will run ESLint. * Complete switch from JSHint to ESLint Convert all the JSHint rules to the ESLint equivalents where possible. The no-undef rule in ESLint caught a few cases of undefined usages in the tests, so they were also fixed. * Add a .eslintignore file The HTML coverage report is currently being linted, which causes a lot if invalid linting errors. This change adds a ignore file to ensure these files are properly skipped during linting.
Configuration menu - View commit details
-
Copy full SHA for cb1d2e1 - Browse repository at this point
Copy the full SHA cb1d2e1View commit details -
Make code-coverage mandatory when running tests (#495)
* Made code-coverage mandatory when running the tests. * Missed the trailing-comma...
Configuration menu - View commit details
-
Copy full SHA for fb0084a - Browse repository at this point
Copy the full SHA fb0084aView commit details
Commits on Jun 27, 2018
-
Refactor tests related to notBefore and nbf (#497)
This change extracts all tests in the current files related to notBefore and nbf into a single test file. It also adds several missing related tests.
Configuration menu - View commit details
-
Copy full SHA for 39adf87 - Browse repository at this point
Copy the full SHA 39adf87View commit details
Commits on Jul 6, 2018
-
Refactor tests related to expiresIn and exp (#501)
This change extracts all tests in the current test files related to expiresIn and exp into a single test file. It also adds several missing tests.
Configuration menu - View commit details
-
Copy full SHA for 72f0d9e - Browse repository at this point
Copy the full SHA 72f0d9eView commit details
Commits on Jul 12, 2018
-
Refactor tests related to audience and aud (#503)
This change extracts all tests in the existing test files related to audience and aud into a single test file. Several other tests are also added that were missing from the existing files.
Configuration menu - View commit details
-
Copy full SHA for 53d405e - Browse repository at this point
Copy the full SHA 53d405eView commit details
Commits on Jul 20, 2018
-
Minor test refactoring for recently added tests (#504)
* Prefix claim- to claim related test files * Fix typo of "signWithNoBfore" in notBefore tests
Configuration menu - View commit details
-
Copy full SHA for e2860a9 - Browse repository at this point
Copy the full SHA e2860a9View commit details
There are no files selected for viewing
This file was deleted.
This file was deleted.