@instructure/uid
Advanced tools
Comparing version 5.52.3-rc.19 to 5.52.3-rc.20
@@ -24,3 +24,4 @@ /* | ||
*/ | ||
import _default from './uid'; | ||
export { _default as default }; | ||
import { uid } from './uid'; | ||
export default uid; | ||
export { uid }; |
@@ -30,2 +30,3 @@ /* | ||
* category: utilities | ||
* id: uid_doc | ||
* --- | ||
@@ -40,3 +41,3 @@ * Generate a unique (CSS-safe) id string | ||
export default function uid() { | ||
function uid() { | ||
var prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ''; | ||
@@ -76,2 +77,5 @@ var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 12; | ||
return id; | ||
} | ||
} | ||
export default uid; | ||
export { uid }; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "default", { | ||
Object.defineProperty(exports, "uid", { | ||
enumerable: true, | ||
get: function get() { | ||
return _uid.default; | ||
return _uid.uid; | ||
} | ||
}); | ||
exports.default = void 0; | ||
var _uid = _interopRequireDefault(require("./uid")); | ||
var _uid = require("./uid"); | ||
/* | ||
* 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 _default = _uid.uid; | ||
exports.default = _default; |
@@ -6,3 +6,4 @@ "use strict"; | ||
}); | ||
exports.default = uid; | ||
exports.uid = uid; | ||
exports.default = void 0; | ||
@@ -38,2 +39,3 @@ /* | ||
* category: utilities | ||
* id: uid_doc | ||
* --- | ||
@@ -83,2 +85,5 @@ * Generate a unique (CSS-safe) id string | ||
return id; | ||
} | ||
} | ||
var _default = uid; | ||
exports.default = _default; |
{ | ||
"name": "@instructure/uid", | ||
"version": "5.52.3-rc.19+03e8ee2e", | ||
"version": "5.52.3-rc.20+3840b0ee", | ||
"description": "A unique (CSS-safe) id generator made by Instructure Inc.", | ||
@@ -24,4 +24,4 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
"devDependencies": { | ||
"@instructure/ui-babel-preset": "5.52.3-rc.19+03e8ee2e", | ||
"@instructure/ui-test-utils": "5.52.3-rc.19+03e8ee2e" | ||
"@instructure/ui-babel-preset": "5.52.3-rc.20+3840b0ee", | ||
"@instructure/ui-test-utils": "5.52.3-rc.20+3840b0ee" | ||
}, | ||
@@ -35,3 +35,3 @@ "dependencies": { | ||
"sideEffects": false, | ||
"gitHead": "03e8ee2ee86af665d4dbb2fa91248ff9e1d7d8ba" | ||
"gitHead": "3840b0eecedda50714c3ad91f2700d628f272854" | ||
} |
@@ -24,2 +24,4 @@ /* | ||
*/ | ||
export default from './uid' | ||
import { uid } from './uid' | ||
export default uid | ||
export { uid } |
@@ -33,2 +33,3 @@ /* | ||
* category: utilities | ||
* id: uid_doc | ||
* --- | ||
@@ -42,3 +43,3 @@ * Generate a unique (CSS-safe) id string | ||
*/ | ||
export default function uid (prefix = '', length = 12) { | ||
function uid (prefix = '', length = 12) { | ||
const id = `u${_uid('', length - 1)}` | ||
@@ -69,1 +70,4 @@ if (prefix && process.env.NODE_ENV !== 'production') { | ||
} | ||
export default uid | ||
export { uid } |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
18955
290