git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| const HasProtectedAccessor = stampit({ | |
| // stamp configuration | |
| deepConf: { | |
| // collect all the property names to protect | |
| protectedProperties: {} | |
| }, | |
| statics: { | |
| // API of the stamp | |
| protectProperty(names) { | |
| // will deep merge the base objects with `names` |
| const test = require("tape"); | |
| const stampit = require("../src/stampit"); | |
| function hasStringAccessor(name) { | |
| let storedValue; | |
| return stampit({ | |
| props: { | |
| get [name]() { | |
| return storedValue; |
| // The code below was largely taken from: | |
| // https://github.com/strangerlabs/webauthn/blob/9959cb2b5f87692b8b1fecd799dd4029a3bf61b1/src/Webauthn.js#L501 | |
| const crypto = require("crypto"); | |
| const base64url = require("base64url"); | |
| const cbor = require("cbor"); | |
| function parseAttestationObject(attestationObject) { | |
| const attestationObjectBuffer = base64url.toBuffer(attestationObject); | |
| return cbor.decodeAllSync(attestationObjectBuffer)[0]; |
| module.exports = { | |
| ra: { | |
| action: { | |
| delete: 'Видалити', | |
| show: 'Перегляд', | |
| list: 'Список', | |
| save: 'Зберегти', | |
| create: 'Список', | |
| edit: 'Редагувати', | |
| sort: 'Сортувати', |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| var ru = { | |
| 'WINDOW_MAIN':'1Clipboard', | |
| 'WINDOW_PREFERENCES':'Настройки', | |
| 'TOPBAR_RECENT':'Последние', | |
| 'TOPBAR_STARRED':'Избранные', | |
| 'TOPBAR_SEARCH':'Поиск', | |
| 'TOPBAR_MORE':'Дополнительно', | |
| 'TOPBAR_OFFLINE':'Offline', | |
| 'TOPBAR_PAUSED':'Пауза', |
| var ua = { | |
| 'WINDOW_MAIN':'1Clipboard', | |
| 'WINDOW_PREFERENCES':'Налаштування', | |
| 'TOPBAR_RECENT':'Останні', | |
| 'TOPBAR_STARRED':'Вибрані', | |
| 'TOPBAR_SEARCH':'Пошук', | |
| 'TOPBAR_MORE':'Додатково', | |
| 'TOPBAR_OFFLINE':'Offline', | |
| 'TOPBAR_PAUSED':'Пауза', |
| describe('server', () => { | |
| const App = require('../app2'); | |
| it('should call exit process after setImmediate()', (done) => { | |
| let errorCallback = null; | |
| let setImmediateCalled = false; | |
| const MockedApp = App.props({ | |
| http: { | |
| createServer() { | |
| return { |
| describe('routing', () => { | |
| const App = require('../app2'); | |
| const {handleNotFound, handleGenericError} = App.compose.methods; | |
| it('should set status code to 404 when no route found', (done) => { | |
| handleNotFound({}, {}, (error) => { | |
| if (!error || error.status !== 404) { | |
| throw new Error('Error status should be 404'); | |
| } | |
| done(); |
| describe('express app setup', () => { | |
| const http = { | |
| createServer() { | |
| return {on() {}, listen() {}}; | |
| } | |
| }; | |
| const App = require('../app2').props({http}); | |
| it('should share ./public', (done) => { | |
| const express = () => ({set() {}, use() {}}); |