@akanjs/base 0.0.95 → 0.0.96
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.js +0 -4
- package/package.json +2 -2
- package/src/base.js +0 -8
- package/src/baseEnv.js +0 -5
- package/src/index.js +0 -7
- package/src/scalar.d.ts +4 -4
- package/src/scalar.js +0 -23
package/index.js
CHANGED
|
@@ -15,7 +15,3 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
15
|
var base_exports = {};
|
|
16
16
|
module.exports = __toCommonJS(base_exports);
|
|
17
17
|
__reExport(base_exports, require("./src"), module.exports);
|
|
18
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
19
|
-
0 && (module.exports = {
|
|
20
|
-
...require("./src")
|
|
21
|
-
});
|
package/package.json
CHANGED
package/src/base.js
CHANGED
|
@@ -176,11 +176,3 @@ const logo = `
|
|
|
176
176
|
\u2605 Star Akanjs on GitHub https://github.com/aka-bassman/akanjs
|
|
177
177
|
|
|
178
178
|
`;
|
|
179
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
180
|
-
0 && (module.exports = {
|
|
181
|
-
DataList,
|
|
182
|
-
Enum,
|
|
183
|
-
enumOf,
|
|
184
|
-
logo,
|
|
185
|
-
version
|
|
186
|
-
});
|
package/src/baseEnv.js
CHANGED
package/src/index.js
CHANGED
|
@@ -18,10 +18,3 @@ __reExport(src_exports, require("./base"), module.exports);
|
|
|
18
18
|
__reExport(src_exports, require("./baseEnv"), module.exports);
|
|
19
19
|
__reExport(src_exports, require("./scalar"), module.exports);
|
|
20
20
|
__reExport(src_exports, require("./types"), module.exports);
|
|
21
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
-
0 && (module.exports = {
|
|
23
|
-
...require("./base"),
|
|
24
|
-
...require("./baseEnv"),
|
|
25
|
-
...require("./scalar"),
|
|
26
|
-
...require("./types")
|
|
27
|
-
});
|
package/src/scalar.d.ts
CHANGED
|
@@ -37,10 +37,10 @@ export declare const gqlScalars: readonly [StringConstructor, BooleanConstructor
|
|
|
37
37
|
export type GqlScalar = (typeof gqlScalars)[number];
|
|
38
38
|
export declare const gqlScalarNames: readonly ["ID", "Int", "Float", "String", "Boolean", "Date", "Upload", "JSON", "Map"];
|
|
39
39
|
export type GqlScalarName = (typeof gqlScalarNames)[number];
|
|
40
|
-
export declare const scalarSet: Set<MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor
|
|
41
|
-
export declare const scalarNameMap: Map<MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor
|
|
42
|
-
export declare const scalarArgMap: Map<MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor
|
|
43
|
-
export declare const scalarDefaultMap: Map<MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor
|
|
40
|
+
export declare const scalarSet: Set<DateConstructor | MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor>;
|
|
41
|
+
export declare const scalarNameMap: Map<DateConstructor | MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor, "ID" | "Int" | "Float" | "String" | "Boolean" | "Date" | "Upload" | "JSON" | "Map">;
|
|
42
|
+
export declare const scalarArgMap: Map<DateConstructor | MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor, any>;
|
|
43
|
+
export declare const scalarDefaultMap: Map<DateConstructor | MapConstructor | typeof Int | typeof Upload | typeof Float | typeof ID | typeof JSON | StringConstructor | BooleanConstructor, any>;
|
|
44
44
|
export declare const isGqlClass: (modelRef: Type) => boolean;
|
|
45
45
|
export declare const isGqlScalar: (modelRef: Type) => boolean;
|
|
46
46
|
export declare const isGqlMap: (modelRef: any) => boolean;
|
package/src/scalar.js
CHANGED
|
@@ -132,26 +132,3 @@ const scalarDefaultMap = /* @__PURE__ */ new Map([
|
|
|
132
132
|
const isGqlClass = (modelRef) => !scalarSet.has(modelRef);
|
|
133
133
|
const isGqlScalar = (modelRef) => scalarSet.has(modelRef);
|
|
134
134
|
const isGqlMap = (modelRef) => modelRef === Map;
|
|
135
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
136
|
-
0 && (module.exports = {
|
|
137
|
-
BaseObject,
|
|
138
|
-
Dayjs,
|
|
139
|
-
Float,
|
|
140
|
-
ID,
|
|
141
|
-
Int,
|
|
142
|
-
JSON,
|
|
143
|
-
Upload,
|
|
144
|
-
applyFnToArrayObjects,
|
|
145
|
-
arraiedModel,
|
|
146
|
-
dayjs,
|
|
147
|
-
getNonArrayModel,
|
|
148
|
-
gqlScalarNames,
|
|
149
|
-
gqlScalars,
|
|
150
|
-
isGqlClass,
|
|
151
|
-
isGqlMap,
|
|
152
|
-
isGqlScalar,
|
|
153
|
-
scalarArgMap,
|
|
154
|
-
scalarDefaultMap,
|
|
155
|
-
scalarNameMap,
|
|
156
|
-
scalarSet
|
|
157
|
-
});
|