@tehw0lf/wordlist-generator 0.0.7 → 0.0.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tehw0lf/wordlist-generator",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/tehw0lf/tehwol.fi.git",
|
|
6
6
|
"repository": {
|
|
@@ -23,9 +23,6 @@
|
|
|
23
23
|
"tslib": "^2.2.0"
|
|
24
24
|
},
|
|
25
25
|
"schematics": "./schematics/collection.json",
|
|
26
|
-
"ng-add": {
|
|
27
|
-
"save": "dependencies"
|
|
28
|
-
},
|
|
29
26
|
"module": "fesm2015/tehw0lf-wordlist-generator.mjs",
|
|
30
27
|
"es2020": "fesm2020/tehw0lf-wordlist-generator.mjs",
|
|
31
28
|
"esm2020": "esm2020/tehw0lf-wordlist-generator.mjs",
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
13
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
13
14
|
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
14
15
|
const workspace_models_1 = require("@schematics/angular/utility/workspace-models");
|
|
15
16
|
const package_config_1 = require("./package-config");
|
|
@@ -22,16 +23,22 @@ function default_1(options) {
|
|
|
22
23
|
? workspace.projects.get(options.project)
|
|
23
24
|
: workspace.projects.get(defaultProject);
|
|
24
25
|
if (!project) {
|
|
26
|
+
(0, dependencies_1.removePackageJsonDependency)(host, '@tehw0lf/wordlist-generator');
|
|
25
27
|
context.logger.error(`No project specified and can not find default project ${project}`);
|
|
28
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
26
29
|
return;
|
|
27
30
|
}
|
|
28
31
|
if (project.extensions.projectType !== workspace_models_1.ProjectType.Application) {
|
|
32
|
+
(0, dependencies_1.removePackageJsonDependency)(host, '@tehw0lf/wordlist-generator');
|
|
29
33
|
context.logger.error('This library needs to be added to an application project');
|
|
34
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
30
35
|
return;
|
|
31
36
|
}
|
|
32
37
|
if (!materialVersion) {
|
|
38
|
+
(0, dependencies_1.removePackageJsonDependency)(host, '@tehw0lf/wordlist-generator');
|
|
33
39
|
context.logger.error(`@angular/material not found.
|
|
34
40
|
Please run 'ng add @angular/material' first`);
|
|
41
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
35
42
|
return;
|
|
36
43
|
}
|
|
37
44
|
context.addTask(new tasks_1.RunSchematicTask('ng-add-setup', options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,4DAA4F;AAC5F,2EAAuF;AACvF,qEAAqE;AACrE,mFAA2E;AAE3E,qDAAoE;AAGpE,mBAAyB,OAAe;IACtC,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,MAAM,eAAe,GAAG,IAAA,iDAAgC,EACtD,IAAI,EACJ,mBAAmB,CACpB,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,cAAc,GAAG,SAAS,CAAC,UAAU,CAAC,cAAwB,CAAC;QAErE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO;YAC7B,CAAC,CAAC,SAAS,CAAC,QAAQ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