@player-ui/player 0.10.1 → 0.10.2-next.0
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/Player.native.js +1 -1
- package/dist/Player.native.js.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/binding/__tests__/binding.test.ts +10 -0
- package/src/binding/__tests__/parser.bench.ts +21 -1
- package/src/binding/binding.ts +3 -1
package/dist/index.legacy-esm.js
CHANGED
|
@@ -283,7 +283,7 @@ var BindingInstance = class _BindingInstance {
|
|
|
283
283
|
return segment;
|
|
284
284
|
}
|
|
285
285
|
const tryNum = Number(segment);
|
|
286
|
-
return isNaN(tryNum) ? segment : tryNum;
|
|
286
|
+
return isNaN(tryNum) || String(tryNum) !== segment ? segment : tryNum;
|
|
287
287
|
});
|
|
288
288
|
Object.freeze(this.split);
|
|
289
289
|
this.joined = this.split.join(".");
|
package/dist/index.mjs
CHANGED
|
@@ -283,7 +283,7 @@ var BindingInstance = class _BindingInstance {
|
|
|
283
283
|
return segment;
|
|
284
284
|
}
|
|
285
285
|
const tryNum = Number(segment);
|
|
286
|
-
return isNaN(tryNum) ? segment : tryNum;
|
|
286
|
+
return isNaN(tryNum) || String(tryNum) !== segment ? segment : tryNum;
|
|
287
287
|
});
|
|
288
288
|
Object.freeze(this.split);
|
|
289
289
|
this.joined = this.split.join(".");
|