repository-provider 35.4.26 → 35.4.28
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.4.
|
|
3
|
+
"version": "35.4.28",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"content-entry": "^14.2.3",
|
|
41
41
|
"matching-iterator": "^2.1.4",
|
|
42
|
-
"pacc": "^3.6.
|
|
42
|
+
"pacc": "^3.6.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"ava": "^6.4.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typescript": "^5.8.3"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
|
-
"node": ">=22.
|
|
54
|
+
"node": ">=22.17.1"
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|
package/src/attribute-extras.mjs
CHANGED
|
@@ -106,31 +106,6 @@ export function definePropertiesFromOptions(
|
|
|
106
106
|
Object.assign(object, applyLater);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
/**
|
|
110
|
-
* Get default values.
|
|
111
|
-
* @param {Object} attributes
|
|
112
|
-
* @param {Object} object
|
|
113
|
-
* @return {Object} filled with default values
|
|
114
|
-
*/
|
|
115
|
-
export function defaultValues(attributes, object) {
|
|
116
|
-
return Object.fromEntries(
|
|
117
|
-
Object.entries(attributes).reduce((a, c) => {
|
|
118
|
-
const [name, attribute] = c;
|
|
119
|
-
|
|
120
|
-
if (attribute.default !== undefined) {
|
|
121
|
-
a.push([name, attribute.default]);
|
|
122
|
-
} else if (attribute.get !== undefined) {
|
|
123
|
-
const value = attribute.get(attribute, object);
|
|
124
|
-
if (value !== undefined) {
|
|
125
|
-
a.push([name, value]);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return a;
|
|
130
|
-
}, [])
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
109
|
/**
|
|
135
110
|
* Create json based on present options.
|
|
136
111
|
* In other words only produce key value pairs if value is defined.
|
|
@@ -22,13 +22,6 @@
|
|
|
22
22
|
* @param {Object} [attributes] attribute meta info
|
|
23
23
|
*/
|
|
24
24
|
export function definePropertiesFromOptions(object: any, options?: any, properties?: any, attributes?: any): void;
|
|
25
|
-
/**
|
|
26
|
-
* Get default values.
|
|
27
|
-
* @param {Object} attributes
|
|
28
|
-
* @param {Object} object
|
|
29
|
-
* @return {Object} filled with default values
|
|
30
|
-
*/
|
|
31
|
-
export function defaultValues(attributes: any, object: any): any;
|
|
32
25
|
/**
|
|
33
26
|
* Create json based on present options.
|
|
34
27
|
* In other words only produce key value pairs if value is defined.
|