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
var vm = require('vm'), | |
code = 'var square = n * n;', | |
fn = new Function('n', code), | |
script = vm.createScript(code), | |
sandbox; | |
n = 5; | |
sandbox = { n: n }; | |
benchmark = function(title, funk) { |
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
/*! | |
Chosen, a Select Box Enhancer for jQuery and Prototype | |
by Patrick Filler for Harvest, http://getharvest.com | |
Version 1.3.0 | |
Full source at https://github.com/harvesthq/chosen | |
Copyright (c) 2011-2015 Harvest http://getharvest.com | |
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md | |
This file is generated by `grunt build`, do not edit it by hand. |
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
// require deployd | |
var deployd = require('deployd'); | |
// configure database etc. | |
var server = deployd({ | |
port: process.env.PORT || 1337, | |
env: 'production', | |
db: { connectionString: process.env.MONGO_URL } | |
}); |
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
/*! | |
* angular-translate - v2.7.0 - 2015-04-26 | |
* http://github.com/angular-translate/angular-translate | |
* Copyright (c) 2015 ; Licensed MIT | |
*/ | |
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module unless amdModuleId is set | |
define([], function () { | |
return (factory()); |
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
/*! | |
* angular-translate - v2.7.0 - 2015-04-25 | |
* http://github.com/angular-translate/angular-translate | |
* Copyright (c) 2015 ; Licensed MIT | |
*/ | |
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module unless amdModuleId is set | |
define([], function () { | |
return (factory()); |
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
if(!ctx.server.redisClient) { | |
var redis = require('redis'); | |
ctx.server.redisClient = redis.createClient(global.process.env.REDIS_URL); | |
} | |
if (!internal || !query.key) return; | |
//console.log('cache deleting', query.key); | |
ctx.server.redisClient.del(query.key, function(err) { |
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
var deployd = require('deployd'); | |
var redisAdapter = require('socket.io-redis'); | |
var redis = require('redis'); | |
// need two client pairs because one is used for socket.io and the other for sessions | |
// might not be necessary anymore, see https://github.com/socketio/socket.io-redis/issues/90 | |
var pub = redis.createClient(process.env.REDIS_URL); | |
var sub = redis.createClient(process.env.REDIS_URL, { 'return_buffers': true }); |
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
if(!ctx.server.redisClient) { | |
var redis = require('redis'); | |
ctx.server.redisClient = redis.createClient(global.process.env.REDIS_URL); | |
} | |
if (!internal || !query.key) return; | |
//console.log('cache getting', query.key); | |
$addCallback(); | |
ctx.server.redisClient.get(query.key, function(err, 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
packageExtensions: | |
"@agm/core@*": | |
peerDependencies: | |
rxjs: "*" | |
"@angular/cdk@*": | |
peerDependencies: | |
rxjs: "*" | |
"@angular/material@*": | |
peerDependencies: | |
"@angular/platform-browser": "*" |
This file has been truncated, but you can view the full file.
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/@graphql-codegen/visitor-plugin-common/index.cjs.js b/node_modules/@graphql-codegen/visitor-plugin-common/index.cjs.js | |
index 71d9f92..d25561d 100644 | |
--- a/node_modules/@graphql-codegen/visitor-plugin-common/index.cjs.js | |
+++ b/node_modules/@graphql-codegen/visitor-plugin-common/index.cjs.js | |
@@ -803,12 +803,34 @@ class OperationVariablesToObject { | |
} | |
return null; | |
} | |
- transform(variablesNode) { | |
+ transform(variablesNode, selectionSet) { |
OlderNewer