Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ldap-schema-ts-generator

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldap-schema-ts-generator - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

7

CHANGELOG.md

@@ -7,2 +7,9 @@ ### Changelog

#### [v4.0.2](https://github.com/saostad/ldap-schema-ts-generator/compare/v4.0.1...v4.0.2)
> 4 June 2020
- fix: replace '@ts-ignore' with '@ts-expect-error' in generated ts interface files [`600d986`](https://github.com/saostad/ldap-schema-ts-generator/commit/600d9860ea23c6349359f83f791d7e887ef9bf41)
- doc: change log [`57e7ed9`](https://github.com/saostad/ldap-schema-ts-generator/commit/57e7ed9f1848e199499b928418f839924a9f5fe7)
#### [v4.0.1](https://github.com/saostad/ldap-schema-ts-generator/compare/v4.0.0...v4.0.1)

@@ -9,0 +16,0 @@

182

dist/app.js

@@ -23,87 +23,99 @@ "use strict";

const client = new ldap_ts_client_1.Client(options);
const schemaDn = await index_1.getSchemaNamingContext({
client,
options: { logger },
});
console.log(`File: app.ts,`, `Line: 51 => `, schemaDn);
const rootDn = await index_1.getRootNamingContext({
client,
options: { logger },
});
console.log(`File: app.ts,`, `Line: 61 => `, rootDn);
const configurationsDn = await index_1.getConfigurationNamingContext({
client,
options: { logger },
});
console.log(`File: app.ts,`, `Line: 68 => `, configurationsDn);
const linkIds = await index_1.getLinkIds({ options: { logger }, client });
const relations = index_1.getRelations(linkIds);
await index_1.generateRelationsFile({ relations });
const controls = await index_1.getSchemaControls({ client, options: { logger } });
await index_1.generateControlsFile({ controls });
const extensions = await index_1.getSchemaExtensions({ client, options: { logger } });
await index_1.generateExtensionsFile({ extensions });
const capabilities = await index_1.getSchemaCapabilities({
client,
options: { logger },
});
await index_1.generateCapabilitiesFile({ capabilities });
const policies = await index_1.getSchemaPolicies({ client, options: { logger } });
await index_1.generatePoliciesFile({ policies });
const classes = await index_1.getStructuralSchemaClasses({
client,
options: { logger },
});
await index_1.generateStructuralClassesFile({ classes });
const countryCodes = await index_1.getCountryIsoCodes({ useCache: true });
await index_1.generateCountryIsoCodesFile({ countryCodes });
const objectAttributes = await index_1.getSchemaAttributes({
client,
options: { logger },
});
const objectClasses = await index_1.getSchemaClasses({ client, options: { logger } });
await index_1.generateAttributesMeta({
attributes: objectAttributes,
options: {
generateJsonFile: true,
generateTsFile: true,
},
});
await index_1.generateInterfaceFiles({ objectAttributes, objectClasses });
// test without generic type
await index_1.generateGraphqlTypeFiles({
objectClasses,
objectAttributes,
options: {
generateClientSideDocuments: true,
generateEnumTypeMaps: false,
justThisClasses: ["user"],
},
});
// test without generic type but limited classes
await index_1.generateGraphqlTypeFiles({
objectClasses,
objectAttributes,
options: {
justThisClasses: ["user"],
generateClientSideDocuments: true,
},
});
// test with type
await index_1.generateGraphqlTypeFiles({
objectClasses,
objectAttributes,
options: {
justThisClasses: ["user"],
generateClientSideDocuments: true,
},
});
// test with enum type
await index_1.generateGraphqlTypeFiles({
objectClasses,
objectAttributes,
options: {
generateClientSideDocuments: true,
},
});
try {
const schemaDn = await index_1.getSchemaNamingContext({
client,
options: { logger },
});
console.log(`File: app.ts,`, `Line: 51 => `, schemaDn);
const rootDn = await index_1.getRootNamingContext({
client,
options: { logger },
});
console.log(`File: app.ts,`, `Line: 61 => `, rootDn);
const configurationsDn = await index_1.getConfigurationNamingContext({
client,
options: { logger },
});
console.log(`File: app.ts,`, `Line: 68 => `, configurationsDn);
const linkIds = await index_1.getLinkIds({ options: { logger }, client });
const relations = index_1.getRelations(linkIds);
await index_1.generateRelationsFile({ relations });
const controls = await index_1.getSchemaControls({ client, options: { logger } });
await index_1.generateControlsFile({ controls });
const extensions = await index_1.getSchemaExtensions({
client,
options: { logger },
});
await index_1.generateExtensionsFile({ extensions });
const capabilities = await index_1.getSchemaCapabilities({
client,
options: { logger },
});
await index_1.generateCapabilitiesFile({ capabilities });
const policies = await index_1.getSchemaPolicies({ client, options: { logger } });
await index_1.generatePoliciesFile({ policies });
const classes = await index_1.getStructuralSchemaClasses({
client,
options: { logger },
});
await index_1.generateStructuralClassesFile({ classes });
const countryCodes = await index_1.getCountryIsoCodes({ useCache: true });
await index_1.generateCountryIsoCodesFile({ countryCodes });
const objectAttributes = await index_1.getSchemaAttributes({
client,
options: { logger },
});
const objectClasses = await index_1.getSchemaClasses({
client,
options: { logger },
});
await index_1.generateAttributesMeta({
attributes: objectAttributes,
options: {
generateJsonFile: true,
generateTsFile: true,
},
});
await index_1.generateInterfaceFiles({ objectAttributes, objectClasses });
// test without generic type
await index_1.generateGraphqlTypeFiles({
objectClasses,
objectAttributes,
options: {
generateClientSideDocuments: true,
generateEnumTypeMaps: false,
justThisClasses: ["user"],
},
});
// test without generic type but limited classes
// await generateGraphqlTypeFiles({
// objectClasses,
// objectAttributes,
// options: {
// justThisClasses: ["user"],
// generateClientSideDocuments: true,
// },
// });
// // test with type
// await generateGraphqlTypeFiles<StructuralClasses>({
// objectClasses,
// objectAttributes,
// options: {
// justThisClasses: ["user"],
// generateClientSideDocuments: true,
// },
// });
// // test with enum type
// await generateGraphqlTypeFiles<keyof typeof StructuralClassesEnum>({
// objectClasses,
// objectAttributes,
// options: {
// generateClientSideDocuments: true,
// // justThisClasses: ["user", "group", "computer", "contact", "container"],
// },
// });
}
finally {
client.unbind();
}
}

@@ -110,0 +122,0 @@ exports.main = main;

{
"name": "ldap-schema-ts-generator",
"version": "4.0.2",
"version": "4.0.3",
"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.",

@@ -71,5 +71,5 @@ "repository": {

"ldap-query-generator": "^0.8.0",
"ldap-ts-client": "^0.12.0",
"ldap-ts-client": "^0.13.1",
"prettier": "^2.0.5"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc