@instructure/ui-utils
Advanced tools
Comparing version 5.0.1-dev.2 to 5.0.1-dev.3
@@ -25,3 +25,3 @@ /* | ||
import generate from 'nanoid/generate'; | ||
import shortid from 'shortid'; | ||
@@ -38,7 +38,2 @@ /** | ||
*/ | ||
var alphabet = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-'; | ||
var idLength = 7; | ||
export default function uid() { | ||
return generate(alphabet, idLength); | ||
} | ||
export default shortid.generate; |
@@ -6,7 +6,6 @@ 'use strict'; | ||
}); | ||
exports.default = uid; | ||
var _generate = require('nanoid/generate'); | ||
var _shortid = require('shortid'); | ||
var _generate2 = _interopRequireDefault(_generate); | ||
var _shortid2 = _interopRequireDefault(_shortid); | ||
@@ -25,30 +24,24 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
*/ | ||
var alphabet = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-'; /* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2015 - present Instructure, Inc. | ||
* | ||
* 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. | ||
*/ | ||
var idLength = 7; | ||
function uid() { | ||
return (0, _generate2.default)(alphabet, idLength); | ||
} | ||
exports.default = _shortid2.default.generate; /* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2015 - present Instructure, Inc. | ||
* | ||
* 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. | ||
*/ |
{ | ||
"name": "@instructure/ui-utils", | ||
"version": "5.0.1-dev.2", | ||
"version": "5.0.1-dev.3", | ||
"description": "A collection of utilities for UI components", | ||
@@ -25,3 +25,3 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
"devDependencies": { | ||
"@instructure/ui-presets": "^5.0.1-dev.2", | ||
"@instructure/ui-presets": "^5.0.1-dev.3", | ||
"react": "15.6.2", | ||
@@ -35,3 +35,2 @@ "react-dom": "15.6.2" | ||
"keycode": "^2.1.8", | ||
"nanoid": "^1.0.2", | ||
"no-scroll": "^2.1.0", | ||
@@ -41,3 +40,4 @@ "numeral": "^2.0.6", | ||
"object.pick": "^1.2.0", | ||
"prop-types": "^15.5.10" | ||
"prop-types": "^15.5.10", | ||
"shortid": "^2.2.8" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependencies": { |
@@ -25,3 +25,3 @@ /* | ||
import generate from 'nanoid/generate' | ||
import shortid from 'shortid' | ||
@@ -38,7 +38,2 @@ /** | ||
*/ | ||
const alphabet = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-' | ||
const idLength = 7 | ||
export default function uid() { | ||
return generate(alphabet, idLength) | ||
} | ||
export default shortid.generate |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
635988
185
11961
0
+ Addedshortid@^2.2.8
+ Addednanoid@2.1.11(transitive)
+ Addedshortid@2.2.16(transitive)
- Removednanoid@^1.0.2
- Removednanoid@1.3.4(transitive)