zero-tools 1.4.2 → 1.4.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.
Files changed (3) hide show
  1. package/bin.ts +1 -1
  2. package/package.json +1 -1
  3. package/tinify.ts +3 -3
package/bin.ts CHANGED
@@ -206,7 +206,7 @@ let fn = {
206
206
  console.log(helpString)
207
207
  },
208
208
  v: () => {
209
- console.log("1.4.2")
209
+ console.log("1.4.3")
210
210
  }
211
211
  }
212
212
  let isFree = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zero-tools",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Zero游戏开发工具",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/tinify.ts CHANGED
@@ -79,7 +79,7 @@ export class TaskParser {
79
79
  if (this.config.skipSpine && await this.isSpine(inPath)) {
80
80
  } else {
81
81
  // let doc = await this.db.findOne({ inPath })
82
- let pathKey = inPath.replace(new RegExp("\\", 'g'), "/")
82
+ let pathKey = inPath.replace("/\\/g", "/")
83
83
  let doc = this.info[pathKey]
84
84
 
85
85
  if (doc == null) {
@@ -116,8 +116,8 @@ export class TaskParser {
116
116
  this.witeBuffer(outPath, outBuffer)
117
117
  console.log(inMd5, outMd5)
118
118
  // await this.db.updateOne({ inPath }, { inPath, outPath, inMd5, outMd5 }, { upsert: true })
119
- let pathKey = inPath.replace(new RegExp("\\", 'g'), "/")
120
- outPath = outPath.replace(new RegExp("\\", 'g'), "/")
119
+ let pathKey = inPath.replace("/\\/g", "/")
120
+ outPath = outPath.replace("/\\/g", "/")
121
121
  this.info[pathKey] = { outPath, inMd5, outMd5 }
122
122
  this.saveInfo()
123
123
  this.count++