Compare commits

...

2 Commits

Author SHA1 Message Date
b995d2f0fb
0.4.3 2025-04-03 13:39:30 +02:00
ce8ae9b89f
fix: attrbiutes not being pushed to array 2025-04-03 13:39:24 +02:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@dzeio/schema", "name": "@dzeio/schema",
"version": "0.4.2", "version": "0.4.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@dzeio/schema", "name": "@dzeio/schema",
"version": "0.4.2", "version": "0.4.3",
"dependencies": { "dependencies": {
"@dzeio/object-util": "^1.8.3", "@dzeio/object-util": "^1.8.3",
"@standard-schema/spec": "^1.0.0", "@standard-schema/spec": "^1.0.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@dzeio/schema", "name": "@dzeio/schema",
"version": "0.4.2", "version": "0.4.3",
"dependencies": { "dependencies": {
"@dzeio/object-util": "^1.8.3" "@dzeio/object-util": "^1.8.3"
}, },

View File

@ -95,7 +95,7 @@ export default abstract class SchemaItem<Type = any> implements StandardSchemaV1
} }
public attrs(...attributes: Array<string>) { public attrs(...attributes: Array<string>) {
this.attributes.concat(attributes) this.attributes.push(...attributes)
return this return this
} }