Skip to content

Commit efc5e55

Browse files
committed
jump to 0.0.1
1 parent 32b2eb9 commit efc5e55

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "normalize-mongoose",
3-
"version": "0.0.1-alpha",
3+
"version": "0.0.1",
44
"description": "Normalize Mongoose JSON output",
55
"license": "MIT",
66
"repository": "abranhe/normalize-mongoose",

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ $ npm install abranhe@normalize-mongoose
2222
import mongoose from 'mongoose';
2323
import normalize from 'normalize-mongoose';
2424

25-
const pesonSchema = mongoose.Schema({
25+
const personSchema = mongoose.Schema({
2626
name: String,
2727
age: Number,
2828
});
2929

30-
pesonSchema.plugin(normalize);
30+
personSchema.plugin(normalize);
3131
```
3232

3333
See how `normalize-mongoose` will clean the the JSON output:
@@ -57,16 +57,16 @@ See how `normalize-mongoose` will clean the the JSON output:
5757
import mongoose from 'mongoose';
5858
import normalize from 'normalize-mongoose';
5959

60-
const pesonSchema = mongoose.Schema({
60+
const personSchema = mongoose.Schema({
6161
name: String,
6262
age: Number,
6363
email: String,
6464
password: { type: String, private: true },
6565
});
6666

67-
pesonSchema.plugin(normalize);
67+
personSchema.plugin(normalize);
6868

69-
const Person = mongoose.model('Person', pesonSchema);
69+
const Person = mongoose.model('Person', personSchema);
7070
const someone = new Person( {
7171
name: 'Abraham',
7272
age: 33,

0 commit comments

Comments
 (0)