@codebakery/origami
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0-beta.2
@@ -13,3 +13,3 @@ "use strict"; | ||
function error(message, fatal) { | ||
log(message, chalk_1.default.red); | ||
log(message instanceof Error ? message.stack : message, chalk_1.default.red); | ||
if (fatal) { | ||
@@ -16,0 +16,0 @@ process.exit(1); |
@@ -78,2 +78,4 @@ "use strict"; | ||
function isEs5(tsconfig) { | ||
// TODO: follow extends and handle no compilerOptions/target, which defaults | ||
// to es5 | ||
return tsconfig.compilerOptions.target.toLowerCase() === 'es5'; | ||
@@ -80,0 +82,0 @@ } |
@@ -60,3 +60,3 @@ #!/usr/bin/env node | ||
console.log('\n'); | ||
log_1.error(err_1.message, true); | ||
log_1.error(err_1, true); | ||
return [3 /*break*/, 6]; | ||
@@ -97,3 +97,3 @@ case 6: | ||
err_2 = _a.sent(); | ||
log_1.error(err_2.message); | ||
log_1.error(err_2); | ||
log_1.error('Failed to add polyfills', true); | ||
@@ -100,0 +100,0 @@ return [3 /*break*/, 3]; |
@@ -39,6 +39,3 @@ (function (global, factory) { | ||
/** @type {?} */ | ||
var desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (!desc) { | ||
desc = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(target), propertyKey); | ||
} | ||
var desc = getPropertyDescriptor(target, propertyKey); | ||
/** @type {?} */ | ||
@@ -89,2 +86,23 @@ var properties = new WeakMap(); | ||
} | ||
/** | ||
* Similar to `Object.getOwnPropertyDescriptor()`, but this function will | ||
* search through the target's prototype chain when looking for the property's | ||
* descriptor. | ||
* | ||
* @param {?} target object that contains the property | ||
* @param {?} propertyKey name of the property | ||
* @return {?} the property descriptor if one exists | ||
*/ | ||
function getPropertyDescriptor(target, propertyKey) { | ||
while (target) { | ||
/** @type {?} */ | ||
var desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (desc) { | ||
return desc; | ||
} | ||
else { | ||
target = Object.getPrototypeOf(target); | ||
} | ||
} | ||
} | ||
@@ -157,2 +175,3 @@ /** | ||
exports.wrapDescriptor = wrapDescriptor; | ||
exports.getPropertyDescriptor = getPropertyDescriptor; | ||
exports.whenSet = whenSet; | ||
@@ -164,2 +183,2 @@ | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZ2FtaS11dGlsLnVtZC5qcy5tYXAiLCJzb3VyY2VzIjpbIm5nOi8vQGNvZGViYWtlcnkvb3JpZ2FtaS91dGlsL3NyYy9kZXNjcmlwdG9ycy50cyIsIm5nOi8vQGNvZGViYWtlcnkvb3JpZ2FtaS91dGlsL3NyYy93aGVuLXNldC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIERlc2NyaXB0b3IgaG9va3MgdGhhdCBjYW4gYmUgaW5qZWN0ZWQgaW50byBhIHByb3BlcnR5J3MgZ2V0dGVyIGFuZCBzZXR0ZXIuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRGVzY3JpcHRvckhvb2tzPFQ+IHtcbiAgLyoqXG4gICAqIEV4ZWN1dGVzIGJlZm9yZSBhIHByb3BlcnR5J3MgdmFsdWUgaXMgc2V0LiBJZiB0aGlzIGZ1bmN0aW9uIHJldHVybnMgdHJ1ZSxcbiAgICogdGhlIHByb3BlcnR5IHdpbGwgYmUgc2V0LiBPdGhlcndpc2UsIHRoZSBwcm9wZXJ0eSB3aWxsIG5vdCBiZSB1cGRhdGVkLlxuICAgKlxuICAgKiBAcGFyYW0gdmFsdWUgdGhlIHZhbHVlIHJlcXVlc3RlZCB0byBzZXRcbiAgICogQHJldHVybnMgdHJ1ZSBpZiB0aGUgcHJvcGVydHkgc2hvdWxkIGJlIHNldCwgb3RoZXJ3aXNlIGZhbHNlXG4gICAqL1xuICBzaG91bGRTZXQ/KHZhbHVlOiBUKTogYm9vbGVhbjtcbiAgLyoqXG4gICAqIEV4ZWN1dGVzIGJlZm9yZSBhIHByb3BlcnR5J3MgdmFsdWUgaXMgc2V0IG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ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@codebakery/origami/util",["exports"],t):t((e.codebakery=e.codebakery||{},e.codebakery.origami=e.codebakery.origami||{},e.codebakery.origami.util={}))}(this,function(e){"use strict";function o(e,o,n){var a=Object.getOwnPropertyDescriptor(e,o);a||(a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),o));var c=new WeakMap;return{enumerable:!a||a.enumerable,get:function(){if(a&&a.get)return a.get.apply(this);var e=c.get(this);return e&&e[o]},set:function(e){var t=e;if(!n.shouldSet||n.shouldSet.apply(this,[t])){n.beforeSet&&(t=n.beforeSet.apply(this,[t]));var r=c.get(this);r||(r={},c.set(this,r));var i=t!==r[o];r[o]=t,a&&a.set&&a.set.apply(this,[t]),n.afterSet&&n.afterSet.apply(this,[i,t,e])}}}}e.wrapAndDefineDescriptor=function t(e,t,r){var i=o(e,t,r);Object.defineProperty(e,t,i)},e.wrapDescriptor=o,e.whenSet=function r(r,i,o){void 0===o&&(o=function(e){return void 0!==e});var n=r[i];return o(n)?Promise.resolve(r[i]):new Promise(function(t){Object.defineProperty(r,i,{configurable:!0,get:function(){return n},set:function(e){o(n=e)&&(Object.defineProperty(r,i,{value:e,configurable:!0,enumerable:!0,writable:!0}),t(e))}})})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@codebakery/origami/util",["exports"],t):t((e.codebakery=e.codebakery||{},e.codebakery.origami=e.codebakery.origami||{},e.codebakery.origami.util={}))}(this,function(e){"use strict";function o(e,o,n){var a=t(e,o),f=new WeakMap;return{enumerable:!a||a.enumerable,get:function(){if(a&&a.get)return a.get.apply(this);var e=f.get(this);return e&&e[o]},set:function(e){var t=e;if(!n.shouldSet||n.shouldSet.apply(this,[t])){n.beforeSet&&(t=n.beforeSet.apply(this,[t]));var r=f.get(this);r||(r={},f.set(this,r));var i=t!==r[o];r[o]=t,a&&a.set&&a.set.apply(this,[t]),n.afterSet&&n.afterSet.apply(this,[i,t,e])}}}}function t(e,t){for(;e;){var r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;e=Object.getPrototypeOf(e)}}e.wrapAndDefineDescriptor=function r(e,t,r){var i=o(e,t,r);Object.defineProperty(e,t,i)},e.wrapDescriptor=o,e.getPropertyDescriptor=t,e.whenSet=function i(r,i,o){void 0===o&&(o=function(e){return void 0!==e});var n=r[i];return o(n)?Promise.resolve(r[i]):new Promise(function(t){Object.defineProperty(r,i,{configurable:!0,get:function(){return n},set:function(e){o(n=e)&&(Object.defineProperty(r,i,{value:e,configurable:!0,enumerable:!0,writable:!0}),t(e))}})})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=origami-util.umd.min.js.map |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
export { wrapAndDefineDescriptor, wrapDescriptor, whenSet } from './public_api'; | ||
export { wrapAndDefineDescriptor, wrapDescriptor, getPropertyDescriptor, whenSet } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZ2FtaS11dGlsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNvZGViYWtlcnkvb3JpZ2FtaS91dGlsLyIsInNvdXJjZXMiOlsib3JpZ2FtaS11dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxpRUFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZ2FtaS11dGlsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNvZGViYWtlcnkvb3JpZ2FtaS91dGlsLyIsInNvdXJjZXMiOlsib3JpZ2FtaS11dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3RkFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0= |
@@ -5,5 +5,5 @@ /** | ||
*/ | ||
export { wrapAndDefineDescriptor, wrapDescriptor } from './src/descriptors'; | ||
export { wrapAndDefineDescriptor, wrapDescriptor, getPropertyDescriptor } from './src/descriptors'; | ||
export { whenSet } from './src/when-set'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bjb2RlYmFrZXJ5L29yaWdhbWkvdXRpbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdEQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHdCQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvZGVzY3JpcHRvcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvd2hlbi1zZXQnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bjb2RlYmFrZXJ5L29yaWdhbWkvdXRpbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLCtFQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHdCQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvZGVzY3JpcHRvcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvd2hlbi1zZXQnO1xuIl19 |
@@ -67,6 +67,3 @@ /** | ||
/** @type {?} */ | ||
let desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (!desc) { | ||
desc = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(target), propertyKey); | ||
} | ||
const desc = getPropertyDescriptor(target, propertyKey); | ||
/** @type {?} */ | ||
@@ -119,3 +116,24 @@ const properties = new WeakMap(); | ||
} | ||
/** | ||
* Similar to `Object.getOwnPropertyDescriptor()`, but this function will | ||
* search through the target's prototype chain when looking for the property's | ||
* descriptor. | ||
* | ||
* @param {?} target object that contains the property | ||
* @param {?} propertyKey name of the property | ||
* @return {?} the property descriptor if one exists | ||
*/ | ||
export function getPropertyDescriptor(target, propertyKey) { | ||
while (target) { | ||
/** @type {?} */ | ||
const desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (desc) { | ||
return desc; | ||
} | ||
else { | ||
target = Object.getPrototypeOf(target); | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzY3JpcHRvcnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY29kZWJha2VyeS9vcmlnYW1pL3V0aWwvIiwic291cmNlcyI6WyJzcmMvZGVzY3JpcHRvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQXdDQSxNQUFNLGtDQUNKLE1BQVcsRUFDWCxXQUFtQixFQUNuQixLQUF5Qjs7SUFFekIsTUFBTSxJQUFJLEd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IHByb3BlcnR5XG4gKiBAcGFyYW0gcHJvcGVydHlLZXkgbmFtZSBvZiB0aGUgcHJvcGVydHlcbiAqIEByZXR1cm5zIHRoZSBwcm9wZXJ0eSBkZXNjcmlwdG9yIGlmIG9uZSBleGlzdHNcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGdldFByb3BlcnR5RGVzY3JpcHRvcihcbiAgdGFyZ2V0OiBhbnksXG4gIHByb3BlcnR5S2V5OiBQcm9wZXJ0eUtleVxuKTogUHJvcGVydHlEZXNjcmlwdG9yIHwgdW5kZWZpbmVkIHtcbiAgd2hpbGUgKHRhcmdldCkge1xuICAgIGNvbnN0IGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKHRhcmdldCwgcHJvcGVydHlLZXkpO1xuICAgIGlmIChkZXNjKSB7XG4gICAgICByZXR1cm4gZGVzYztcbiAgICB9IGVsc2Uge1xuICAgICAgdGFyZ2V0ID0gT2JqZWN0LmdldFByb3RvdHlwZU9mKHRhcmdldCk7XG4gICAgfVxuICB9XG59XG4iXX0= |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
export { wrapAndDefineDescriptor, wrapDescriptor, whenSet } from './public_api'; | ||
export { wrapAndDefineDescriptor, wrapDescriptor, getPropertyDescriptor, whenSet } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZ2FtaS11dGlsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNvZGViYWtlcnkvb3JpZ2FtaS91dGlsLyIsInNvdXJjZXMiOlsib3JpZ2FtaS11dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxpRUFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZ2FtaS11dGlsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNvZGViYWtlcnkvb3JpZ2FtaS91dGlsLyIsInNvdXJjZXMiOlsib3JpZ2FtaS11dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3RkFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0= |
@@ -5,5 +5,5 @@ /** | ||
*/ | ||
export { wrapAndDefineDescriptor, wrapDescriptor } from './src/descriptors'; | ||
export { wrapAndDefineDescriptor, wrapDescriptor, getPropertyDescriptor } from './src/descriptors'; | ||
export { whenSet } from './src/when-set'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bjb2RlYmFrZXJ5L29yaWdhbWkvdXRpbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdEQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHdCQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvZGVzY3JpcHRvcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvd2hlbi1zZXQnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bjb2RlYmFrZXJ5L29yaWdhbWkvdXRpbC8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLCtFQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHdCQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvZGVzY3JpcHRvcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvd2hlbi1zZXQnO1xuIl19 |
@@ -67,6 +67,3 @@ /** | ||
/** @type {?} */ | ||
var desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (!desc) { | ||
desc = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(target), propertyKey); | ||
} | ||
var desc = getPropertyDescriptor(target, propertyKey); | ||
/** @type {?} */ | ||
@@ -119,3 +116,24 @@ var properties = new WeakMap(); | ||
} | ||
/** | ||
* Similar to `Object.getOwnPropertyDescriptor()`, but this function will | ||
* search through the target's prototype chain when looking for the property's | ||
* descriptor. | ||
* | ||
* @param {?} target object that contains the property | ||
* @param {?} propertyKey name of the property | ||
* @return {?} the property descriptor if one exists | ||
*/ | ||
export function getPropertyDescriptor(target, propertyKey) { | ||
while (target) { | ||
/** @type {?} */ | ||
var desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (desc) { | ||
return desc; | ||
} | ||
else { | ||
target = Object.getPrototypeOf(target); | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzY3JpcHRvcnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY29kZWJha2VyeS9vcmlnYW1pL3V0aWwvIiwic291cmNlcyI6WyJzcmMvZGVzY3JpcHRvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs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eSdzXG4gKiBkZXNjcmlwdG9yLlxuICpcbiAqIEBwYXJhbSB0YXJnZXQgb2JqZWN0IHRoYXQgY29udGFpbnMgdGhlIHByb3BlcnR5XG4gKiBAcGFyYW0gcHJvcGVydHlLZXkgbmFtZSBvZiB0aGUgcHJvcGVydHlcbiAqIEByZXR1cm5zIHRoZSBwcm9wZXJ0eSBkZXNjcmlwdG9yIGlmIG9uZSBleGlzdHNcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGdldFByb3BlcnR5RGVzY3JpcHRvcihcbiAgdGFyZ2V0OiBhbnksXG4gIHByb3BlcnR5S2V5OiBQcm9wZXJ0eUtleVxuKTogUHJvcGVydHlEZXNjcmlwdG9yIHwgdW5kZWZpbmVkIHtcbiAgd2hpbGUgKHRhcmdldCkge1xuICAgIGNvbnN0IGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKHRhcmdldCwgcHJvcGVydHlLZXkpO1xuICAgIGlmIChkZXNjKSB7XG4gICAgICByZXR1cm4gZGVzYztcbiAgICB9IGVsc2Uge1xuICAgICAgdGFyZ2V0ID0gT2JqZWN0LmdldFByb3RvdHlwZU9mKHRhcmdldCk7XG4gICAgfVxuICB9XG59XG4iXX0= |
@@ -33,6 +33,3 @@ /** | ||
/** @type {?} */ | ||
let desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (!desc) { | ||
desc = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(target), propertyKey); | ||
} | ||
const desc = getPropertyDescriptor(target, propertyKey); | ||
/** @type {?} */ | ||
@@ -85,2 +82,23 @@ const properties = new WeakMap(); | ||
} | ||
/** | ||
* Similar to `Object.getOwnPropertyDescriptor()`, but this function will | ||
* search through the target's prototype chain when looking for the property's | ||
* descriptor. | ||
* | ||
* @param {?} target object that contains the property | ||
* @param {?} propertyKey name of the property | ||
* @return {?} the property descriptor if one exists | ||
*/ | ||
function getPropertyDescriptor(target, propertyKey) { | ||
while (target) { | ||
/** @type {?} */ | ||
const desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (desc) { | ||
return desc; | ||
} | ||
else { | ||
target = Object.getPrototypeOf(target); | ||
} | ||
} | ||
} | ||
@@ -150,4 +168,4 @@ /** | ||
export { wrapAndDefineDescriptor, wrapDescriptor, whenSet }; | ||
export { wrapAndDefineDescriptor, wrapDescriptor, getPropertyDescriptor, whenSet }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZ2FtaS11dGlsLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9AY29kZWJha2VyeS9vcmlnYW1pL3V0aWwvc3JjL2Rlc2NyaXB0b3JzLnRzIiwibmc6Ly9AY29kZWJha2VyeS9vcmlnYW1pL3V0aWwvc3JjL3doZW4tc2V0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRGVzY3JpcHRvciBob29rcyB0aGF0IGNhbiBiZSBpbmplY3RlZCBpbnRvIGEgcHJvcGVydHkncyBnZXR0ZXIgYW5kIHNldHRlci5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBEZXNjcmlwdG9ySG9va3M8VD4ge1xuICAvKipcbiAgICogRXhlY3V0ZXMgYmVmb3JlIGEgcHJvcGVydHkncyB2YWx1ZSBpcyBzZXQuIElmIHRoaXMgZnVuY3Rpb24gcmV0dXJucyB0cnVlLFxuICAgKiB0aGUgcHJvcGVydHkgd2lsbCBiZSBzZXQuIE90aGVyd2lzZSwgdGhlIHByb3BlcnR5IHdpbGwgbm90IGJlIHVwZGF0ZWQuXG4gICAqXG4gICAqIEBwYXJhbSB2YWx1ZSB0aGUgdmFsdWUgcmVxdWVzdGVkIHRvIHNldFxuICAgKiBAcmV0dXJucyB0cnVlIGlmIHRoZSBwcm9wZXJ0eSBzaG91bGQgYmUgc2V0LCBvdGhlcndpc2UgZmFsc2VcbiAgICovXG4gIHNob3VsZFNldD8odmFsdWU6IFQpOiBib29sZW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, propertyKey); | ||
if (!desc) { | ||
desc = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(target), propertyKey); | ||
} | ||
var desc = getPropertyDescriptor(target, propertyKey); | ||
/** @type {?} */ | ||
@@ -85,2 +82,23 @@ var properties = new WeakMap(); | ||
} | ||
/** | ||
* Similar to `Object.getOwnPropertyDescriptor()`, but this function will | ||
* search through the target's prototype chain when looking for the property's | ||
* descriptor. | ||
* | ||
* @param {?} target object that contains the property | ||
* @param {?} propertyKey name of the property | ||
* @return {?} the property descriptor if one exists | ||
*/ | ||
function getPropertyDescriptor(target, propertyKey) { | ||
while (target) { | ||
/** @type {?} */ | ||
var desc = Object.getOwnPropertyDescriptor(target, propertyKey); | ||
if (desc) { | ||
return desc; | ||
} | ||
else { | ||
target = Object.getPrototypeOf(target); | ||
} | ||
} | ||
} | ||
@@ -151,4 +169,4 @@ /** | ||
export { wrapAndDefineDescriptor, wrapDescriptor, whenSet }; | ||
export { wrapAndDefineDescriptor, wrapDescriptor, getPropertyDescriptor, whenSet }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZ2FtaS11dGlsLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9AY29kZWJha2VyeS9vcmlnYW1pL3V0aWwvc3JjL2Rlc2NyaXB0b3JzLnRzIiwibmc6Ly9AY29kZWJha2VyeS9vcmlnYW1pL3V0aWwvc3JjL3doZW4tc2V0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRGVzY3JpcHRvciBob29rcyB0aGF0IGNhbiBiZSBpbmplY3RlZCBpbnRvIGEgcHJvcGVydHkncyBnZXR0ZXIgYW5kIHNldHRlci5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBEZXNjcmlwdG9ySG9va3M8VD4ge1xuICAvKipcbiAgICogRXhlY3V0ZXMgYmVmb3JlIGEgcHJvcGVydHkncyB2YWx1ZSBpcyBzZXQuIElmIHRoaXMgZnV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QyxLQUFLLENBQUMsRUFBRTt3QkFDcEIsTUFBTSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsUUFBUSxFQUFFOzRCQUN0QyxLQUFLLE9BQUE7NEJBQ0wsWUFBWSxFQUFFLElBQUk7NEJBQ2xCLFVBQVUsRUFBRSxJQUFJOzRCQUNoQixRQUFRLEVBQUUsSUFBSTt5QkFDZixDQUFDLENBQUM7d0JBRUgsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO3FCQUNoQjtpQkFDRjthQUNGLENBQUMsQ0FBQztTQUNKLENBQUMsQ0FBQztLQUNKO0NBQ0Y7Ozs7Ozs7Ozs7Ozs7OyJ9 |
{ | ||
"$schema": "./node_modules/ng-packagr/package.schema.json", | ||
"name": "@codebakery/origami", | ||
"version": "3.0.0-beta.1", | ||
"version": "3.0.0-beta.2", | ||
"description": "Angular + Polymer", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"DescriptorHooks":{"__symbolic":"interface"},"wrapAndDefineDescriptor":{"__symbolic":"function"},"wrapDescriptor":{"__symbolic":"function"},"whenSet":{"__symbolic":"function"}},"origins":{"DescriptorHooks":"./src/descriptors","wrapAndDefineDescriptor":"./src/descriptors","wrapDescriptor":"./src/descriptors","whenSet":"./src/when-set"},"importAs":"@codebakery/origami/util"} | ||
{"__symbolic":"module","version":4,"metadata":{"DescriptorHooks":{"__symbolic":"interface"},"wrapAndDefineDescriptor":{"__symbolic":"function"},"wrapDescriptor":{"__symbolic":"function"},"getPropertyDescriptor":{"__symbolic":"function"},"whenSet":{"__symbolic":"function"}},"origins":{"DescriptorHooks":"./src/descriptors","wrapAndDefineDescriptor":"./src/descriptors","wrapDescriptor":"./src/descriptors","getPropertyDescriptor":"./src/descriptors","whenSet":"./src/when-set"},"importAs":"@codebakery/origami/util"} |
@@ -50,2 +50,12 @@ /** | ||
*/ | ||
export declare function wrapDescriptor<T>(target: any, propertyKey: string | number | symbol, hooks: DescriptorHooks<T>): PropertyDescriptor; | ||
export declare function wrapDescriptor<T>(target: any, propertyKey: PropertyKey, hooks: DescriptorHooks<T>): PropertyDescriptor; | ||
/** | ||
* Similar to `Object.getOwnPropertyDescriptor()`, but this function will | ||
* search through the target's prototype chain when looking for the property's | ||
* descriptor. | ||
* | ||
* @param target object that contains the property | ||
* @param propertyKey name of the property | ||
* @returns the property descriptor if one exists | ||
*/ | ||
export declare function getPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor | undefined; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1097106
8426