@tehw0lf/wordlist-generator 0.14.3 → 0.17.1

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.
Files changed (48) hide show
  1. package/esm2022/index.mjs +2 -0
  2. package/esm2022/lib/wordlist-generator.component.mjs +178 -0
  3. package/{esm2020 → esm2022}/lib/wordlist-generator.service.mjs +5 -5
  4. package/fesm2022/tehw0lf-wordlist-generator.mjs +222 -0
  5. package/fesm2022/tehw0lf-wordlist-generator.mjs.map +1 -0
  6. package/index.d.ts +0 -1
  7. package/lib/wordlist-generator.component.d.ts +1 -1
  8. package/package.json +14 -25
  9. package/esm2020/index.mjs +0 -3
  10. package/esm2020/lib/wordlist-generator.component.mjs +0 -161
  11. package/esm2020/lib/wordlist-generator.module.mjs +0 -62
  12. package/fesm2015/tehw0lf-wordlist-generator.mjs +0 -262
  13. package/fesm2015/tehw0lf-wordlist-generator.mjs.map +0 -1
  14. package/fesm2020/tehw0lf-wordlist-generator.mjs +0 -261
  15. package/fesm2020/tehw0lf-wordlist-generator.mjs.map +0 -1
  16. package/lib/wordlist-generator.module.d.ts +0 -18
  17. package/schematics/collection.json +0 -16
  18. package/schematics/ng-add/index.d.ts +0 -3
  19. package/schematics/ng-add/index.js +0 -46
  20. package/schematics/ng-add/index.js.map +0 -1
  21. package/schematics/ng-add/index.spec.d.ts +0 -1
  22. package/schematics/ng-add/index.spec.js +0 -102
  23. package/schematics/ng-add/index.spec.js.map +0 -1
  24. package/schematics/ng-add/package-config.d.ts +0 -12
  25. package/schematics/ng-add/package-config.js +0 -48
  26. package/schematics/ng-add/package-config.js.map +0 -1
  27. package/schematics/ng-add/schema.d.ts +0 -3
  28. package/schematics/ng-add/schema.js +0 -3
  29. package/schematics/ng-add/schema.js.map +0 -1
  30. package/schematics/ng-add/schema.json +0 -16
  31. package/schematics/ng-add/setup.d.ts +0 -3
  32. package/schematics/ng-add/setup.js +0 -50
  33. package/schematics/ng-add/setup.js.map +0 -1
  34. package/schematics/testing/file-content.d.ts +0 -10
  35. package/schematics/testing/file-content.js +0 -13
  36. package/schematics/testing/file-content.js.map +0 -1
  37. package/schematics/testing/test-app.d.ts +0 -12
  38. package/schematics/testing/test-app.js +0 -44
  39. package/schematics/testing/test-app.js.map +0 -1
  40. package/schematics/testing/test-library.d.ts +0 -11
  41. package/schematics/testing/test-library.js +0 -21
  42. package/schematics/testing/test-library.js.map +0 -1
  43. package/schematics/testing/test-project.d.ts +0 -11
  44. package/schematics/testing/test-project.js +0 -36
  45. package/schematics/testing/test-project.js.map +0 -1
  46. /package/{esm2020 → esm2022}/lib/filetypes.mjs +0 -0
  47. /package/{esm2020 → esm2022}/lib/parsers.mjs +0 -0
  48. /package/{esm2020 → esm2022}/tehw0lf-wordlist-generator.mjs +0 -0
