10
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2026-04-15 02:54:46 +00:00

Add node modules and compiled JavaScript from main

This commit is contained in:
Oliver King 2022-06-27 18:11:59 +00:00
parent 668f19b753
commit 960afd1cec
8178 changed files with 1801167 additions and 5 deletions

View file

@ -0,0 +1,31 @@
/*!
* define-property <https://github.com/jonschlinkert/define-property>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
var isDescriptor = require('is-descriptor');
module.exports = function defineProperty(obj, prop, val) {
if (typeof obj !== 'object' && typeof obj !== 'function') {
throw new TypeError('expected an object or function.');
}
if (typeof prop !== 'string') {
throw new TypeError('expected `prop` to be a string.');
}
if (isDescriptor(val) && ('set' in val || 'get' in val)) {
return Object.defineProperty(obj, prop, val);
}
return Object.defineProperty(obj, prop, {
configurable: true,
enumerable: false,
writable: true,
value: val
});
};