This repository has been archived by the owner on Jul 12, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes two problems:
their URI-encoded value, and their base64-encoded value. For
numeric secrets (e.g. a bank account id of 8675309), the line
where we base64-encoded the secret failed because Buffer.from
won't accept a numeric value.
were considered. This still worked for replacing values inside
of a string (e.g.
Your account number is :censored:
) but notas a standalone value in an object (e.g.
{account: 314159}
).Testing
zapier init censortest --template=minimal
App
definition inindex.js
:zapier push
http://httpbin.org/post
, you'll see multiplenull
references logged.package.json
, change thezapier-platform-core
dependency tozapier/zapier-platform-core#fix-censor-numbers
;npm i
package.json
back to8.0.1
SKIP_NPM_INSTALL=1 zapier push
input
data should now have the value:censored:9:9cb84e8ccc:
properly censored everywhere.