Comparing version 0.27.19-next.0 to 0.27.19
@@ -90,2 +90,3 @@ import { AsyncLocalStorage } from 'async_hooks'; | ||
export class StubRemultAsyncLocalStorageCore { | ||
isStub = true; | ||
wasImplemented = 'yes'; | ||
@@ -92,0 +93,0 @@ async run(store, callback) { |
@@ -42,3 +42,4 @@ import { buildFullUrl, RestDataProvider, } from './data-providers/rest-data-provider.js'; | ||
return; | ||
store.inInitRequest = val; | ||
if (val || this.remultObjectStorage?.isStub) | ||
store.inInitRequest = val; | ||
} | ||
@@ -45,0 +46,0 @@ getStore() { |
{ | ||
"name": "remult", | ||
"version": "0.27.19-next.0", | ||
"version": "0.27.19", | ||
"description": "A CRUD framework for full-stack TypeScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://remult.dev", |
@@ -17,2 +17,3 @@ import { type RemultAsyncLocalStorageCore } from '../src/context.js'; | ||
export declare class StubRemultAsyncLocalStorageCore<T> implements RemultAsyncLocalStorageCore<T> { | ||
isStub: boolean; | ||
wasImplemented: "yes"; | ||
@@ -19,0 +20,0 @@ run<R>(store: T, callback: () => Promise<R>): Promise<R>; |
@@ -143,2 +143,3 @@ "use strict"; | ||
function StubRemultAsyncLocalStorageCore() { | ||
this.isStub = true; | ||
this.wasImplemented = 'yes'; | ||
@@ -145,0 +146,0 @@ this.lastPromise = Promise.resolve(undefined); |
@@ -27,2 +27,3 @@ import type { ClassType } from '../classType.js'; | ||
wasImplemented: 'yes'; | ||
isStub?: boolean; | ||
}; | ||
@@ -29,0 +30,0 @@ export declare function isBackend(): boolean; |
@@ -52,7 +52,8 @@ "use strict"; | ||
RemultAsyncLocalStorage.prototype.setInInitRequest = function (val) { | ||
var _a; | ||
var _a, _b; | ||
var store = (_a = this.remultObjectStorage) === null || _a === void 0 ? void 0 : _a.getStore(); | ||
if (!store) | ||
return; | ||
store.inInitRequest = val; | ||
if (val || ((_b = this.remultObjectStorage) === null || _b === void 0 ? void 0 : _b.isStub)) | ||
store.inInitRequest = val; | ||
}; | ||
@@ -59,0 +60,0 @@ RemultAsyncLocalStorage.prototype.getStore = function () { |
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
4880000
54123