remult 0.20.5-exp.1 → 0.20.5-exp.2

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/esm/graphql.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FieldsMetadata, Remult } from '../core';
1
+ import { FieldsMetadata, Remult } from './index';
2
2
  import type { ClassType } from './classType';
3
3
  export declare function remultGraphql(options: {
4
4
  removeComments?: boolean;
package/esm/graphql.js CHANGED
@@ -1,5 +1,5 @@
1
- import { DataApi } from '../core/src/data-api';
2
- import { Remult, remult } from '../core';
1
+ import { DataApi } from './src/data-api';
2
+ import { Remult, remult } from './index';
3
3
  const v2ConnectionAndPagination = false;
4
4
  const andImplementation = false;
5
5
  let _removeComments = false;
package/graphql.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FieldsMetadata, Remult } from '../core';
1
+ import { FieldsMetadata, Remult } from './index';
2
2
  import type { ClassType } from './classType';
3
3
  export declare function remultGraphql(options: {
4
4
  removeComments?: boolean;
package/graphql.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.translateWhereToRestBody = exports.remultGraphql = void 0;
4
4
  var tslib_1 = require("tslib");
5
- var data_api_1 = require("../core/src/data-api");
6
- var core_1 = require("../core");
5
+ var data_api_1 = require("./src/data-api");
6
+ var index_1 = require("./index");
7
7
  var v2ConnectionAndPagination = false;
8
8
  var andImplementation = false;
9
9
  var _removeComments = false;
@@ -12,7 +12,7 @@ function remultGraphql(options) {
12
12
  var _this = this;
13
13
  var _f, _g;
14
14
  if (!options.getRemultFromRequest) {
15
- options.getRemultFromRequest = function () { return core_1.remult; };
15
+ options.getRemultFromRequest = function () { return index_1.remult; };
16
16
  }
17
17
  var removeComments = tslib_1.__assign({ removeComments: false }, options).removeComments;
18
18
  if (removeComments) {
@@ -20,7 +20,7 @@ function remultGraphql(options) {
20
20
  }
21
21
  var entities = (function () {
22
22
  var _a;
23
- var remult = new core_1.Remult();
23
+ var remult = new index_1.Remult();
24
24
  return ((_a = options.entities) === null || _a === void 0 ? void 0 : _a.map(function (x) { return remult.repo(x).metadata; })) || [];
25
25
  })();
26
26
  var types = [];
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.20.5-exp.1",
3
+ "version": "0.20.5-exp.2",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
- "main": "index.js",
6
5
  "types": "index.d.ts",
7
6
  "module": "esm/index.js",
8
7
  "homepage": "https://remult.dev/",