Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: anvilresearch/modinha
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: camfou/modinha
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 14 commits
  • 9 files changed
  • 2 contributors

Commits on Jul 11, 2019

  1. update dependencies

    camfou committed Jul 11, 2019
    Copy the full SHA
    6eac0b5 View commit details
  2. update ci

    camfou committed Jul 11, 2019
    Copy the full SHA
    0348a19 View commit details
  3. Merge pull request #1 from camfou/update

    Update
    camfou authored Jul 11, 2019
    Copy the full SHA
    5e74f7d View commit details

Commits on Dec 7, 2019

  1. update patch and minor

    camfou committed Dec 7, 2019
    Copy the full SHA
    e0c543a View commit details
  2. add coveralls

    camfou committed Dec 7, 2019
    Copy the full SHA
    5e58eec View commit details
  3. Merge pull request #2 from camfou/update

    update patch and minor
    camfou authored Dec 7, 2019
    Copy the full SHA
    7a1170c View commit details
  4. 0.2.1

    camfou committed Dec 7, 2019
    Copy the full SHA
    be3cb53 View commit details

Commits on Dec 8, 2019

  1. feat(ci): use GitHub Actions

    camfou committed Dec 8, 2019
    Copy the full SHA
    1f9b4f2 View commit details
  2. Merge pull request #3 from camfou/semantic_release

    feat(ci): use GitHub Actions
    camfou authored Dec 8, 2019
    Copy the full SHA
    c5dc66d View commit details
  3. feat(ci): add badge

    camfou committed Dec 8, 2019
    Copy the full SHA
    7cae970 View commit details
  4. Copy the full SHA
    f80da50 View commit details

Commits on Apr 21, 2020

  1. feat(dependencies): update

    camfou committed Apr 21, 2020
    Copy the full SHA
    574e101 View commit details
  2. Copy the full SHA
    a5183b3 View commit details
  3. Merge pull request #4 from camfou/update

    feat(dependencies): update
    camfou authored Apr 21, 2020
    Copy the full SHA
    e7b3e65 View commit details
Showing with 9,441 additions and 1,816 deletions.
  1. +46 −0 .github/workflows/nodejs.yml
  2. +4 −0 .gitignore
  3. +0 −10 .travis.yml
  4. +0 −4 Gruntfile.js
  5. +3 −3 README.md
  6. +1 −1 lib/validate.js
  7. +9,361 −1,755 package-lock.json
  8. +25 −42 package.json
  9. +1 −1 test/mocha.opts
46 changes: 46 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Node CI
on: [push]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 13.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm test
npm run lint
npm run cover
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release master
runs-on: ubuntu-latest
needs: [build]
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
npm-debug.log
.idea/
*.iml
coverage/
.nyc_output/
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Gruntfile.js

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Modinha
[![Build Status](https://travis-ci.org/anvilresearch/modinha.svg?branch=master)](https://travis-ci.org/anvilresearch/modinha)
![Actions Status](https://github.com/camfou/modinha/workflows/Node%20CI/badge.svg) ![License](https://img.shields.io/github/license/camfou/modinha.svg) ![npm](https://img.shields.io/david/camfou/modinha.svg?style=flat) ![Coverage Status](https://coveralls.io/repos/github/camfou/modinha/badge.svg?branch=master) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Modinha is a toolkit for creating persisted models. This is for programmers who like to work from the bottom up, building up persistence code from low level drivers, such as node_redis. Modinha provides:

@@ -21,14 +21,14 @@ Modinha is a toolkit for creating persisted models. This is for programmers who
#### Install

```bash
$ npm install modinha
$ npm install camfou-modinha
```


#### Require

```javascript
var Modinha = require('modinha');
var Modinha = require('camfou-modinha');
```


2 changes: 1 addition & 1 deletion lib/validate.js
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ validator.validate.formatExtensions.url = urlFormat
function validate (data, schema) {
var validation, errorProperties

validation = validator.validate(data, {properties: schema})
validation = validator.validate(data, { properties: schema })
errorProperties = _.pluck(validation.errors, 'property')

validation.errors = _.object(errorProperties, validation.errors)
Loading