Socket
Socket
Sign inDemoInstall

nuid

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.14 to 1.0.0

CODE-OF-CONDUCT.md

15

index.d.ts

@@ -0,1 +1,16 @@

/*
* Copyright 2016-2018 The NATS Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const version: string;

@@ -2,0 +17,0 @@

@@ -0,1 +1,16 @@

/*
* Copyright 2016-2018 The NATS Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = require('./lib/nuid.js');

21

lib/nuid.js

@@ -1,5 +0,14 @@

/*!
* Nats
* Copyright(c) 2016-2017 Apcera Inc. All rights reserved.
* MIT Licensed
/*
* Copyright 2016-2018 The NATS Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@@ -19,3 +28,3 @@

*/
var VERSION = '0.6.14',
var VERSION = '1.0.0',
digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',

@@ -39,3 +48,3 @@ base = 36,

function Nuid() {
this.buf = new Buffer(totalLen);
this.buf = Buffer.alloc(totalLen);
this.init();

@@ -42,0 +51,0 @@ }

{
"name": "nuid",
"version": "0.6.14",
"version": "1.0.0",
"description": "NUID - A highly performant unique identifier generator.",

@@ -18,7 +18,6 @@ "keywords": [

},
"license": "MIT",
"license": "Apache-2.0",
"private": false,
"author": {
"name": "Derek Collison",
"email": "derek@apcera.com"
"name": "The NATS Authors"
},

@@ -37,3 +36,3 @@ "contributors": [],

"engines": {
"node": ">= 0.10.x"
"node": ">= 4.5.0"
},

@@ -40,0 +39,0 @@ "dependencies": {},

# NODE NUID
[![License MIT](https://img.shields.io/npm/l/express.svg)](http://opensource.org/licenses/MIT) [![Build Status](https://travis-ci.org/nats-io/node-nuid.svg?branch=master)](http://travis-ci.org/nats-io/node-nuid) [![Coverage Status](https://coveralls.io/repos/github/nats-io/node-nuid/badge.svg?branch=master)](https://coveralls.io/github/nats-io/node-nuid?branch=master)
[![license](https://img.shields.io/github/license/nats-io/node-nuid.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![Travis branch](https://img.shields.io/travis/nats-io/node-nuid/master.svg)]()
[![Coveralls github branch](https://img.shields.io/coveralls/github/nats-io/node-nuid/master.svg)]()
[![npm](https://img.shields.io/npm/v/nuid.svg)](https://www.npmjs.com/package/nats)
[![npm](https://img.shields.io/npm/dt/nuid.svg)](https://www.npmjs.com/package/nats)

@@ -33,25 +37,12 @@ A highly performant unique identifier generator.

## Supported Node Versions
## License
Support policy for Nodejs versions follows
[Nodejs release support]( https://github.com/nodejs/Release).
We will support and build node-nats on even Nodejs versions that are current
or in maintenance.
(The MIT License)
Copyright (c) 2016-2017 Apcera Inc.
## License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc