@midwayjs/core 3.1.5 → 3.1.6

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.
@@ -86,7 +86,7 @@ exports.safelyGet = safelyGet;
86
86
  */
87
87
  function parsePrefix(provideId) {
88
88
  if (provideId.includes('@')) {
89
- return provideId.substr(1);
89
+ return provideId.slice(1);
90
90
  }
91
91
  return provideId;
92
92
  }
@@ -80,7 +80,7 @@ function parse(str, options) {
80
80
  }
81
81
  // Match any characters still remaining.
82
82
  if (index < str.length) {
83
- path += str.substr(index);
83
+ path += str.slice(index);
84
84
  }
85
85
  // If the path exists, push it onto the end.
86
86
  if (path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/core",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "midway core",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "license": "MIT",
23
23
  "devDependencies": {
24
- "@midwayjs/decorator": "^3.0.10",
24
+ "@midwayjs/decorator": "^3.1.6",
25
25
  "koa": "2.13.4",
26
26
  "midway-test-component": "*",
27
27
  "mm": "3.2.0",
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=12"
47
47
  },
48
- "gitHead": "46a7851ad3ce6fc675bd7e1b7c9dff2c70009104"
48
+ "gitHead": "8c157a2b1a23ca2360522dc0de58513098952391"
49
49
  }