Bump version and create browser version

pull/2/head
Louis Chatriot 9 years ago
parent cb6b7784fc
commit 7d22a37f5c
  1. 4
      browser-version/out/nedb.js
  2. 2
      browser-version/out/nedb.min.js
  3. 2
      package.json

@ -2066,6 +2066,10 @@ var util = require('util')
* But you really need to want it to trigger such behaviour, even when warned not to use '$' at the beginning of the field names... * But you really need to want it to trigger such behaviour, even when warned not to use '$' at the beginning of the field names...
*/ */
function checkKey (k, v) { function checkKey (k, v) {
if (typeof k === 'number') {
k = k.toString();
}
if (k[0] === '$' && !(k === '$$date' && typeof v === 'number') && !(k === '$$deleted' && v === true) && !(k === '$$indexCreated') && !(k === '$$indexRemoved')) { if (k[0] === '$' && !(k === '$$date' && typeof v === 'number') && !(k === '$$deleted' && v === true) && !(k === '$$indexCreated') && !(k === '$$indexRemoved')) {
throw 'Field names cannot begin with the $ character'; throw 'Field names cannot begin with the $ character';
} }

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
{ {
"name": "nedb", "name": "nedb",
"version": "1.1.2", "version": "1.1.3",
"author": { "author": {
"name": "Louis Chatriot", "name": "Louis Chatriot",
"email": "louis.chatriot@gmail.com" "email": "louis.chatriot@gmail.com"

Loading…
Cancel
Save