First Commit of new way of building the Platform
This commit is contained in:
1 parent
e48cf0dae5
commit
40e60b42cc
4616 files changed
+713402
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
module.exports = function(length) {
|
||||
var last = null
|
||||
, repeat = 0
|
||||
|
||||
if (typeof length == 'undefined') length = 15
|
||||
|
||||
return function() {
|
||||
var now = Math.pow(10, 2) * +new Date()
|
||||
|
||||
if (now == last) {
|
||||
repeat++
|
||||
} else {
|
||||
repeat = 0
|
||||
last = now
|
||||
}
|
||||
|
||||
var s = (now + repeat).toString()
|
||||
return +s.substr(s.length - length)
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"nonce@1.0.4",
|
||||
"C:\\Users\\Luis\\source\\repos\\AAMasters\\TaskServer"
|
||||
]
|
||||
],
|
||||
"_from": "nonce@1.0.4",
|
||||
"_id": "nonce@1.0.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-7nMCrejBvvR28wG4yR9cxRpIdhI=",
|
||||
"_location": "/nonce",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "nonce@1.0.4",
|
||||
"name": "nonce",
|
||||
"escapedName": "nonce",
|
||||
"rawSpec": "1.0.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/",
|
||||
"/@superalgos/exchangegateway"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/nonce/-/nonce-1.0.4.tgz",
|
||||
"_spec": "1.0.4",
|
||||
"_where": "C:\\Users\\Luis\\source\\repos\\AAMasters\\TaskServer",
|
||||
"author": {
|
||||
"name": "Andreas Brekken",
|
||||
"email": "a@abrkn.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/abrkn/nonce/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "returns unique and ever increasing timestamps",
|
||||
"devDependencies": {
|
||||
"expect.js": "0.3.1",
|
||||
"mocha": "2.5.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
},
|
||||
"homepage": "https://github.com/abrkn/nonce#readme",
|
||||
"keywords": [
|
||||
"nonce",
|
||||
"timestamp",
|
||||
"rest"
|
||||
],
|
||||
"license": "Free as in Hugs",
|
||||
"main": "./index",
|
||||
"name": "nonce",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/abrkn/nonce.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.4"
|
||||
}
|
||||
Reference in new issue
Block a user