@shuo-li/i18n 1.0.5 → 1.0.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.
package/dist/index.cjs CHANGED
@@ -140,9 +140,9 @@ var IndexedDBAdapter = class {
140
140
  cursor.continue();
141
141
  };
142
142
  });
143
- if (found) return true;
143
+ if (!found) return false;
144
144
  }
145
- return false;
145
+ return true;
146
146
  });
147
147
  }
148
148
  };
package/dist/index.js CHANGED
@@ -140,9 +140,9 @@ var IndexedDBAdapter = class {
140
140
  cursor.continue();
141
141
  };
142
142
  });
143
- if (found) return true;
143
+ if (!found) return false;
144
144
  }
145
- return false;
145
+ return true;
146
146
  });
147
147
  }
148
148
  };
package/dist/mp/index.cjs CHANGED
@@ -113,9 +113,9 @@ var WxSQLiteAdapter = class {
113
113
  `SELECT key FROM ${resourceTable(store.name)}
114
114
  WHERE key NOT LIKE 'UNLOGIN_%' AND key NOT LIKE '__meta__:%' LIMIT 1`
115
115
  );
116
- if (result.rows.length > 0) return true;
116
+ if (result.rows.length === 0) return false;
117
117
  }
118
- return false;
118
+ return true;
119
119
  }
120
120
  };
121
121
  function rowToRecord(row) {
package/dist/mp/index.js CHANGED
@@ -113,9 +113,9 @@ var WxSQLiteAdapter = class {
113
113
  `SELECT key FROM ${resourceTable(store.name)}
114
114
  WHERE key NOT LIKE 'UNLOGIN_%' AND key NOT LIKE '__meta__:%' LIMIT 1`
115
115
  );
116
- if (result.rows.length > 0) return true;
116
+ if (result.rows.length === 0) return false;
117
117
  }
118
- return false;
118
+ return true;
119
119
  }
120
120
  };
121
121
  function rowToRecord(row) {
@@ -88,9 +88,9 @@ var SQLiteAdapter = class {
88
88
  `SELECT key FROM ${resourceTable(store.name)}
89
89
  WHERE key NOT LIKE 'UNLOGIN_%' AND key NOT LIKE '__meta__:%' LIMIT 1`
90
90
  );
91
- if (rows.length > 0) return true;
91
+ if (rows.length === 0) return false;
92
92
  }
93
- return false;
93
+ return true;
94
94
  }
95
95
  };
96
96
  function rowToRecord(row) {
@@ -88,9 +88,9 @@ var SQLiteAdapter = class {
88
88
  `SELECT key FROM ${resourceTable(store.name)}
89
89
  WHERE key NOT LIKE 'UNLOGIN_%' AND key NOT LIKE '__meta__:%' LIMIT 1`
90
90
  );
91
- if (rows.length > 0) return true;
91
+ if (rows.length === 0) return false;
92
92
  }
93
- return false;
93
+ return true;
94
94
  }
95
95
  };
96
96
  function rowToRecord(row) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuo-li/i18n",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Cross-platform i18n library for Web, React Native and WeChat MiniProgram",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",