UNPKG

wasteful-scope

Version:

OAuth2 scope utilities for the wasteful scope parsing, comparing, merging, etc

39 lines (30 loc) 673 B
'use strict'; // TODO this needs to go into config.js var scopeGroups , scopeGroups2 , vocab ; scopeGroups = { 'me': {} , 'friends': {} , 'groups': {} }; scopeGroups2 = { 'stake.leadership': {} , 'stake.adults': {} , 'stake.members': {} , 'ward.adults': {} , 'ward.members': {} }; vocab = { 'name': 'names' , 'photo': 'photos' , 'email': 'email addresses' , 'phone': 'phone numbers' , 'address': 'mailing addresses' }; require('./tests/parse').create(scopeGroups); require('./tests/stringify').create(); require('./tests/diff').create(scopeGroups2); require('./tests/merge').create(scopeGroups2); require('./tests/wordify').create(scopeGroups2, vocab);