@stonyx/orm 0.3.2-alpha.100 → 0.3.2-alpha.102
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/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -370,7 +370,7 @@ when they share one rule.
|
|
|
370
370
|
**Numeric ids: normalise before you compare.** `request.params.id` is raw text
|
|
371
371
|
from the client. When it looks numeric the ORM coerces it — `isNaN(id) ? id :
|
|
372
372
|
parseInt(id)` — *before* it resolves the record, so `7`, `007`, `7.0`, `7.9`,
|
|
373
|
-
`7e0`, `0x7`, `+7`, `%207` (a leading space), `%
|
|
373
|
+
`7e0`, `0x7`, `+7`, `%207` (a leading space), `%097` (a tab) and `7%0A` (a
|
|
374
374
|
trailing newline) all address record `7`, while a `===` against the raw text
|
|
375
375
|
matches only the one spelling you wrote down. Every other spelling falls through
|
|
376
376
|
to whatever your method returns next — which, in the shape above, is a full CRUD
|