grubba-meteorrn
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -107,2 +107,2 @@ //https://github.com/meteor/meteor/tree/master/packages/mongo-id | ||
module.exports = MongoID; | ||
export default MongoID; |
const UNMISTAKABLE_CHARS = | ||
'23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz'; | ||
module.exports = { | ||
id(count = 17) { | ||
function Random() { | ||
function id(count = 17) { | ||
let res = ''; | ||
@@ -11,6 +11,8 @@ for (let i = 0; i < count; i++) { | ||
Math.floor(Math.random() * UNMISTAKABLE_CHARS.length) | ||
]; | ||
]; | ||
} | ||
return res; | ||
}, | ||
}; | ||
} | ||
return id | ||
} | ||
export default Random; |
{ | ||
"name": "grubba-meteorrn", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "Full Meteor Client for React Native", | ||
@@ -14,2 +14,3 @@ "main": "src/index.js", | ||
}, | ||
"type": "module", | ||
"keywords": [ | ||
@@ -16,0 +17,0 @@ "react-component", |
131578
3402
Yes