Browse Source

made leading comma style more consistent

merge-requests/3/head
tigerbot 7 years ago
parent
commit
43a61546d8
  1. 10
      lib/com.daplie.walnut.current/scripts/daplie-pbkdf2.js
  2. 10
      lib/com.daplie.walnut.current/scripts/pbkdf2.webcrypto.test.js
  3. 2
      tests/schemes-config.js

10
lib/com.daplie.walnut.current/scripts/daplie-pbkdf2.js

@ -92,11 +92,11 @@
// First, create a PBKDF2 "key" containing the passphrase // First, create a PBKDF2 "key" containing the passphrase
return crypto.subtle.importKey( return crypto.subtle.importKey(
"raw", "raw"
Unibabel.utf8ToBuffer(nodeObj.secret), , Unibabel.utf8ToBuffer(nodeObj.secret)
{ "name": kdf.kdf }, , { "name": kdf.kdf }
false, , false
["deriveKey"]). , ["deriveKey"]).
// Derive a key from the password // Derive a key from the password
then(function (passphraseKey) { then(function (passphraseKey) {
var keyconf = { var keyconf = {

10
lib/com.daplie.walnut.current/scripts/pbkdf2.webcrypto.test.js

@ -26,11 +26,11 @@
// First, create a PBKDF2 "key" containing the password // First, create a PBKDF2 "key" containing the password
return crypto.subtle.importKey( return crypto.subtle.importKey(
"raw", "raw"
Unibabel.utf8ToBuffer(passphrase), , Unibabel.utf8ToBuffer(passphrase)
{ "name": kdfname }, , { "name": kdfname }
false, , false
["deriveKey"]). , ["deriveKey"]).
// Derive a key from the password // Derive a key from the password
then(function (passphraseKey) { then(function (passphraseKey) {
return crypto.subtle.deriveKey( return crypto.subtle.deriveKey(

2
tests/schemes-config.js

@ -30,7 +30,7 @@ var results = {
{"id":"org.oauth3_oauth3.org","apiId":"org.oauth3","domainId":"oauth3.org"} {"id":"org.oauth3_oauth3.org","apiId":"org.oauth3","domainId":"oauth3.org"}
, {"id":"org.oauth3_hellabit.com#connect###","apiId":"org.oauth3","domainId":"hellabit.com#connect###"} , {"id":"org.oauth3_hellabit.com#connect###","apiId":"org.oauth3","domainId":"hellabit.com#connect###"}
] ]
,"appsDomains":[ , "appsDomains":[
{"id":"oauth3-app_oauth3.org","appId":"oauth3-app","domainId":"oauth3.org"} {"id":"oauth3-app_oauth3.org","appId":"oauth3-app","domainId":"oauth3.org"}
, {"id":"hellabit-app_hellabit.com","appId":"hellabit-app","domainId":"hellabit.com"} , {"id":"hellabit-app_hellabit.com","appId":"hellabit-app","domainId":"hellabit.com"}
, {"id":"hellabit-app_hellabit.com###","appId":"hellabit-app","domainId":"hellabit.com#connect###"} , {"id":"hellabit-app_hellabit.com###","appId":"hellabit-app","domainId":"hellabit.com#connect###"}

Loading…
Cancel
Save