Skip to content

Commit

Permalink
Merge pull request #25 from kalamuna/update
Browse files Browse the repository at this point in the history
2.2.1
  • Loading branch information
RobLoach authored Mar 4, 2020
2 parents f3d786e + 17bbffb commit ba34063
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
/node_modules
build
/package-lock.json
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ sudo: false
node_js:
- "10"
- "11"
- "12"
- "13"

notifications:
email:
Expand Down
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## v2.x: xxxx-xx-xx
## v2.2.1: 2020-04-04

- Update dependencies

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ module.exports = function (opts) {
if (typeof val === 'string' || val instanceof String) {
// See if it starts with metadata-files://.
const inheritFileLength = opts.inheritFilePrefix.length
if (val.substring(0, inheritFileLength) === opts.inheritFilePrefix) {
if (val.slice(0, inheritFileLength) === opts.inheritFilePrefix) {
// Retrieve the metadata file that it is to retrieve.
const objectFile = val.substring(inheritFileLength)
const objectFile = val.slice(inheritFileLength)
// Find its own metadata.
if (files[objectFile] && files[objectFile].metadata) {
// Update the object to be the injected metadata.
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metalsmith-metadata-files",
"version": "2.2.0",
"version": "2.2.1",
"description": "Metalsmith Metadata Files Plugin",
"files": [
"index.js"
Expand Down Expand Up @@ -30,11 +30,11 @@
},
"devDependencies": {
"assert-dir-equal": "1.*",
"jstransformer-twig": "^1.2.0",
"jstransformer-twig": "^1.6.1",
"metalsmith": "2.*",
"metalsmith-jstransformer": "*",
"rimraf": "^3.0.0",
"testit": "^3.0.0",
"rimraf": "^3.0.2",
"testit": "^3.1.0",
"xo": "*"
}
}

0 comments on commit ba34063

Please sign in to comment.