@kiwano/core 1.4.0 → 2.0.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/dist/Builder.d.ts +0 -1
- package/dist/Builder.js +2 -3
- package/dist/argument.js +6 -26
- package/dist/entity/createInputObjectType.js +2 -2
- package/dist/entity/entitySchema.js +2 -2
- package/dist/entity/updateInputObjectType.js +2 -2
- package/dist/enumType.js +3 -3
- package/dist/enumValue.js +6 -26
- package/dist/field.js +3 -3
- package/dist/inputField.js +6 -26
- package/dist/inputObjectType.js +3 -3
- package/dist/naming/compact.js +2 -2
- package/dist/naming/descriptive.js +2 -2
- package/dist/naming/util.js +3 -3
- package/dist/objectType.js +3 -3
- package/dist/plugin/acl/acl.js +2 -2
- package/dist/plugin/acl/middleware.js +4 -4
- package/dist/plugin/filter/equals.js +2 -2
- package/dist/plugin/filter/search.js +2 -2
- package/dist/plugin/pagination/connection.js +2 -2
- package/dist/plugin/pagination/firstAfter.js +2 -2
- package/dist/plugin/pagination/items.js +2 -2
- package/dist/plugin/pagination/offsetLimit.js +2 -2
- package/dist/plugin/pagination/relay.js +2 -2
- package/dist/plugin/pagination/simple.js +2 -2
- package/dist/plugin/sort/sort.js +2 -2
- package/dist/schema.js +2 -2
- package/dist/unionType.js +6 -26
- package/dist/util.js +10 -10
- package/package.json +1 -1
package/dist/Builder.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export declare class BuilderError extends FrameworkError {
|
|
|
8
8
|
}
|
|
9
9
|
export type BuilderOrConfiguratorOrName<T> = T | Configurator<T> | string;
|
|
10
10
|
export type BuilderName = string | (() => string);
|
|
11
|
-
export declare const builderInfoExtensionName = "$builder";
|
|
12
11
|
export default abstract class Builder<RT> {
|
|
13
12
|
protected _name?: BuilderName;
|
|
14
13
|
protected _plugins: Plugin[];
|
package/dist/Builder.js
CHANGED
|
@@ -3,14 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.FinalizeContext = exports.BuildContext = exports.BuilderError = void 0;
|
|
7
|
+
exports.resolveName = resolveName;
|
|
7
8
|
const lodash_1 = require("lodash");
|
|
8
9
|
const graphql_1 = require("graphql");
|
|
9
10
|
const FrameworkError_1 = __importDefault(require("./error/FrameworkError"));
|
|
10
11
|
class BuilderError extends FrameworkError_1.default {
|
|
11
12
|
}
|
|
12
13
|
exports.BuilderError = BuilderError;
|
|
13
|
-
exports.builderInfoExtensionName = "$builder";
|
|
14
14
|
class Builder {
|
|
15
15
|
constructor(name = null) {
|
|
16
16
|
this._plugins = [];
|
|
@@ -111,4 +111,3 @@ exports.FinalizeContext = FinalizeContext;
|
|
|
111
111
|
function resolveName(name) {
|
|
112
112
|
return (0, lodash_1.isFunction)(name) ? name() : name;
|
|
113
113
|
}
|
|
114
|
-
exports.resolveName = resolveName;
|
package/dist/argument.js
CHANGED
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
6
|
+
exports.ArgumentBuilder = void 0;
|
|
7
|
+
exports.argument = argument;
|
|
27
8
|
const lodash_1 = require("lodash");
|
|
28
9
|
const graphql_1 = require("graphql");
|
|
29
|
-
const Builder_1 =
|
|
10
|
+
const Builder_1 = __importDefault(require("./Builder"));
|
|
30
11
|
const util_1 = require("./util");
|
|
31
12
|
class ArgumentBuilder extends Builder_1.default {
|
|
32
13
|
constructor(name, type) {
|
|
@@ -94,7 +75,7 @@ class ArgumentBuilder extends Builder_1.default {
|
|
|
94
75
|
const argument = {
|
|
95
76
|
type,
|
|
96
77
|
description: this._description,
|
|
97
|
-
extensions: Object.assign({
|
|
78
|
+
extensions: Object.assign({}, Object.fromEntries(this._extensions))
|
|
98
79
|
};
|
|
99
80
|
this._executePluginsSync('afterBuildArgument', plugin => plugin.afterBuildArgument(this, context, info, argument));
|
|
100
81
|
return argument;
|
|
@@ -116,5 +97,4 @@ exports.ArgumentBuilder = ArgumentBuilder;
|
|
|
116
97
|
function argument(name, type) {
|
|
117
98
|
return new ArgumentBuilder(name, type);
|
|
118
99
|
}
|
|
119
|
-
exports.argument = argument;
|
|
120
100
|
exports.default = argument;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CreateInputObjectTypeBuilder = void 0;
|
|
4
|
+
exports.createInputObjectType = createInputObjectType;
|
|
4
5
|
const inputObjectType_1 = require("../inputObjectType");
|
|
5
6
|
const objectType_1 = require("../objectType");
|
|
6
7
|
const inputField_1 = require("../inputField");
|
|
@@ -43,5 +44,4 @@ exports.CreateInputObjectTypeBuilder = CreateInputObjectTypeBuilder;
|
|
|
43
44
|
function createInputObjectType(name, entityType) {
|
|
44
45
|
return new CreateInputObjectTypeBuilder(name, entityType);
|
|
45
46
|
}
|
|
46
|
-
exports.createInputObjectType = createInputObjectType;
|
|
47
47
|
exports.default = createInputObjectType;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EntitySchemaBuilder = exports.AbstractEntitySchemaBuilder = exports.AbstractEntitySchemaBuilderBase = exports.entityFieldTypeExtensionName = exports.EntityFieldType = void 0;
|
|
4
|
+
exports.entitySchema = entitySchema;
|
|
4
5
|
const objectType_1 = require("../objectType");
|
|
5
6
|
const field_1 = require("../field");
|
|
6
7
|
const naming_1 = require("../naming");
|
|
@@ -208,5 +209,4 @@ EntitySchemaBuilder.defaultNamingStrategy = (0, naming_1.compactNamingStrategy)(
|
|
|
208
209
|
function entitySchema(name) {
|
|
209
210
|
return new EntitySchemaBuilder(name);
|
|
210
211
|
}
|
|
211
|
-
exports.entitySchema = entitySchema;
|
|
212
212
|
exports.default = entitySchema;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UpdateInputObjectTypeBuilder = void 0;
|
|
4
|
+
exports.updateInputObjectType = updateInputObjectType;
|
|
4
5
|
const inputObjectType_1 = require("../inputObjectType");
|
|
5
6
|
const objectType_1 = require("../objectType");
|
|
6
7
|
const inputField_1 = require("../inputField");
|
|
@@ -43,5 +44,4 @@ exports.UpdateInputObjectTypeBuilder = UpdateInputObjectTypeBuilder;
|
|
|
43
44
|
function updateInputObjectType(name, entityType) {
|
|
44
45
|
return new UpdateInputObjectTypeBuilder(name, entityType);
|
|
45
46
|
}
|
|
46
|
-
exports.updateInputObjectType = updateInputObjectType;
|
|
47
47
|
exports.default = updateInputObjectType;
|
package/dist/enumType.js
CHANGED
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.EnumTypeBuilder = void 0;
|
|
27
|
+
exports.enumType = enumType;
|
|
27
28
|
const lodash_1 = require("lodash");
|
|
28
29
|
const definition_1 = require("graphql/type/definition");
|
|
29
30
|
const Builder_1 = __importStar(require("./Builder"));
|
|
@@ -93,7 +94,7 @@ class EnumTypeBuilder extends Builder_1.default {
|
|
|
93
94
|
name: this.name,
|
|
94
95
|
description: this._description,
|
|
95
96
|
values: builtValues,
|
|
96
|
-
extensions: Object.assign({
|
|
97
|
+
extensions: Object.assign({}, Object.fromEntries(this._extensions))
|
|
97
98
|
});
|
|
98
99
|
this._executePluginsSync('afterBuildEnumType', plugin => plugin.afterBuildEnumType(this, context, info, enumType));
|
|
99
100
|
return enumType;
|
|
@@ -112,5 +113,4 @@ exports.EnumTypeBuilder = EnumTypeBuilder;
|
|
|
112
113
|
function enumType(name, valuesObject = null) {
|
|
113
114
|
return new EnumTypeBuilder(name, valuesObject);
|
|
114
115
|
}
|
|
115
|
-
exports.enumType = enumType;
|
|
116
116
|
exports.default = enumType;
|
package/dist/enumValue.js
CHANGED
|
@@ -1,31 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
6
|
+
exports.EnumValueBuilder = void 0;
|
|
7
|
+
exports.enumValue = enumValue;
|
|
27
8
|
const lodash_1 = require("lodash");
|
|
28
|
-
const Builder_1 =
|
|
9
|
+
const Builder_1 = __importDefault(require("./Builder"));
|
|
29
10
|
class EnumValueBuilder extends Builder_1.default {
|
|
30
11
|
constructor(name, value = null) {
|
|
31
12
|
super(name);
|
|
@@ -57,7 +38,7 @@ class EnumValueBuilder extends Builder_1.default {
|
|
|
57
38
|
const enumValue = {
|
|
58
39
|
value: this._value,
|
|
59
40
|
description: this._description,
|
|
60
|
-
extensions: Object.assign({
|
|
41
|
+
extensions: Object.assign({}, Object.fromEntries(this._extensions))
|
|
61
42
|
};
|
|
62
43
|
this._executePluginsSync('afterBuildEnumValue', plugin => plugin.afterBuildEnumValue(this, context, info, enumValue));
|
|
63
44
|
return enumValue;
|
|
@@ -76,5 +57,4 @@ exports.EnumValueBuilder = EnumValueBuilder;
|
|
|
76
57
|
function enumValue(name, value = null) {
|
|
77
58
|
return new EnumValueBuilder(name, value);
|
|
78
59
|
}
|
|
79
|
-
exports.enumValue = enumValue;
|
|
80
60
|
exports.default = enumValue;
|
package/dist/field.js
CHANGED
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.FieldBuilder = void 0;
|
|
27
|
+
exports.field = field;
|
|
27
28
|
const lodash_1 = require("lodash");
|
|
28
29
|
const graphql_1 = require("graphql");
|
|
29
30
|
const argument_1 = require("./argument");
|
|
@@ -146,7 +147,7 @@ class FieldBuilder extends Builder_1.default {
|
|
|
146
147
|
type,
|
|
147
148
|
description: this._description,
|
|
148
149
|
args: builtArgs,
|
|
149
|
-
extensions: Object.assign({ allowedRoles: Array.from(this._allowedRoles), deniedRoles: Array.from(this._deniedRoles)
|
|
150
|
+
extensions: Object.assign({ allowedRoles: Array.from(this._allowedRoles), deniedRoles: Array.from(this._deniedRoles) }, Object.fromEntries(this._extensions)),
|
|
150
151
|
resolve: resolver
|
|
151
152
|
};
|
|
152
153
|
this._executePluginsSync('afterBuildField', plugin => plugin.afterBuildField(this, context, info, field));
|
|
@@ -173,5 +174,4 @@ exports.FieldBuilder = FieldBuilder;
|
|
|
173
174
|
function field(name, type = null) {
|
|
174
175
|
return new FieldBuilder(name, type);
|
|
175
176
|
}
|
|
176
|
-
exports.field = field;
|
|
177
177
|
exports.default = field;
|
package/dist/inputField.js
CHANGED
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
6
|
+
exports.InputFieldBuilder = void 0;
|
|
7
|
+
exports.inputField = inputField;
|
|
27
8
|
const lodash_1 = require("lodash");
|
|
28
9
|
const graphql_1 = require("graphql");
|
|
29
|
-
const Builder_1 =
|
|
10
|
+
const Builder_1 = __importDefault(require("./Builder"));
|
|
30
11
|
const util_1 = require("./util");
|
|
31
12
|
class InputFieldBuilder extends Builder_1.default {
|
|
32
13
|
constructor(name, type) {
|
|
@@ -94,7 +75,7 @@ class InputFieldBuilder extends Builder_1.default {
|
|
|
94
75
|
const inputField = {
|
|
95
76
|
type,
|
|
96
77
|
description: this._description,
|
|
97
|
-
extensions: Object.assign({
|
|
78
|
+
extensions: Object.assign({}, Object.fromEntries(this._extensions))
|
|
98
79
|
};
|
|
99
80
|
this._executePluginsSync('afterBuildInputField', plugin => plugin.afterBuildInputField(this, context, info, inputField));
|
|
100
81
|
return inputField;
|
|
@@ -116,5 +97,4 @@ exports.InputFieldBuilder = InputFieldBuilder;
|
|
|
116
97
|
function inputField(name, type) {
|
|
117
98
|
return new InputFieldBuilder(name, type);
|
|
118
99
|
}
|
|
119
|
-
exports.inputField = inputField;
|
|
120
100
|
exports.default = inputField;
|
package/dist/inputObjectType.js
CHANGED
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.InputObjectTypeBuilder = void 0;
|
|
27
|
+
exports.inputObjectType = inputObjectType;
|
|
27
28
|
const lodash_1 = require("lodash");
|
|
28
29
|
const graphql_1 = require("graphql");
|
|
29
30
|
const inputField_1 = require("./inputField");
|
|
@@ -79,7 +80,7 @@ class InputObjectTypeBuilder extends Builder_1.default {
|
|
|
79
80
|
const inputObjectType = new graphql_1.GraphQLInputObjectType({
|
|
80
81
|
name: this.name,
|
|
81
82
|
description: this._description,
|
|
82
|
-
extensions: Object.assign({
|
|
83
|
+
extensions: Object.assign({}, Object.fromEntries(this._extensions)),
|
|
83
84
|
fields: () => {
|
|
84
85
|
let builtFields = {};
|
|
85
86
|
for (let field of this._fields) {
|
|
@@ -105,5 +106,4 @@ exports.InputObjectTypeBuilder = InputObjectTypeBuilder;
|
|
|
105
106
|
function inputObjectType(name) {
|
|
106
107
|
return new InputObjectTypeBuilder(name);
|
|
107
108
|
}
|
|
108
|
-
exports.inputObjectType = inputObjectType;
|
|
109
109
|
exports.default = inputObjectType;
|
package/dist/naming/compact.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CompactNamingStrategy = void 0;
|
|
4
|
+
exports.compactNamingStrategy = compactNamingStrategy;
|
|
4
5
|
const util_1 = require("./util");
|
|
5
6
|
class CompactNamingStrategy {
|
|
6
7
|
entityObject(schemaName) {
|
|
@@ -50,5 +51,4 @@ exports.CompactNamingStrategy = CompactNamingStrategy;
|
|
|
50
51
|
function compactNamingStrategy() {
|
|
51
52
|
return new CompactNamingStrategy();
|
|
52
53
|
}
|
|
53
|
-
exports.compactNamingStrategy = compactNamingStrategy;
|
|
54
54
|
exports.default = compactNamingStrategy;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DescriptiveNamingStrategy = void 0;
|
|
4
|
+
exports.descriptiveNamingStrategy = descriptiveNamingStrategy;
|
|
4
5
|
const util_1 = require("./util");
|
|
5
6
|
class DescriptiveNamingStrategy {
|
|
6
7
|
entityObject(schemaName) {
|
|
@@ -50,5 +51,4 @@ exports.DescriptiveNamingStrategy = DescriptiveNamingStrategy;
|
|
|
50
51
|
function descriptiveNamingStrategy() {
|
|
51
52
|
return new DescriptiveNamingStrategy();
|
|
52
53
|
}
|
|
53
|
-
exports.descriptiveNamingStrategy = descriptiveNamingStrategy;
|
|
54
54
|
exports.default = descriptiveNamingStrategy;
|
package/dist/naming/util.js
CHANGED
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.pluralize =
|
|
6
|
+
exports.pluralize = void 0;
|
|
7
|
+
exports.ucFirst = ucFirst;
|
|
8
|
+
exports.lcFirst = lcFirst;
|
|
7
9
|
const pluralize_1 = __importDefault(require("pluralize"));
|
|
8
10
|
exports.pluralize = pluralize_1.default;
|
|
9
11
|
function ucFirst(input) {
|
|
@@ -12,11 +14,9 @@ function ucFirst(input) {
|
|
|
12
14
|
}
|
|
13
15
|
return input.charAt(0).toUpperCase() + input.slice(1);
|
|
14
16
|
}
|
|
15
|
-
exports.ucFirst = ucFirst;
|
|
16
17
|
function lcFirst(input) {
|
|
17
18
|
if (input === null || input.length === 0) {
|
|
18
19
|
return null;
|
|
19
20
|
}
|
|
20
21
|
return input.charAt(0).toLowerCase() + input.slice(1);
|
|
21
22
|
}
|
|
22
|
-
exports.lcFirst = lcFirst;
|
package/dist/objectType.js
CHANGED
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.ObjectTypeBuilder = void 0;
|
|
27
|
+
exports.objectType = objectType;
|
|
27
28
|
const lodash_1 = require("lodash");
|
|
28
29
|
const graphql_1 = require("graphql");
|
|
29
30
|
const field_1 = require("./field");
|
|
@@ -96,7 +97,7 @@ class ObjectTypeBuilder extends Builder_1.default {
|
|
|
96
97
|
const objectType = new graphql_1.GraphQLObjectType({
|
|
97
98
|
name: this.name,
|
|
98
99
|
description: this._description,
|
|
99
|
-
extensions: Object.assign({ allowedRoles: Array.from(this._allowedRoles), deniedRoles: Array.from(this._deniedRoles)
|
|
100
|
+
extensions: Object.assign({ allowedRoles: Array.from(this._allowedRoles), deniedRoles: Array.from(this._deniedRoles) }, Object.fromEntries(this._extensions)),
|
|
100
101
|
fields: () => {
|
|
101
102
|
let builtFields = {};
|
|
102
103
|
for (let field of this._fields) {
|
|
@@ -125,5 +126,4 @@ exports.ObjectTypeBuilder = ObjectTypeBuilder;
|
|
|
125
126
|
function objectType(name) {
|
|
126
127
|
return new ObjectTypeBuilder(name);
|
|
127
128
|
}
|
|
128
|
-
exports.objectType = objectType;
|
|
129
129
|
exports.default = objectType;
|
package/dist/plugin/acl/acl.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.AclPlugin = exports.defaultAclOptions = exports.AclAction = void 0;
|
|
7
|
+
exports.aclPlugin = aclPlugin;
|
|
7
8
|
const lodash_1 = require("lodash");
|
|
8
9
|
const middleware_1 = require("./middleware");
|
|
9
10
|
const FrameworkError_1 = __importDefault(require("../../error/FrameworkError"));
|
|
@@ -201,5 +202,4 @@ exports.AclPlugin = AclPlugin;
|
|
|
201
202
|
function aclPlugin(options) {
|
|
202
203
|
return new AclPlugin(options);
|
|
203
204
|
}
|
|
204
|
-
exports.aclPlugin = aclPlugin;
|
|
205
205
|
exports.default = aclPlugin;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.defaultAclMiddlewareOptions = void 0;
|
|
4
|
+
exports.expressAclMiddleware = expressAclMiddleware;
|
|
5
|
+
exports.graphQLAclMiddleware = graphQLAclMiddleware;
|
|
6
|
+
exports.getPathResource = getPathResource;
|
|
4
7
|
const lodash_1 = require("lodash");
|
|
5
8
|
const resolver_1 = require("../../error/resolver");
|
|
6
9
|
exports.defaultAclMiddlewareOptions = {
|
|
@@ -23,7 +26,6 @@ function expressAclMiddleware(acl, config = null, options = null) {
|
|
|
23
26
|
next();
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
|
-
exports.expressAclMiddleware = expressAclMiddleware;
|
|
27
29
|
function graphQLAclMiddleware(acl, schemaName, options = null) {
|
|
28
30
|
const fullOptions = getOptions(options);
|
|
29
31
|
return (resolve, root, args, context, info) => {
|
|
@@ -38,11 +40,9 @@ function graphQLAclMiddleware(acl, schemaName, options = null) {
|
|
|
38
40
|
return resolve(root, args, context, info);
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
|
-
exports.graphQLAclMiddleware = graphQLAclMiddleware;
|
|
42
43
|
function getPathResource(path) {
|
|
43
44
|
return [path.typename, path.key].join('.');
|
|
44
45
|
}
|
|
45
|
-
exports.getPathResource = getPathResource;
|
|
46
46
|
function getOptions(options) {
|
|
47
47
|
return (0, lodash_1.defaults)({}, options || {}, exports.defaultAclMiddlewareOptions);
|
|
48
48
|
}
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.EqualsFilterPlugin = exports.defaultEqualsFilterPluginOptions = void 0;
|
|
7
|
+
exports.equalsFilterPlugin = equalsFilterPlugin;
|
|
7
8
|
const lodash_1 = require("lodash");
|
|
8
9
|
const inputObjectType_1 = __importDefault(require("../../inputObjectType"));
|
|
9
10
|
const objectType_1 = require("../../objectType");
|
|
@@ -113,5 +114,4 @@ exports.EqualsFilterPlugin = EqualsFilterPlugin;
|
|
|
113
114
|
function equalsFilterPlugin(options) {
|
|
114
115
|
return new EqualsFilterPlugin(options);
|
|
115
116
|
}
|
|
116
|
-
exports.equalsFilterPlugin = equalsFilterPlugin;
|
|
117
117
|
exports.default = equalsFilterPlugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SearchFilterPlugin = exports.defaultSearchFilterPluginOptions = void 0;
|
|
4
|
+
exports.searchFilterPlugin = searchFilterPlugin;
|
|
4
5
|
const lodash_1 = require("lodash");
|
|
5
6
|
exports.defaultSearchFilterPluginOptions = {
|
|
6
7
|
argumentName: 'search'
|
|
@@ -20,5 +21,4 @@ exports.SearchFilterPlugin = SearchFilterPlugin;
|
|
|
20
21
|
function searchFilterPlugin() {
|
|
21
22
|
return new SearchFilterPlugin();
|
|
22
23
|
}
|
|
23
|
-
exports.searchFilterPlugin = searchFilterPlugin;
|
|
24
24
|
exports.default = searchFilterPlugin;
|
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ConnectionPaginationPlugin = void 0;
|
|
30
|
+
exports.connectionPaginationPlugin = connectionPaginationPlugin;
|
|
30
31
|
const objectType_1 = __importStar(require("../../objectType"));
|
|
31
32
|
const PluginError_1 = __importDefault(require("../PluginError"));
|
|
32
33
|
const PageInfoObjectTypeName = "PageInfo";
|
|
@@ -101,5 +102,4 @@ exports.ConnectionPaginationPlugin = ConnectionPaginationPlugin;
|
|
|
101
102
|
function connectionPaginationPlugin() {
|
|
102
103
|
return new ConnectionPaginationPlugin();
|
|
103
104
|
}
|
|
104
|
-
exports.connectionPaginationPlugin = connectionPaginationPlugin;
|
|
105
105
|
exports.default = connectionPaginationPlugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FirstAfterPaginationPlugin = void 0;
|
|
4
|
+
exports.firstAfterPaginationPlugin = firstAfterPaginationPlugin;
|
|
4
5
|
class FirstAfterPaginationPlugin {
|
|
5
6
|
beforeBuildField(builder, context, info) {
|
|
6
7
|
if (!info.list) {
|
|
@@ -15,5 +16,4 @@ exports.FirstAfterPaginationPlugin = FirstAfterPaginationPlugin;
|
|
|
15
16
|
function firstAfterPaginationPlugin() {
|
|
16
17
|
return new FirstAfterPaginationPlugin();
|
|
17
18
|
}
|
|
18
|
-
exports.firstAfterPaginationPlugin = firstAfterPaginationPlugin;
|
|
19
19
|
exports.default = firstAfterPaginationPlugin;
|
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ItemsPaginationPlugin = void 0;
|
|
30
|
+
exports.itemsPaginationPlugin = itemsPaginationPlugin;
|
|
30
31
|
const objectType_1 = __importStar(require("../../objectType"));
|
|
31
32
|
const PluginError_1 = __importDefault(require("../PluginError"));
|
|
32
33
|
class ItemsPaginationPlugin {
|
|
@@ -64,5 +65,4 @@ exports.ItemsPaginationPlugin = ItemsPaginationPlugin;
|
|
|
64
65
|
function itemsPaginationPlugin() {
|
|
65
66
|
return new ItemsPaginationPlugin();
|
|
66
67
|
}
|
|
67
|
-
exports.itemsPaginationPlugin = itemsPaginationPlugin;
|
|
68
68
|
exports.default = itemsPaginationPlugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OffsetLimitPaginationPlugin = void 0;
|
|
4
|
+
exports.offsetLimitPaginationPlugin = offsetLimitPaginationPlugin;
|
|
4
5
|
class OffsetLimitPaginationPlugin {
|
|
5
6
|
beforeBuildField(builder, context, info) {
|
|
6
7
|
if (!info.list) {
|
|
@@ -15,5 +16,4 @@ exports.OffsetLimitPaginationPlugin = OffsetLimitPaginationPlugin;
|
|
|
15
16
|
function offsetLimitPaginationPlugin() {
|
|
16
17
|
return new OffsetLimitPaginationPlugin();
|
|
17
18
|
}
|
|
18
|
-
exports.offsetLimitPaginationPlugin = offsetLimitPaginationPlugin;
|
|
19
19
|
exports.default = offsetLimitPaginationPlugin;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.RelayPaginationPlugin = void 0;
|
|
7
|
+
exports.relayPaginationPlugin = relayPaginationPlugin;
|
|
7
8
|
const MultiPlugin_1 = __importDefault(require("../MultiPlugin"));
|
|
8
9
|
const connection_1 = require("./connection");
|
|
9
10
|
const firstAfter_1 = require("./firstAfter");
|
|
@@ -22,5 +23,4 @@ exports.RelayPaginationPlugin = RelayPaginationPlugin;
|
|
|
22
23
|
function relayPaginationPlugin() {
|
|
23
24
|
return new RelayPaginationPlugin();
|
|
24
25
|
}
|
|
25
|
-
exports.relayPaginationPlugin = relayPaginationPlugin;
|
|
26
26
|
exports.default = relayPaginationPlugin;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.SimplePaginationPlugin = void 0;
|
|
7
|
+
exports.simplePaginationPlugin = simplePaginationPlugin;
|
|
7
8
|
const MultiPlugin_1 = __importDefault(require("../MultiPlugin"));
|
|
8
9
|
const offsetLimit_1 = require("./offsetLimit");
|
|
9
10
|
const items_1 = require("./items");
|
|
@@ -16,5 +17,4 @@ exports.SimplePaginationPlugin = SimplePaginationPlugin;
|
|
|
16
17
|
function simplePaginationPlugin() {
|
|
17
18
|
return new SimplePaginationPlugin();
|
|
18
19
|
}
|
|
19
|
-
exports.simplePaginationPlugin = simplePaginationPlugin;
|
|
20
20
|
exports.default = simplePaginationPlugin;
|
package/dist/plugin/sort/sort.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.SortPlugin = exports.defaultSortPluginOptions = exports.SortDirection = void 0;
|
|
7
|
+
exports.sortPlugin = sortPlugin;
|
|
7
8
|
const lodash_1 = require("lodash");
|
|
8
9
|
const inputObjectType_1 = __importDefault(require("../../inputObjectType"));
|
|
9
10
|
const enumType_1 = __importDefault(require("../../enumType"));
|
|
@@ -147,5 +148,4 @@ exports.SortPlugin = SortPlugin;
|
|
|
147
148
|
function sortPlugin(options) {
|
|
148
149
|
return new SortPlugin(options);
|
|
149
150
|
}
|
|
150
|
-
exports.sortPlugin = sortPlugin;
|
|
151
151
|
exports.default = sortPlugin;
|
package/dist/schema.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SchemaBuilder = exports.AbstractSchemaBuilder = void 0;
|
|
4
|
+
exports.schema = schema;
|
|
4
5
|
const lodash_1 = require("lodash");
|
|
5
6
|
const schema_1 = require("@graphql-tools/schema");
|
|
6
7
|
const graphql_middleware_1 = require("graphql-middleware");
|
|
@@ -376,5 +377,4 @@ exports.SchemaBuilder = SchemaBuilder;
|
|
|
376
377
|
function schema(name = null) {
|
|
377
378
|
return new SchemaBuilder(name);
|
|
378
379
|
}
|
|
379
|
-
exports.schema = schema;
|
|
380
380
|
exports.default = schema;
|
package/dist/unionType.js
CHANGED
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
6
|
+
exports.UnionTypeBuilder = void 0;
|
|
7
|
+
exports.unionType = unionType;
|
|
27
8
|
const definition_1 = require("graphql/type/definition");
|
|
28
9
|
const lodash_1 = require("lodash");
|
|
29
|
-
const Builder_1 =
|
|
10
|
+
const Builder_1 = __importDefault(require("./Builder"));
|
|
30
11
|
class UnionTypeBuilder extends Builder_1.default {
|
|
31
12
|
constructor(name, types = null) {
|
|
32
13
|
super(name);
|
|
@@ -72,7 +53,7 @@ class UnionTypeBuilder extends Builder_1.default {
|
|
|
72
53
|
}
|
|
73
54
|
return resolvedTypes;
|
|
74
55
|
},
|
|
75
|
-
extensions: Object.assign({
|
|
56
|
+
extensions: Object.assign({}, Object.fromEntries(this._extensions))
|
|
76
57
|
});
|
|
77
58
|
this._executePluginsSync('afterBuildUnionType', plugin => plugin.afterBuildUnionType(this, context, info, unionType));
|
|
78
59
|
return unionType;
|
|
@@ -91,5 +72,4 @@ exports.UnionTypeBuilder = UnionTypeBuilder;
|
|
|
91
72
|
function unionType(name, types = null) {
|
|
92
73
|
return new UnionTypeBuilder(name, types);
|
|
93
74
|
}
|
|
94
|
-
exports.unionType = unionType;
|
|
95
75
|
exports.default = unionType;
|
package/dist/util.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.defaultScalarNames = void 0;
|
|
4
|
+
exports.resolveAutoBuilderArgs = resolveAutoBuilderArgs;
|
|
5
|
+
exports.resolveBuilderArgs = resolveBuilderArgs;
|
|
6
|
+
exports.resolveBuilder = resolveBuilder;
|
|
7
|
+
exports.resolveType = resolveType;
|
|
8
|
+
exports.isTypeInput = isTypeInput;
|
|
9
|
+
exports.isTypeScalar = isTypeScalar;
|
|
10
|
+
exports.isFieldId = isFieldId;
|
|
11
|
+
exports.ensureInstantiated = ensureInstantiated;
|
|
12
|
+
exports.camelize = camelize;
|
|
4
13
|
const lodash_1 = require("lodash");
|
|
5
14
|
const graphql_1 = require("graphql");
|
|
6
15
|
const definition_1 = require("graphql/type/definition");
|
|
@@ -26,7 +35,6 @@ function resolveAutoBuilderArgs(builderOrConfiguratorOrName, configuratorArg, bu
|
|
|
26
35
|
builder, name, configurator
|
|
27
36
|
};
|
|
28
37
|
}
|
|
29
|
-
exports.resolveAutoBuilderArgs = resolveAutoBuilderArgs;
|
|
30
38
|
function resolveBuilderArgs(builderOrName, configuratorArg, builderType) {
|
|
31
39
|
let builder = null;
|
|
32
40
|
let name = null;
|
|
@@ -43,7 +51,6 @@ function resolveBuilderArgs(builderOrName, configuratorArg, builderType) {
|
|
|
43
51
|
builder, name, configurator
|
|
44
52
|
};
|
|
45
53
|
}
|
|
46
|
-
exports.resolveBuilderArgs = resolveBuilderArgs;
|
|
47
54
|
function resolveBuilder(args, defaultBuilderGenerator) {
|
|
48
55
|
let resolvedBuilder = args.builder;
|
|
49
56
|
if (!resolvedBuilder) {
|
|
@@ -54,7 +61,6 @@ function resolveBuilder(args, defaultBuilderGenerator) {
|
|
|
54
61
|
}
|
|
55
62
|
return resolvedBuilder;
|
|
56
63
|
}
|
|
57
|
-
exports.resolveBuilder = resolveBuilder;
|
|
58
64
|
const nonNullTypePattern = /(.+)!$/;
|
|
59
65
|
const nonNullListTypePattern = /\[(.+)!]/;
|
|
60
66
|
const listTypePattern = /\[(.+)]/;
|
|
@@ -69,7 +75,6 @@ function resolveType(type) {
|
|
|
69
75
|
const baseMatches = baseTypePattern.exec(type);
|
|
70
76
|
return { nonNull, list, nonNullList, type: baseMatches[1] };
|
|
71
77
|
}
|
|
72
|
-
exports.resolveType = resolveType;
|
|
73
78
|
function isTypeInput(type, schema) {
|
|
74
79
|
if ((0, lodash_1.isString)(type)) {
|
|
75
80
|
const typeName = type;
|
|
@@ -88,7 +93,6 @@ function isTypeInput(type, schema) {
|
|
|
88
93
|
}
|
|
89
94
|
return false;
|
|
90
95
|
}
|
|
91
|
-
exports.isTypeInput = isTypeInput;
|
|
92
96
|
function isTypeScalar(type, schema) {
|
|
93
97
|
if ((0, lodash_1.isString)(type)) {
|
|
94
98
|
const typeName = type;
|
|
@@ -107,11 +111,9 @@ function isTypeScalar(type, schema) {
|
|
|
107
111
|
}
|
|
108
112
|
return false;
|
|
109
113
|
}
|
|
110
|
-
exports.isTypeScalar = isTypeScalar;
|
|
111
114
|
function isFieldId(info) {
|
|
112
115
|
return info.type === 'ID' && info.name === 'id';
|
|
113
116
|
}
|
|
114
|
-
exports.isFieldId = isFieldId;
|
|
115
117
|
function ensureInstantiated(input, ...args) {
|
|
116
118
|
if ((0, lodash_1.isFunction)(input)) {
|
|
117
119
|
try {
|
|
@@ -124,7 +126,6 @@ function ensureInstantiated(input, ...args) {
|
|
|
124
126
|
}
|
|
125
127
|
return input;
|
|
126
128
|
}
|
|
127
|
-
exports.ensureInstantiated = ensureInstantiated;
|
|
128
129
|
function camelize(text) {
|
|
129
130
|
return text.replace(/^([A-Z])|[\s-_]+(\w)/g, function (match, p1, p2) {
|
|
130
131
|
if (p2)
|
|
@@ -132,4 +133,3 @@ function camelize(text) {
|
|
|
132
133
|
return p1.toLowerCase();
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
|
-
exports.camelize = camelize;
|