@glimmer/tracking
Advanced tools
Comparing version 2.0.0-beta.20 to 2.0.0-beta.21
@@ -0,1 +1,2 @@ | ||
export { cached } from './src/cached'; | ||
export { tracked } from './src/tracked'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tracked = void 0; | ||
exports.tracked = exports.cached = void 0; | ||
var cached_1 = require("./src/cached"); | ||
Object.defineProperty(exports, "cached", { enumerable: true, get: function () { return cached_1.cached; } }); | ||
var tracked_1 = require("./src/tracked"); | ||
Object.defineProperty(exports, "tracked", { enumerable: true, get: function () { return tracked_1.tracked; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5Q0FBd0M7QUFBL0Isa0dBQUEsT0FBTyxPQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgdHJhY2tlZCB9IGZyb20gJy4vc3JjL3RyYWNrZWQnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx1Q0FBc0M7QUFBN0IsZ0dBQUEsTUFBTSxPQUFBO0FBQ2YseUNBQXdDO0FBQS9CLGtHQUFBLE9BQU8sT0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IGNhY2hlZCB9IGZyb20gJy4vc3JjL2NhY2hlZCc7XG5leHBvcnQgeyB0cmFja2VkIH0gZnJvbSAnLi9zcmMvdHJhY2tlZCc7XG4iXX0= |
@@ -41,4 +41,8 @@ export declare class Tom { | ||
export declare function createClassWithTrackedGetter(): any; | ||
export declare function createClassWithCachedProperty(): any; | ||
export declare function createClassWithTrackedSetter(): any; | ||
export declare function createClassWithCachedSetter(): any; | ||
export declare function createClassWithTrackedDependentKeys(): any; | ||
export declare function createClassWithCachedDependentKeys(): any; | ||
export declare function createClassWithTrackedAsDecoratorFactory(): any; | ||
export declare function createClassWithCachedAsDecoratorFactory(): any; |
@@ -9,3 +9,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createClassWithTrackedAsDecoratorFactory = exports.createClassWithTrackedDependentKeys = exports.createClassWithTrackedSetter = exports.createClassWithTrackedGetter = exports.PersonForContact = exports.Contact = exports.PersonWithSalutation = exports.PersonWithCount = exports.FrozenToran = exports.Toran = exports.Tom = void 0; | ||
exports.createClassWithCachedAsDecoratorFactory = exports.createClassWithTrackedAsDecoratorFactory = exports.createClassWithCachedDependentKeys = exports.createClassWithTrackedDependentKeys = exports.createClassWithCachedSetter = exports.createClassWithTrackedSetter = exports.createClassWithCachedProperty = exports.createClassWithTrackedGetter = exports.PersonForContact = exports.Contact = exports.PersonWithSalutation = exports.PersonWithCount = exports.FrozenToran = exports.Toran = exports.Tom = void 0; | ||
const tracking_1 = require("@glimmer/tracking"); | ||
@@ -146,2 +146,14 @@ class Tom { | ||
exports.createClassWithTrackedGetter = createClassWithTrackedGetter; | ||
function createClassWithCachedProperty() { | ||
class PersonWithCachedProperty { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
} | ||
} | ||
__decorate([ | ||
tracking_1.cached | ||
], PersonWithCachedProperty.prototype, "firstName", void 0); | ||
return new PersonWithCachedProperty(); | ||
} | ||
exports.createClassWithCachedProperty = createClassWithCachedProperty; | ||
function createClassWithTrackedSetter() { | ||
@@ -171,2 +183,26 @@ class PersonWithTrackedSetter { | ||
exports.createClassWithTrackedSetter = createClassWithTrackedSetter; | ||
function createClassWithCachedSetter() { | ||
class PersonWithCachedSetter { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
} | ||
// @ts-ignore | ||
set fullName(fullName) { | ||
const [firstName, lastName] = fullName.split(' '); | ||
this.firstName = firstName; | ||
this.lastName = lastName; | ||
} | ||
} | ||
__decorate([ | ||
tracking_1.tracked | ||
], PersonWithCachedSetter.prototype, "firstName", void 0); | ||
__decorate([ | ||
tracking_1.tracked | ||
], PersonWithCachedSetter.prototype, "lastName", void 0); | ||
__decorate([ | ||
tracking_1.cached | ||
], PersonWithCachedSetter.prototype, "fullName", null); | ||
return new PersonWithCachedSetter(); | ||
} | ||
exports.createClassWithCachedSetter = createClassWithCachedSetter; | ||
function createClassWithTrackedDependentKeys() { | ||
@@ -195,2 +231,25 @@ class DependentKeysAreCool { | ||
exports.createClassWithTrackedDependentKeys = createClassWithTrackedDependentKeys; | ||
function createClassWithCachedDependentKeys() { | ||
class DependentKeysAreCool { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
this.lastName = 'Dale'; | ||
} | ||
// @ts-ignore | ||
fullName() { | ||
return `${this.firstName} ${this.lastName}`; | ||
} | ||
} | ||
__decorate([ | ||
tracking_1.cached('firstName', 'lastName') | ||
], DependentKeysAreCool.prototype, "fullName", null); | ||
__decorate([ | ||
tracking_1.tracked | ||
], DependentKeysAreCool.prototype, "firstName", void 0); | ||
__decorate([ | ||
tracking_1.tracked | ||
], DependentKeysAreCool.prototype, "lastName", void 0); | ||
return new DependentKeysAreCool(); | ||
} | ||
exports.createClassWithCachedDependentKeys = createClassWithCachedDependentKeys; | ||
function createClassWithTrackedAsDecoratorFactory() { | ||
@@ -219,2 +278,25 @@ class DependentKeysAreCool { | ||
exports.createClassWithTrackedAsDecoratorFactory = createClassWithTrackedAsDecoratorFactory; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXNjcmlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2Vz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25vcmVcbiAgICBAdHJhY2tlZCgpIGZ1bGxOYW1lKCkge1xuICAgICAgcmV0dXJuIGAke3RoaXMuZmlyc3ROYW1lfSAke3RoaXMubGFzdE5hbWV9YDtcbiAgICB9XG5cbiAgICBAdHJhY2tlZCBmaXJzdE5hbWUgPSAnVG9tJztcbiAgICBAdHJhY2tlZCBsYXN0TmFtZSA9ICdEYWxlJztcbiAgfVxuICByZXR1cm4gbmV3IERlcGVuZGVudEtleXNBcmVDb29sKCk7XG59XG4iXX0= | ||
function createClassWithCachedAsDecoratorFactory() { | ||
class DependentKeysAreCool { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
this.lastName = 'Dale'; | ||
} | ||
// @ts-ignore | ||
fullName() { | ||
return `${this.firstName} ${this.lastName}`; | ||
} | ||
} | ||
__decorate([ | ||
tracking_1.cached() | ||
], DependentKeysAreCool.prototype, "fullName", null); | ||
__decorate([ | ||
tracking_1.tracked | ||
], DependentKeysAreCool.prototype, "firstName", void 0); | ||
__decorate([ | ||
tracking_1.tracked | ||
], DependentKeysAreCool.prototype, "lastName", void 0); | ||
return new DependentKeysAreCool(); | ||
} | ||
exports.createClassWithCachedAsDecoratorFactory = createClassWithCachedAsDecoratorFactory; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXNjcmlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3RyYWNraW5nL3Rlc3QvZml4dHVyZXMvdHlwZXNjcmlwdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxnREFBb0Q7QUFFcEQsTUFBYSxHQUFHO0lBQWhCO1FBQ1csY0FBUyxHQUFHLEtBQUssQ0FBQztJQUM3QixDQUFDO0NBQUE7QUFEVTtJQUFSLGtCQUFPO3NDQUFtQjtBQUQ3QixrQkFFQztB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GFzdE5hbWUgPSAnRGFsZSc7XG4gIH1cbiAgcmV0dXJuIG5ldyBEZXBlbmRlbnRLZXlzQXJlQ29vbCgpO1xufVxuIl19 |
import './tracked-decorator-test'; | ||
import './cached-decorator-test'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("./tracked-decorator-test"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy90ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsb0NBQWtDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICcuL3RyYWNrZWQtZGVjb3JhdG9yLXRlc3QnO1xuIl19 | ||
require("./cached-decorator-test"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy90ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsb0NBQWtDO0FBQ2xDLG1DQUFpQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAnLi90cmFja2VkLWRlY29yYXRvci10ZXN0JztcbmltcG9ydCAnLi9jYWNoZWQtZGVjb3JhdG9yLXRlc3QnO1xuIl19 |
@@ -0,1 +1,2 @@ | ||
export { cached } from './src/cached'; | ||
export { tracked } from './src/tracked'; |
@@ -0,2 +1,3 @@ | ||
export { cached } from './src/cached'; | ||
export { tracked } from './src/tracked'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgdHJhY2tlZCB9IGZyb20gJy4vc3JjL3RyYWNrZWQnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBjYWNoZWQgfSBmcm9tICcuL3NyYy9jYWNoZWQnO1xuZXhwb3J0IHsgdHJhY2tlZCB9IGZyb20gJy4vc3JjL3RyYWNrZWQnO1xuIl19 |
@@ -41,4 +41,8 @@ export declare class Tom { | ||
export declare function createClassWithTrackedGetter(): any; | ||
export declare function createClassWithCachedProperty(): any; | ||
export declare function createClassWithTrackedSetter(): any; | ||
export declare function createClassWithCachedSetter(): any; | ||
export declare function createClassWithTrackedDependentKeys(): any; | ||
export declare function createClassWithCachedDependentKeys(): any; | ||
export declare function createClassWithTrackedAsDecoratorFactory(): any; | ||
export declare function createClassWithCachedAsDecoratorFactory(): any; |
@@ -7,3 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { tracked } from '@glimmer/tracking'; | ||
import { cached, tracked } from '@glimmer/tracking'; | ||
export class Tom { | ||
@@ -136,2 +136,13 @@ constructor() { | ||
} | ||
export function createClassWithCachedProperty() { | ||
class PersonWithCachedProperty { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
} | ||
} | ||
__decorate([ | ||
cached | ||
], PersonWithCachedProperty.prototype, "firstName", void 0); | ||
return new PersonWithCachedProperty(); | ||
} | ||
export function createClassWithTrackedSetter() { | ||
@@ -160,2 +171,25 @@ class PersonWithTrackedSetter { | ||
} | ||
export function createClassWithCachedSetter() { | ||
class PersonWithCachedSetter { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
} | ||
// @ts-ignore | ||
set fullName(fullName) { | ||
const [firstName, lastName] = fullName.split(' '); | ||
this.firstName = firstName; | ||
this.lastName = lastName; | ||
} | ||
} | ||
__decorate([ | ||
tracked | ||
], PersonWithCachedSetter.prototype, "firstName", void 0); | ||
__decorate([ | ||
tracked | ||
], PersonWithCachedSetter.prototype, "lastName", void 0); | ||
__decorate([ | ||
cached | ||
], PersonWithCachedSetter.prototype, "fullName", null); | ||
return new PersonWithCachedSetter(); | ||
} | ||
export function createClassWithTrackedDependentKeys() { | ||
@@ -183,2 +217,24 @@ class DependentKeysAreCool { | ||
} | ||
export function createClassWithCachedDependentKeys() { | ||
class DependentKeysAreCool { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
this.lastName = 'Dale'; | ||
} | ||
// @ts-ignore | ||
fullName() { | ||
return `${this.firstName} ${this.lastName}`; | ||
} | ||
} | ||
__decorate([ | ||
cached('firstName', 'lastName') | ||
], DependentKeysAreCool.prototype, "fullName", null); | ||
__decorate([ | ||
tracked | ||
], DependentKeysAreCool.prototype, "firstName", void 0); | ||
__decorate([ | ||
tracked | ||
], DependentKeysAreCool.prototype, "lastName", void 0); | ||
return new DependentKeysAreCool(); | ||
} | ||
export function createClassWithTrackedAsDecoratorFactory() { | ||
@@ -206,2 +262,24 @@ class DependentKeysAreCool { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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lXG4gICAgQHRyYWNrZWQoKSBmdWxsTmFtZSgpIHtcbiAgICAgIHJldHVybiBgJHt0aGlzLmZpcnN0TmFtZX0gJHt0aGlzLmxhc3ROYW1lfWA7XG4gICAgfVxuXG4gICAgQHRyYWNrZWQgZmlyc3ROYW1lID0gJ1RvbSc7XG4gICAgQHRyYWNrZWQgbGFzdE5hbWUgPSAnRGFsZSc7XG4gIH1cbiAgcmV0dXJuIG5ldyBEZXBlbmRlbnRLZXlzQXJlQ29vbCgpO1xufVxuIl19 | ||
export function createClassWithCachedAsDecoratorFactory() { | ||
class DependentKeysAreCool { | ||
constructor() { | ||
this.firstName = 'Tom'; | ||
this.lastName = 'Dale'; | ||
} | ||
// @ts-ignore | ||
fullName() { | ||
return `${this.firstName} ${this.lastName}`; | ||
} | ||
} | ||
__decorate([ | ||
cached() | ||
], DependentKeysAreCool.prototype, "fullName", null); | ||
__decorate([ | ||
tracked | ||
], DependentKeysAreCool.prototype, "firstName", void 0); | ||
__decorate([ | ||
tracked | ||
], DependentKeysAreCool.prototype, "lastName", void 0); | ||
return new DependentKeysAreCool(); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXNjcmlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3RyYWNraW5nL3Rlc3QvZml4dHVyZXMvdHlwZXNjcmlwdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE9BQU8sRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRXBELE1BQU0sT0FBTyxHQUFHO0lBQWhCO1FBQ1csY0FBUyxHQUFHLEtBQUssQ0FBQztJQUM3QixDQUFDO0NBQUE7QUFEVTtJQUFSLE9BQU87c0NBQW1CO0FBRzdCLE1BQU0sT0FBTyxLQ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'./tracked-decorator-test'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy90ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgJy4vdHJhY2tlZC1kZWNvcmF0b3ItdGVzdCc7XG4iXX0= | ||
import './cached-decorator-test'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci90cmFja2luZy90ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sMEJBQTBCLENBQUM7QUFDbEMsT0FBTyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAnLi90cmFja2VkLWRlY29yYXRvci10ZXN0JztcbmltcG9ydCAnLi9jYWNoZWQtZGVjb3JhdG9yLXRlc3QnO1xuIl19 |
{ | ||
"name": "@glimmer/tracking", | ||
"version": "2.0.0-beta.20", | ||
"version": "2.0.0-beta.21", | ||
"description": "Glimmer property tracking library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
204821
35
1947