Socket
Socket
Sign inDemoInstall

@instructure/ui-utils

Package Overview
Dependencies
Maintainers
30
Versions
1980
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-utils - npm Package Compare versions

Comparing version 5.0.1-dev.2 to 5.0.1-dev.3

es/i18n/getTextDirection.js

9

es/uid.js

@@ -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
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc