Note: A lot of this comes down to "hopefully npm moves to dependency tree realization soon"
Issues to watch:
export function each() {} | |
export function map() {} | |
export function reduce() {} | |
export function isEmpty() {} | |
export function extend() {} |
/* jshint node:true, esnext:true */ | |
'use strict'; | |
// Run: node --harmony_proxies --harmony-collections safe-map.js | |
function createSafeObject(props) { | |
if (typeof props !== 'object' || props === null) { | |
props = {}; | |
} |
'use strict'; | |
var http = require('http'); | |
var React = require('react'); | |
var $ = React.DOM; | |
var _ = require('lodash'); | |
var respond = require('quinn-respond'); | |
var resolveDeep = require('resolve-deep'); | |
var Promise = require('bluebird'); |
var entityId = 'xy'; | |
var loadEntity = cached.deferred(_.partial(myService.fetch, '/entity/' + entityId)); | |
cached('myService').getOrElse(entityId, loadEntity, function(err, entity) { | |
// 80% of time this works every time | |
}); |
Note: A lot of this comes down to "hopefully npm moves to dependency tree realization soon"
Issues to watch:
import * as assert from 'assert'; | |
import { MY_FLAG } from './trust'; | |
assert.ok(MY_FLAG === 1); | |
setTimeout(function() { | |
try { | |
assert.ok(MY_FLAG === 1); | |
} catch (err) { | |
console.log('Just ES6 things.'); | |
} |
I hereby claim:
To claim this, I am signing this object:
INFO [2015-03-16 22:25:39,674] com.groupon.paywithgroupon.steno.StenoServletFilter: {"time":"2015-03-16T22:25:39.674Z","name":"http.in.start","level":"info","data":{"context":{"transactionId":"705d975e-0ab4-4299-8950-54323a57e5b1"}}} | |
INFO [2015-03-16 22:25:39,789] com.groupon.paywithgroupon.steno.StenoJaxRsFilter: {"time":"2015-03-16T22:25:39.778Z","name":"http.out.start","level":"info","data":{"method":"GET","url":{"protocol":"http","host":"orders-read-proxy1-staging.snc1","port":-1,"path":"/tps/v1/users/d6b37100-c9c2-11e4-a073-52540a145061/billing_records","query":"use_consumer_id=true"},"groupId":"dd617031-258e-4da0-8229-efdd73addd2d","service":"orders","resource":"billingRecords","action":"getForConsumer","context":{"transactionId":"705d975e-0ab4-4299-8950-54323a57e5b1"}}} | |
INFO [2015-03-16 22:25:40,275] com.groupon.paywithgroupon.steno.StenoJaxRsFilter: {"time":"2015-03-16T22:25:40.275Z","name":"http.out","level":"info","data":{"method":"GET","url":{"protocol":"http","host":"orders-read-proxy1-staging. |
diff --git a/test/NetworkAgent.js b/test/NetworkAgent.js | |
index f63309b..0d21572 100644 | |
--- a/test/NetworkAgent.js | |
+++ b/test/NetworkAgent.js | |
@@ -177,6 +177,15 @@ describe('NetworkAgent', function() { | |
commandlet.stdin.write('send GET request\n'); | |
}); | |
+ | |
+ xit('should report queued requests', function(done) { |
getName() { | |
&"Quinn"; | |
} | |
# Result: | |
# | |
# async function getName() { | |
# return Promise.resolve("Quinn"); | |
# } |