This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const xs = require('xstream').default | |
module.exports = function fromStream (stream, flush = stream => {}) { | |
return xs.create({ | |
start: listener => { | |
stream.on('data', data => { listener.next(data) }) | |
stream.on('error', error => { listener.error(error) }) | |
stream.on('end', () => { listener.complete() }) | |
}, | |
stop: () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import React, {Component} from 'react' | |
import { | |
View, | |
Dimensions, | |
Animated, | |
StatusBar, | |
Platform, | |
PanResponder, | |
Text, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DatArchive = require('node-dat-archive') | |
const WebDb = require('@beaker/webdb') | |
const webdb = new WebDb('./index', { DatArchive }) | |
webdb.define('foo', { | |
schema: { | |
type: 'object', | |
properties: { | |
foo: { type: 'string' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1jjgb5JPRsMQShn3SrAUD3e82mS3eFQmh https://explorer.blockstack.org/address/1jjgb5JPRsMQShn3SrAUD3e82mS3eFQmh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloLink } from 'apollo-link' | |
import QueueLink from 'apollo-link-queue' | |
import { RetryLink } from 'apollo-link-retry' | |
import { NetInfo } from 'react-native' | |
import Observable from 'zen-observable' | |
export function createOfflineLink({ cache }) { | |
const retryLink = new RetryLink({ | |
attempts: { | |
max: Infinity, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Transparently persist an object property in localStorage. | |
// Usage: | |
// persist(state, 'backgroundColor') | |
// console.log(state.backgroundColor) // you can access the property on the object as usual. | |
// state.backgroundColor = 'red' // the value will persist across sessions. | |
module.exports = function persist(obj, key) { | |
Object.defineProperty(obj, key, { | |
get: () => localStorage.getItem(key), | |
set: value => localStorage.setItem(key, value), | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stores a hypercore feed & a hypertrie inside a hypertrie. | |
// The feed is stored under the prefix "feed/" | |
// The trie is stored under the prefix "key-value/" | |
const hypercore = require('hypercore') | |
const hypertrie = require('hypertrie') | |
const rakv = require('random-access-key-value') | |
const ram = require('random-access-memory') | |
function hypertrieStorage(hypertrie, prefix) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/sentry-expo/build/integrations/bare.js b/node_modules/sentry-expo/build/integrations/bare.js | |
index 9d48f14..fa22c54 100644 | |
--- a/node_modules/sentry-expo/build/integrations/bare.js | |
+++ b/node_modules/sentry-expo/build/integrations/bare.js | |
@@ -77,9 +77,10 @@ class ExpoBareIntegration { | |
// The name of the sourcemap file in Sentry is different depending on whether it was uploaded | |
// by the upload-sourcemaps script in this package (in which case it will have a revisionId) | |
// or by the default @sentry/react-native script. | |
- let sentryFilename; | |
- sentryFilename = react_native_1.Platform.OS === 'android' ? 'index.android.bundle' : 'main.jsbundle'; |
OlderNewer