@arc-core-components/content-source_author-api-v4
Advanced tools
Comparing version 0.1.0-beta.2 to 0.1.0-beta.3
@@ -1,1 +0,2 @@ | ||
module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t),r.d(t,"pattern",function(){return n});var n=function(e){var t=e.slug;return"/author/v1/?slug=".concat(t)},u={resolve:function(e){return n(e)},schemaName:"author-document",params:{slug:"text"}};t.default=u}]); | ||
module.exports={resolve:function(u){return function(u){return"/author/v1/?slug="+u.slug}(u)},schemaName:"author-document",params:{slug:"text"}}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@arc-core-components/content-source_author-api-v4", | ||
"version": "0.1.0-beta.2", | ||
"version": "0.1.0-beta.3", | ||
"description": "Content source rendering a single author from the Author API", | ||
"main": "build/index.js", | ||
"scripts": { | ||
"start": "webpack --watch", | ||
"build": "webpack", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"dev": "microbundle --watch", | ||
"build": "microbundle", | ||
"lint": "xo --fix", | ||
"test": "jest --coverage", | ||
"pre-release": "npm run build && npm publish --tag beta", | ||
"release": "npm run build && npm publish" | ||
}, | ||
"author": "", | ||
"author": "Matt Nelson", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@babel/core": "^7.1.2", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-loader": "^8.0.4", | ||
"react": "^16.5.2", | ||
"webpack": "^4.20.2", | ||
"webpack-cli": "^3.1.0" | ||
"@babel/core": "^7.1.6", | ||
"@babel/preset-env": "^7.1.6", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-jest": "^22.0.0", | ||
"husky": "^1.1.4", | ||
"jest": "^23.6.0", | ||
"microbundle": "^0.7.0", | ||
"xo": "^0.23.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-push": "npm test && npm run lint", | ||
"pre-commit": "npm test && npm run lint" | ||
} | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
] | ||
}, | ||
"xo": { | ||
"extends": [ | ||
"airbnb-base", | ||
"plugin:jest/recommended" | ||
], | ||
"envs": [ | ||
"browser", | ||
"commonjs", | ||
"es6", | ||
"node" | ||
], | ||
"rules": { | ||
"arrow-body-style": [ | ||
"error", | ||
"always" | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": true | ||
} | ||
], | ||
"unicorn/filename-case": "off" | ||
} | ||
}, | ||
"jest": { | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 100, | ||
"functions": 100, | ||
"lines": 100, | ||
"statements": 100 | ||
} | ||
} | ||
} | ||
} |
@@ -1,15 +0,13 @@ | ||
// Default values for the Core Component | ||
const schemaName = 'author-document'; | ||
const params = { | ||
slug: 'text' | ||
} | ||
slug: 'text', | ||
}; | ||
export const pattern = (key) => { | ||
const { slug } = key | ||
return `/author/v1/?slug=${slug}` | ||
} | ||
const { slug } = key; | ||
return `/author/v1/?slug=${slug}`; | ||
}; | ||
const resolve = (key) => pattern(key) | ||
const resolve = (key) => { return pattern(key); }; | ||
@@ -19,5 +17,5 @@ const source = { | ||
schemaName, | ||
params | ||
} | ||
params, | ||
}; | ||
export default source; | ||
export default source; |
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
6252
10
2
2
9
35