Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies to enable Greenkeeper 🌴 #534

Merged
merged 7 commits into from
Nov 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dtslint-build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"dtslint": "^0.3.0"
"dtslint": "^0.9.9"
},
"scripts": {
"dtslint": "dtslint ../types"
Expand Down
10 changes: 10 additions & 0 deletions greenkeeper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"groups": {
"default": {
"packages": [
"dtslint-build/package.json",
"package.json"
]
}
}
}
2 changes: 1 addition & 1 deletion lib/common/delete-by-dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function (obj, path) {
const nonLeafLen = parts.length - 1;

for (let i = 0; i < nonLeafLen; i++) {
let part = parts[i];
const part = parts[i];
if (!(part in obj)) { return; }

obj = obj[part];
Expand Down
2 changes: 1 addition & 1 deletion lib/common/exists-by-dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function (obj, path) {
const nonLeafLen = parts.length - 1;

for (let i = 0; i < nonLeafLen; i++) {
let part = parts[i];
const part = parts[i];

if (!(part in obj)) { return false; }

Expand Down
1 change: 1 addition & 0 deletions lib/common/set-by-dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = function (obj, path, value, ifDelete) {
return parts.reduce(
(obj1, part, i) => {
if (i !== lastIndex) {
// eslint-disable-next-line
if (!obj1.hasOwnProperty(part) || typeof obj1[part] !== 'object') {
obj1[part] = {};
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ module.exports = function (cacheMap, keyFieldName, options = {}) {
case 'find': // fall through
case 'create':
return;
case 'get':
case 'get': {
const key = makeCacheKey(context.id);
const value = cacheMap.get(key);

if (value) context.result = value;
return context;
default: // update, patch, remove
} default: // update, patch, remove
if (context.id) {
cacheMap.delete(context.id);
return;
Expand Down
3 changes: 1 addition & 2 deletions lib/services/fgraphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,12 @@ function processRecordFieldResolver (store, query, depth, rec, fieldName, type)
debug('is resolver call');
const ourQuery = store.feathersSdl[type][fieldName];
const ourResolver = store.ourResolvers[type][fieldName];
let args;

if (!isFunction(ourResolver)) {
throwError(`Resolver for Type ${type} fieldName ${fieldName} is typeof ${typeof ourResolver} not function. (fgraphql)`, 203);
}

args = isObject(query[fieldName]) ? query[fieldName]._args : undefined;
const args = isObject(query[fieldName]) ? query[fieldName]._args : undefined;
debug(`resolver listType ${ourQuery.listType} args ${JSON.stringify(args)}`);

// Call resolver function.
Expand Down
3 changes: 2 additions & 1 deletion lib/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const conditionals = _conditionals(
return serviceHooks ? combine(...serviceHooks).call(this, hookFnArgs[0]) : hookFnArgs[0];
});

module.exports = Object.assign({ callbackToPromise,
module.exports = Object.assign({
callbackToPromise,
actOnDefault,
actOnDispatch,
alterItems,
Expand Down
4 changes: 2 additions & 2 deletions lib/services/populate.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = function (options, ...rest) {
if ('provider' in schema) {
return schema;
} else {
return Object.assign({}, schema, {provider});
return Object.assign({}, schema, { provider });
}
});

Expand Down Expand Up @@ -234,7 +234,7 @@ function populateAddChild (options, context, parentItem, childSchema, depth) {
if ('provider' in schema) {
return schema;
} else {
return Object.assign({}, schema, {provider});
return Object.assign({}, schema, { provider });
}
});

Expand Down
2 changes: 1 addition & 1 deletion lib/services/promise-to-callback.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/* globals setImmediate:1 */
/* globals setImmediate:true */

module.exports = function (promise) {
console.log('**Deprecated** The promiseToCallback hook will be removed next FeathersJS version.');
Expand Down
2 changes: 1 addition & 1 deletion lib/services/serialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function (schema1) {
if (only) {
const newItem = {};
only.concat('_include', '_elapsed', item._include || []).forEach(key => {
let value = getByDot(item, key);
const value = getByDot(item, key);
if (value !== undefined) {
setByDot(newItem, key, value);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/sifter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ module.exports = function (getSifter) {
checkContext(context, 'after', 'find', 'sifter');

if (typeof getSifter !== 'function') {
throw new errors.BadRequest(`The sifter param must be a function. (sifter)`);
throw new errors.BadRequest('The sifter param must be a function. (sifter)');
}

const sifter = getSifter(context);

if (typeof sifter !== 'function') {
throw new errors.BadRequest(`The result of calling the sifter param must be a function. (sifter)`);
throw new errors.BadRequest('The result of calling the sifter param must be a function. (sifter)');
}

replaceItems(context, getItems(context).filter(sifter));
Expand Down
2 changes: 1 addition & 1 deletion lib/services/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (validator) {
checkContext(context, 'before', ['create', 'update', 'patch'], 'validate');

if (typeof validator !== 'function') {
throw new errors.BadRequest(`Expected validator function. (validate)`);
throw new errors.BadRequest('Expected validator function. (validate)');
}

const results = validator(getItems(context), context);
Expand Down
Loading