strata.foundation.core 0.0.0-snapshot.24 → 0.0.0-snapshot.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ import { IConsumer } from "./IConsumer";
2
+ import { ISupplier } from "./ISupplier";
3
+ export declare class Holder<T> implements IConsumer<T>, ISupplier<T> {
4
+ private value;
5
+ constructor();
6
+ accept(value: T): void;
7
+ get(): T;
8
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Holder = void 0;
4
+ class Holder {
5
+ value;
6
+ constructor() {
7
+ this.value = null;
8
+ }
9
+ accept(value) {
10
+ this.value = value;
11
+ }
12
+ get() {
13
+ return this.value;
14
+ }
15
+ }
16
+ exports.Holder = Holder;
17
+ //# sourceMappingURL=Holder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Holder.js","sourceRoot":"","sources":["../../../main/typescript/Utility/Holder.ts"],"names":[],"mappings":";;;AAGA,MACM,MAAM;IAGA,KAAK,CAAI;IAEjB;QAEI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,MAAM,CAAC,KAAQ;QAEX,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,GAAG;QAEC,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;CAEJ;AArBD,wBAqBC"}
@@ -0,0 +1,3 @@
1
+ export interface IConsumer<T> {
2
+ accept(value: T): void;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IConsumer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IConsumer.js","sourceRoot":"","sources":["../../../main/typescript/Utility/IConsumer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface ISupplier<T> {
2
+ get(): T;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISupplier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISupplier.js","sourceRoot":"","sources":["../../../main/typescript/Utility/ISupplier.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export { IConsumer } from './IConsumer';
2
+ export { ISupplier } from './ISupplier';
3
+ export { Holder } from './Holder';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Holder = void 0;
4
+ var Holder_1 = require("./Holder");
5
+ Object.defineProperty(exports, "Holder", { enumerable: true, get: function () { return Holder_1.Holder; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../main/typescript/Utility/index.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAAxB,gGAAA,MAAM,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strata.foundation.core",
3
- "version": "0.0.0-snapshot.24",
3
+ "version": "0.0.0-snapshot.25",
4
4
  "description": "The core framework for Strata Foundation. Provides functionality for advanced containers and concurrency mechanisms.",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {