@daysnap/utils 0.0.49 → 0.0.50

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/es/index.d.ts CHANGED
@@ -56,6 +56,7 @@ export * from './isUndefined';
56
56
  export * from './isWeixin';
57
57
  export * from './isWindow';
58
58
  export * from './kebabCase';
59
+ export * from './normalizePath';
59
60
  export * from './omit';
60
61
  export * from './padding';
61
62
  export * from './parseDate';
package/es/index.js CHANGED
@@ -57,6 +57,7 @@ export * from './isUndefined';
57
57
  export * from './isWeixin';
58
58
  export * from './isWindow';
59
59
  export * from './kebabCase';
60
+ export * from './normalizePath';
60
61
  export * from './omit';
61
62
  export * from './padding';
62
63
  export * from './parseDate';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 格式化处理路径 平台兼容
3
+ */
4
+ export declare function normalizePath(path: string): string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 格式化处理路径 平台兼容
3
+ */
4
+ export function normalizePath(path) {
5
+ return path.replace(/\\/g, '/');
6
+ }
package/lib/index.d.ts CHANGED
@@ -56,6 +56,7 @@ export * from './isUndefined';
56
56
  export * from './isWeixin';
57
57
  export * from './isWindow';
58
58
  export * from './kebabCase';
59
+ export * from './normalizePath';
59
60
  export * from './omit';
60
61
  export * from './padding';
61
62
  export * from './parseDate';
package/lib/index.js CHANGED
@@ -73,6 +73,7 @@ __exportStar(require("./isUndefined"), exports);
73
73
  __exportStar(require("./isWeixin"), exports);
74
74
  __exportStar(require("./isWindow"), exports);
75
75
  __exportStar(require("./kebabCase"), exports);
76
+ __exportStar(require("./normalizePath"), exports);
76
77
  __exportStar(require("./omit"), exports);
77
78
  __exportStar(require("./padding"), exports);
78
79
  __exportStar(require("./parseDate"), exports);
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 格式化处理路径 平台兼容
3
+ */
4
+ export declare function normalizePath(path: string): string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizePath = void 0;
4
+ /**
5
+ * 格式化处理路径 平台兼容
6
+ */
7
+ function normalizePath(path) {
8
+ return path.replace(/\\/g, '/');
9
+ }
10
+ exports.normalizePath = normalizePath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daysnap/utils",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "通用的工具库",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",