ohos-router 1.0.2 → 1.0.3

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/.idea/modules.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ProjectModuleManager">
4
4
  <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/router_quick.iml" filepath="$PROJECT_DIR$/.idea/router_quick.iml" />
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/quickRouter.iml" filepath="$PROJECT_DIR$/.idea/quickRouter.iml" />
6
6
  </modules>
7
7
  </component>
8
8
  </project>
package/Module.js ADDED
@@ -0,0 +1,6 @@
1
+ //执行路由脚本
2
+ function startRouter(){
3
+ console.log("执行组件化")
4
+ }
5
+
6
+ startRouter()
package/index.ts CHANGED
@@ -1 +1 @@
1
- export { ohosRouter } from './router-plugin';
1
+ export {abnerRouter} from './router-plugin';
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "ohos-router",
3
- "version": "1.0.2",
4
- "description": "鸿蒙路由快速开发插件",
3
+ "version": "1.0.3",
4
+ "description": "鸿蒙路由管理插件",
5
5
  "main": "main.js",
6
6
  "scripts": {
7
- "test": "node module.js"
7
+ "test": "node Module.js"
8
8
  },
9
9
  "keywords": [
10
10
  "鸿蒙路由"
11
11
  ],
12
12
  "author": "AbnerMing",
13
13
  "license": "ISC",
14
- "devDependencies": {
14
+ "dependencies": {
15
15
  "@ohos/hvigor": "5.2.2"
16
16
  }
17
17
  }
package/router-plugin.ts CHANGED
@@ -1,10 +1,10 @@
1
- import {HvigorNode, HvigorPlugin} from '@ohos/hvigor';
1
+ import { HvigorNode, HvigorPlugin } from '@ohos/hvigor';
2
2
 
3
- export function ohosRouter(): HvigorPlugin {
3
+ export function abnerRouter(): HvigorPlugin {
4
4
  return {
5
- pluginId: 'ohosRouter',
5
+ pluginId: 'abnerRouter',
6
6
  apply(node: HvigorNode) {
7
- console.log('==============hello routerPlugin!');
7
+ console.log('==============hello abnerRouter!');
8
8
  }
9
9
  }
10
10
  }
package/tsconfig.json CHANGED
@@ -39,6 +39,7 @@
39
39
  // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
40
  // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
41
  // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
+ // "noUncheckedSideEffectImports": true, /* Check side effect imports. */
42
43
  // "resolveJsonModule": true, /* Enable importing .json files. */
43
44
  // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
45
  // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
@@ -54,12 +55,11 @@
54
55
  // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
56
  // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
57
  // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
58
+ // "noEmit": true, /* Disable emitting files from a compilation. */
57
59
  // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58
60
  // "outDir": "./", /* Specify an output folder for all emitted files. */
59
61
  // "removeComments": true, /* Disable emitting comments. */
60
- // "noEmit": true, /* Disable emitting files from a compilation. */
61
62
  // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
63
  // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
64
  // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
65
  // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
@@ -71,11 +71,11 @@
71
71
  // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
72
72
  // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
73
73
  // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
74
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
75
74
 
76
75
  /* Interop Constraints */
77
76
  // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
77
  // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
78
+ // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
79
79
  // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
80
  "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
81
81
  // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
@@ -88,6 +88,7 @@
88
88
  // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
89
89
  // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
90
90
  // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
91
+ // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */
91
92
  // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
92
93
  // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
93
94
  // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
package/module.js DELETED
@@ -1,6 +0,0 @@
1
- //执行组件化脚本
2
- function startAssembly(){
3
- console.log("执行组件化")
4
- }
5
-
6
- startAssembly()
File without changes