@opra/sqb 0.7.0 → 0.8.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.
@@ -4,8 +4,6 @@ exports.BaseEntityService = void 0;
4
4
  const common_1 = require("@opra/common");
5
5
  const connect_1 = require("@sqb/connect");
6
6
  class BaseEntityService {
7
- resourceType;
8
- _metadata;
9
7
  constructor(resourceType) {
10
8
  this.resourceType = resourceType;
11
9
  const metadata = connect_1.EntityMetadata.get(resourceType);
package/cjs/index.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const _SqbConnect = tslib_1.__importStar(require("@sqb/connect"));
4
5
  tslib_1.__exportStar(require("./sqb-adapter.js"), exports);
5
6
  tslib_1.__exportStar(require("./base-entity-resource.js"), exports);
6
7
  tslib_1.__exportStar(require("./base-entity-service.js"), exports);
8
+ const optionalsSymbol = Symbol.for('opra.optional-lib.sqb-connect');
9
+ globalThis[optionalsSymbol] = globalThis[optionalsSymbol] || {};
10
+ globalThis[optionalsSymbol].SqbConnect = _SqbConnect;
@@ -1,8 +1,6 @@
1
1
  import { BadRequestError } from '@opra/common';
2
2
  import { EntityMetadata } from '@sqb/connect';
3
3
  export class BaseEntityService {
4
- resourceType;
5
- _metadata;
6
4
  constructor(resourceType) {
7
5
  this.resourceType = resourceType;
8
6
  const metadata = EntityMetadata.get(resourceType);
package/esm/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ import * as _SqbConnect from '@sqb/connect';
1
2
  export * from './sqb-adapter.js';
2
3
  export * from './base-entity-resource.js';
3
4
  export * from './base-entity-service.js';
5
+ export type { _SqbConnect as SqbConnect };
6
+ declare global {
7
+ export type SqbConnect = typeof _SqbConnect;
8
+ }
package/esm/index.js CHANGED
@@ -1,3 +1,7 @@
1
+ import * as _SqbConnect from '@sqb/connect';
1
2
  export * from './sqb-adapter.js';
2
3
  export * from './base-entity-resource.js';
3
4
  export * from './base-entity-service.js';
5
+ const optionalsSymbol = Symbol.for('opra.optional-lib.sqb-connect');
6
+ globalThis[optionalsSymbol] = globalThis[optionalsSymbol] || {};
7
+ globalThis[optionalsSymbol].SqbConnect = _SqbConnect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/sqb",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Opra SQB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -37,9 +37,8 @@
37
37
  "postgresql-client": "^2.5.2"
38
38
  },
39
39
  "peerDependencies": {
40
- "@opra/core": "^0.7.0",
40
+ "@opra/core": "^0.8.0",
41
41
  "@opra/exception": "^0.5.0",
42
- "@opra/optionals": "^0.7.0",
43
42
  "@opra/url": "^0.5.0",
44
43
  "@sqb/connect": ">= 4.5.4"
45
44
  },