ldap-schema-ts-generator
Advanced tools
Comparing version 3.5.2 to 3.6.0
@@ -7,2 +7,9 @@ ### Changelog | ||
#### [v3.5.2](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.5.1...v3.5.2) | ||
> 14 May 2020 | ||
- package: updated [`19ac87f`](https://github.com/saostad/ldap-schema-ts-generator/commit/19ac87fc8d39c945b04c9554bc25708be545eb20) | ||
- doc: change log [`e0d8ab3`](https://github.com/saostad/ldap-schema-ts-generator/commit/e0d8ab3232054d604dde9378f5b0a6dd0e97448b) | ||
#### [v3.5.1](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.5.0...v3.5.1) | ||
@@ -9,0 +16,0 @@ |
@@ -6,3 +6,3 @@ import { SchemaClass, SchemaAttribute } from "../services"; | ||
options?: { | ||
/** default folder named 'generated' in root directory of you project */ | ||
/** output dir for schema, default folder named 'generated' in root directory of you project */ | ||
outputFolder?: string; | ||
@@ -9,0 +9,0 @@ /** output extension. default .gql */ |
@@ -94,2 +94,16 @@ "use strict"; | ||
}); | ||
/**@step generate custom scalars e.g. Date */ | ||
/** */ | ||
let customScalarOutDir = variables_1.defaultGraphqlScalarDir; | ||
/** because this is part of schema, it will generate same directory but in separate sub-dir to prevent from name conflict */ | ||
if (options === null || options === void 0 ? void 0 : options.outputFolder) { | ||
customScalarOutDir = path_1.default.join(options.outputFolder, "scalar"); | ||
} | ||
const customScalarOutDirPath = path_1.default.join(customScalarOutDir, `custom-scalar.${graphqlExtension}`); | ||
const customScalars = `scalar Date`; | ||
promises.push(write_to_file_1.writeToFile(customScalars, { | ||
filePath: customScalarOutDirPath, | ||
prettierOptions: usePrettier ? { parser: "graphql" } : undefined, | ||
})); | ||
/** @step generate all files */ | ||
await Promise.all(promises); | ||
@@ -96,0 +110,0 @@ fast_node_logger_1.writeLog(`graphql types has been generated in dir ${outDir}`, { |
@@ -7,2 +7,3 @@ export declare const defaultOutDir: string; | ||
export declare const defaultGraphqlClientDir: string; | ||
export declare const defaultGraphqlScalarDir: string; | ||
export declare const defaultMetaDir: string; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defaultMetaDir = exports.defaultGraphqlClientDir = exports.defaultGraphqlDir = exports.defaultJsonDir = exports.defaultEnumsDir = exports.defaultInterfacesDir = exports.defaultOutDir = void 0; | ||
exports.defaultMetaDir = exports.defaultGraphqlScalarDir = exports.defaultGraphqlClientDir = exports.defaultGraphqlDir = exports.defaultJsonDir = exports.defaultEnumsDir = exports.defaultInterfacesDir = exports.defaultOutDir = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
@@ -15,3 +15,4 @@ exports.defaultOutDir = path_1.default.join(process.cwd(), "generated"); | ||
exports.defaultGraphqlClientDir = path_1.default.join(exports.defaultGraphqlDir, "client"); | ||
exports.defaultGraphqlScalarDir = path_1.default.join(exports.defaultGraphqlDir, "scalar"); | ||
exports.defaultMetaDir = path_1.default.join(exports.defaultOutDir, "meta"); | ||
//# sourceMappingURL=variables.js.map |
{ | ||
"name": "ldap-schema-ts-generator", | ||
"version": "3.5.2", | ||
"version": "3.6.0", | ||
"description": "Typescript typedef and meta-data generator for LDAP Schema. It can be useful to interact from schema-aware/type-safe LDAP Client with LDAP servers like active directory.", | ||
@@ -51,6 +51,6 @@ "repository": { | ||
"devDependencies": { | ||
"@types/jest": "^25.2.2", | ||
"@types/node": "^13.13.6", | ||
"@typescript-eslint/eslint-plugin": "^2.33.0", | ||
"@typescript-eslint/parser": "^2.33.0", | ||
"@types/jest": "^25.2.3", | ||
"@types/node": "^14.0.1", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"auto-changelog": "^2.0.0", | ||
@@ -64,4 +64,4 @@ "dotenv": "^8.2.0", | ||
"npm-run-all": "^4.1.5", | ||
"ts-jest": "^25.5.1", | ||
"typedoc": "^0.17.6", | ||
"ts-jest": "^26.0.0", | ||
"typedoc": "^0.17.7", | ||
"typescript": "^3.9.2" | ||
@@ -68,0 +68,0 @@ }, |
@@ -149,2 +149,3 @@ # Typescript typedef and meta-data generator for LDAP Schema | ||
- [x] generate Type for each objectClass in schema | ||
- [ ] generate custom scalar Date type | ||
- [x] respect inheritance | ||
@@ -151,0 +152,0 @@ - [ ] respect relations by linkID attribute |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
345084
176
131
7086