@@ -1,3 +0,0 @@
1
- export interface Schema {
2
- project: string;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/schema.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "angular-material-ng-add",
4
- "title": "Angular Material ng-add schematic",
5
- "type": "object",
6
- "properties": {
7
- "project": {
8
- "type": "string",
9
- "description": "Name of the project.",
10
- "$default": {
11
- "$source": "projectName"
12
- }
13
- }
14
- },
15
- "required": []
16
- }
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { Schema } from './schema';
3
- export default function (options: Schema): Rule;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const schematics_1 = require("@angular-devkit/schematics");
13
- const tasks_1 = require("@angular-devkit/schematics/tasks");
14
- const schematics_2 = require("@angular/cdk/schematics");
15
- const workspace_1 = require("@schematics/angular/utility/workspace");
16
- const package_config_1 = require("./package-config");
17
- const wordlistGeneratorModuleName = 'WordlistGeneratorModule';
18
- const wordlistGeneratorPackageName = '@tehw0lf/wordlist-generator';
19
- const flexLayoutFallbackVersion = '^14.0.0-beta.40';
20
- function default_1(options) {
21
- return () => __awaiter(this, void 0, void 0, function* () {
22
- return (0, schematics_1.chain)([addDependencies(), addWordlistGeneratorModule(options)]);
23
- });
24
- }
25
- exports.default = default_1;
26
- function addWordlistGeneratorModule(options) {
27
- return (host, context) => __awaiter(this, void 0, void 0, function* () {
28
- const workspace = yield (0, workspace_1.getWorkspace)(host);
29
- const project = (0, schematics_2.getProjectFromWorkspace)(workspace, options.project);
30
- const appModulePath = (0, schematics_2.getAppModulePath)(host, (0, schematics_2.getProjectMainFile)(project));
31
- if (!(0, schematics_2.hasNgModuleImport)(host, appModulePath, wordlistGeneratorModuleName)) {
32
- (0, schematics_2.addModuleImportToRootModule)(host, wordlistGeneratorModuleName, wordlistGeneratorPackageName, project);
33
- }
34
- else {
35
- context.logger.warn('Library is already installed, nothing to do.');
36
- }
37
- return;
38
- });
39
- }
40
- function addDependencies() {
41
- return (host, context) => __awaiter(this, void 0, void 0, function* () {
42
- const flexLayoutVersion = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/flex-layout');
43
- if (!flexLayoutVersion || flexLayoutVersion !== flexLayoutFallbackVersion) {
44
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/flex-layout', flexLayoutFallbackVersion);
45
- context.logger.info(`@angular/flex-layout ${flexLayoutFallbackVersion} was added to dependencies.`);
46
- }
47
- context.addTask(new tasks_1.NodePackageInstallTask());
48
- });
49
- }
50
- //# sourceMappingURL=setup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAiF;AACjF,4DAA0E;AAC1E,wDAMiC;AACjC,qEAAqE;AAErE,qDAA6F;AAG7F,MAAM,2BAA2B,GAAG,yBAAyB,CAAC;AAC9D,MAAM,4BAA4B,GAAG,6BAA6B,CAAC;AACnE,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAEpD,mBAAyB,OAAe;IACtC,OAAO,GAAS,EAAE;QAChB,OAAO,IAAA,kBAAK,EAAC,CAAC,eAAe,EAAE,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC,CAAA,CAAC;AACJ,CAAC;AAJD,4BAIC;AAED,SAAS,0BAA0B,CAAC,OAAe;IACjD,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAA,oCAAuB,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACpE,MAAM,aAAa,GAAG,IAAA,6BAAgB,EAAC,IAAI,EAAE,IAAA,+BAAkB,EAAC,OAAO,CAAC,CAAC,CAAC;QAE1E,IAAI,CAAC,IAAA,8BAAiB,EAAC,IAAI,EAAE,aAAa,EAAE,2BAA2B,CAAC,EAAE;YACxE,IAAA,wCAA2B,EACzB,IAAI,EACJ,2BAA2B,EAC3B,4BAA4B,EAC5B,OAAO,CACR,CAAC;SACH;aAAM;YACL,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;SACrE;QACD,OAAO;IACT,CAAC,CAAA,CAAC;AACJ,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,MAAM,iBAAiB,GAAG,IAAA,iDAAgC,EACxD,IAAI,EACJ,sBAAsB,CACvB,CAAC;QAEF,IAAI,CAAC,iBAAiB,IAAI,iBAAiB,KAAK,yBAAyB,EAAE;YACzE,IAAA,wCAAuB,EACrB,IAAI,EACJ,sBAAsB,EACtB,yBAAyB,CAC1B,CAAC;YAEF,OAAO,CAAC,MAAM,CAAC,IAAI,CACjB,wBAAwB,yBAAyB,6BAA6B,CAC/E,CAAC;SACH;QACD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;IAChD,CAAC,CAAA,CAAC;AACJ,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Tree } from '@angular-devkit/schematics';
9
- /** Gets the content of a specified file from a schematic tree. */
10
- export declare function getFileContent(tree: Tree, filePath: string): string;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFileContent = void 0;
4
- /** Gets the content of a specified file from a schematic tree. */
5
- function getFileContent(tree, filePath) {
6
- const contentBuffer = tree.read(filePath);
7
- if (!contentBuffer) {
8
- throw new Error(`Cannot read "${filePath}" because it does not exist.`);
9
- }
10
- return contentBuffer.toString();
11
- }
12
- exports.getFileContent = getFileContent;
13
- //# sourceMappingURL=file-content.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-content.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/testing/file-content.ts"],"names":[],"mappings":";;;AAUA,kEAAkE;AAClE,SAAgB,cAAc,CAAC,IAAU,EAAE,QAAgB;IACzD,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAE1C,IAAI,CAAC,aAAa,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,gBAAgB,QAAQ,8BAA8B,CAAC,CAAC;KACzE;IAED,OAAO,aAAa,CAAC,QAAQ,EAAE,CAAC;AAClC,CAAC;AARD,wCAQC"}
@@ -1,12 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
3
- /**
4
- * @license
5
- * Copyright Google LLC All Rights Reserved.
6
- *
7
- * Use of this source code is governed by an MIT-style license that can be
8
- * found in the LICENSE file at https://angular.io/license
9
- */
10
- /** Create a base app used for testing. */
11
- export declare function createTestApp(runner: SchematicTestRunner, appOptions?: {}, tree?: Tree): Promise<UnitTestTree>;
12
- export declare function createTestAppWithMaterial(runner: SchematicTestRunner, appOptions?: {}, tree?: Tree): Promise<UnitTestTree>;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createTestAppWithMaterial = exports.createTestApp = void 0;
13
- const package_config_1 = require("../ng-add/package-config");
14
- const file_content_1 = require("./file-content");
15
- const test_project_1 = require("./test-project");
16
- /**
17
- * @license
18
- * Copyright Google LLC All Rights Reserved.
19
- *
20
- * Use of this source code is governed by an MIT-style license that can be
21
- * found in the LICENSE file at https://angular.io/license
22
- */
23
- /** Create a base app used for testing. */
24
- function createTestApp(runner, appOptions = {}, tree) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- return (0, test_project_1.createTestProject)(runner, 'application', appOptions, tree);
27
- });
28
- }
29
- exports.createTestApp = createTestApp;
30
- function createTestAppWithMaterial(runner, appOptions = {}, tree) {
31
- return __awaiter(this, void 0, void 0, function* () {
32
- const projectTree = yield (0, test_project_1.createTestProject)(runner, 'application', appOptions, tree);
33
- const coreVersion = (0, package_config_1.getPackageVersionFromPackageJson)(projectTree, '@angular/core');
34
- const packageJson = (0, file_content_1.getFileContent)(projectTree, '/package.json');
35
- const updatedPackageJson = packageJson.replace(`"dependencies": {
36
- "@angular/animations": "${coreVersion}",`, `"dependencies": {
37
- "@angular/animations": "${coreVersion}",
38
- "@angular/material": "${coreVersion}",`);
39
- projectTree.overwrite('/package.json', updatedPackageJson);
40
- return projectTree;
41
- });
42
- }
43
- exports.createTestAppWithMaterial = createTestAppWithMaterial;
44
- //# sourceMappingURL=test-app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-app.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/testing/test-app.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6DAA4E;AAC5E,iDAAgD;AAChD,iDAAmD;AAEnD;;;;;;GAMG;AACH,0CAA0C;AAC1C,SAAsB,aAAa,CACjC,MAA2B,EAC3B,UAAU,GAAG,EAAE,EACf,IAAW;;QAEX,OAAO,IAAA,gCAAiB,EAAC,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;CAAA;AAND,sCAMC;AAED,SAAsB,yBAAyB,CAC7C,MAA2B,EAC3B,UAAU,GAAG,EAAE,EACf,IAAW;;QAEX,MAAM,WAAW,GAAG,MAAM,IAAA,gCAAiB,EACzC,MAAM,EACN,aAAa,EACb,UAAU,EACV,IAAI,CACL,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,iDAAgC,EAClD,WAAW,EACX,eAAe,CAChB,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,6BAAc,EAAC,WAAW,EAAE,eAAe,CAAC,CAAC;QAEjE,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAC5C;8BAC0B,WAAW,IAAI,EACzC;8BAC0B,WAAW;4BACb,WAAW,IAAI,CACxC,CAAC;QACF,WAAW,CAAC,SAAS,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC;QAC3D,OAAO,WAAW,CAAC;IACrB,CAAC;CAAA;AA5BD,8DA4BC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Tree } from '@angular-devkit/schematics';
9
- import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
10
- /** Create a base library used for testing. */
11
- export declare function createTestLibrary(runner: SchematicTestRunner, appOptions?: {}, tree?: Tree): Promise<UnitTestTree>;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createTestLibrary = void 0;
13
- const test_project_1 = require("./test-project");
14
- /** Create a base library used for testing. */
15
- function createTestLibrary(runner, appOptions = {}, tree) {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- return (0, test_project_1.createTestProject)(runner, 'library', appOptions, tree);
18
- });
19
- }
20
- exports.createTestLibrary = createTestLibrary;
21
- //# sourceMappingURL=test-library.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-library.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/testing/test-library.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,iDAAmD;AAGnD,8CAA8C;AAC9C,SAAsB,iBAAiB,CACrC,MAA2B,EAC3B,UAAU,GAAG,EAAE,EACf,IAAW;;QAEX,OAAO,IAAA,gCAAiB,EAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;CAAA;AAND,8CAMC"}
@@ -1,11 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
3
- /**
4
- * @license
5
- * Copyright Google LLC All Rights Reserved.
6
- *
7
- * Use of this source code is governed by an MIT-style license that can be
8
- * found in the LICENSE file at https://angular.io/license
9
- */
10
- /** Create a base project used for testing. */
11
- export declare function createTestProject(runner: SchematicTestRunner, projectType: 'application' | 'library', appOptions?: {}, tree?: Tree): Promise<UnitTestTree>;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createTestProject = void 0;
13
- /**
14
- * @license
15
- * Copyright Google LLC All Rights Reserved.
16
- *
17
- * Use of this source code is governed by an MIT-style license that can be
18
- * found in the LICENSE file at https://angular.io/license
19
- */
20
- /** Create a base project used for testing. */
21
- function createTestProject(runner, projectType, appOptions = {}, tree) {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const workspaceTree = yield runner
24
- .runExternalSchematicAsync('@schematics/angular', 'workspace', {
25
- name: 'workspace',
26
- version: '6.0.0',
27
- newProjectRoot: 'projects'
28
- }, tree)
29
- .toPromise();
30
- return runner
31
- .runExternalSchematicAsync('@schematics/angular', projectType, Object.assign({ name: 'test-project' }, appOptions), workspaceTree)
32
- .toPromise();
33
- });
34
- }
35
- exports.createTestProject = createTestProject;
36
- //# sourceMappingURL=test-project.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-project.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/testing/test-project.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA;;;;;;GAMG;AACH,8CAA8C;AAC9C,SAAsB,iBAAiB,CACrC,MAA2B,EAC3B,WAAsC,EACtC,UAAU,GAAG,EAAE,EACf,IAAW;;QAEX,MAAM,aAAa,GAAG,MAAM,MAAM;aAC/B,yBAAyB,CACxB,qBAAqB,EACrB,WAAW,EACX;YACE,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,OAAO;YAChB,cAAc,EAAE,UAAU;SAC3B,EACD,IAAI,CACL;aACA,SAAS,EAAE,CAAC;QAEf,OAAO,MAAM;aACV,yBAAyB,CACxB,qBAAqB,EACrB,WAAW,kBACT,IAAI,EAAE,cAAc,IAAK,UAAU,GACrC,aAAa,CACd;aACA,SAAS,EAAE,CAAC;IACjB,CAAC;CAAA;AA3BD,8CA2BC"}
File without changes
File without changes