Blame view
node_modules/loopback-datasource-juggler/test/helpers/uid-generator.js
408 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
// Copyright IBM Corp. 2016. All Rights Reserved. // Node module: loopback-datasource-juggler // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 'use strict'; var lastId = 0; exports.next = function() { lastId++; return exports.last(); }; exports.last = function() { return '' + lastId; }; exports.reset = function() { lastId = 0; }; |