Currently imports can be namespaced using import * as
:
import * as foo from './fooCrud'
import * as bar from './barCrud'
// bundles:
// 8 functions
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var ed = require('supercop.js') | |
var keypair = ed.createKeypair() | |
Verifying that +philholden is my blockchain ID. https://onename.com/philholden |
made with esnextbin
import React from 'react'; | |
import {render} from 'react-dom' | |
import Todos from 'todos'; | |
import EmbedlyWrapper from 'embedly' | |
const Embed = () => ( | |
<EmbedlyWrapper> | |
<Todos /> | |
</EmbedlyWrapper> | |
) |
import { clone } from "./clone"; | |
function updateQueue() { | |
const _queue = []; | |
function add(update) { | |
_queue.push(update); | |
console.log("add", _queue); | |
_queue.sort((a, b) => a.updateNonce - b.updateNonce); | |
} |
// paste in console of any https site to run (e.g. this page) | |
// sample arguments for registration | |
// https://fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-raw-message-formats-v1.1-id-20160915.html#authentication-response-message-success | |
var createCredentialDefaultArgs = { | |
publicKey: { | |
// Relying Party (a.k.a. - Service): | |
rp: { | |
name: "Acme" | |
}, |
import wasmBytes from "./automerge_wasm_bg.wasm"; | |
import * as bg from "./automerge_wasm_bg.js"; | |
const {create} = bg; | |
export interface Env {} | |
export default { | |
async fetch(request, env, ctx): Promise<Response> { | |
// async init cannot happen outside request | |
// see later for generating bg.imports |