skandha 0.13.0 → 0.15.0

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.
package/index.d.ts CHANGED
@@ -9,4 +9,5 @@ export { getOperationMemberNames, operation } from './lib/operation';
9
9
  export { mapDataToProp, mapDataToProps } from './lib/patch';
10
10
  export { registerCtr } from './lib/registerCtr';
11
11
  export type { OptionsT as RegisterCtrOptionsT } from './lib/registerCtr';
12
+ export { stub } from './lib/stub';
12
13
  export type ClassT = any;
package/index.js CHANGED
@@ -8,3 +8,4 @@ export { installPolicies } from './lib/install';
8
8
  export { getOperationMemberNames, operation } from './lib/operation';
9
9
  export { mapDataToProp, mapDataToProps } from './lib/patch';
10
10
  export { registerCtr } from './lib/registerCtr';
11
+ export { stub } from './lib/stub';
package/lib/operation.js CHANGED
@@ -20,8 +20,8 @@ function _operation(target, propertyName, descriptor, punctualOptions) {
20
20
  if (typeof descriptor.value === 'function') {
21
21
  descriptor.value = !!punctualOptions.async
22
22
  ? function (...args) {
23
- var _a;
24
23
  return __awaiter(this, void 0, void 0, function* () {
24
+ var _a;
25
25
  const facet = this;
26
26
  const isLogging = options.logging && ((_a = punctualOptions.log) !== null && _a !== void 0 ? _a : true);
27
27
  isLogging && log(facet, propertyName, args, true);
package/lib/stub.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const stub: any;
package/lib/stub.js ADDED
@@ -0,0 +1 @@
1
+ export const stub = undefined;
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "skandha",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Create data containers with modular behaviours",
5
5
  "main": "index.js",
6
+ "exports": {
7
+ ".": {
8
+ "default": "./index.js"
9
+ }
10
+ },
6
11
  "repository": "https://github.com/mnieber/skandha.git",
7
12
  "author": "Maarten Nieber",
8
13
  "license": "MIT",