@gem-sdk/system 2.0.0-dev.371 → 2.0.0-dev.439
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.
|
@@ -17,6 +17,19 @@ const createClass = (obj)=>{
|
|
|
17
17
|
console.error('Expected an object as input.');
|
|
18
18
|
return '';
|
|
19
19
|
}
|
|
20
|
+
// const validateClass = (obj: any) => {
|
|
21
|
+
// for (const className in obj) {
|
|
22
|
+
// if (className.length > 30) {
|
|
23
|
+
// console.error(`Class name "${className}" exceeds the maximum length of 30 characters.`);
|
|
24
|
+
// }
|
|
25
|
+
// if (className.includes(' ')) {
|
|
26
|
+
// console.error(`Class name "${className}" should not contain spaces.`);
|
|
27
|
+
// }
|
|
28
|
+
// if (className !== className.toLowerCase()) {
|
|
29
|
+
// console.error(`Class name "${className}" should be in lowercase.`);
|
|
30
|
+
// }
|
|
31
|
+
// }
|
|
32
|
+
// };
|
|
20
33
|
!process.env.APP_ENV || process.env.APP_ENV === 'development' || process.env.APP_ENV === 'staging';
|
|
21
34
|
return cls(obj);
|
|
22
35
|
};
|
|
@@ -11,7 +11,6 @@ const createContent = (content)=>{
|
|
|
11
11
|
// Check if content contains any invalid patterns
|
|
12
12
|
if (invalidPattern.test(content)) {
|
|
13
13
|
console.error('Invalid content format: "{{}}" placeholders must not contain only letters, e.g., "{{Hello}}".');
|
|
14
|
-
return '';
|
|
15
14
|
}
|
|
16
15
|
return content;
|
|
17
16
|
};
|
|
@@ -15,6 +15,19 @@ const createClass = (obj)=>{
|
|
|
15
15
|
console.error('Expected an object as input.');
|
|
16
16
|
return '';
|
|
17
17
|
}
|
|
18
|
+
// const validateClass = (obj: any) => {
|
|
19
|
+
// for (const className in obj) {
|
|
20
|
+
// if (className.length > 30) {
|
|
21
|
+
// console.error(`Class name "${className}" exceeds the maximum length of 30 characters.`);
|
|
22
|
+
// }
|
|
23
|
+
// if (className.includes(' ')) {
|
|
24
|
+
// console.error(`Class name "${className}" should not contain spaces.`);
|
|
25
|
+
// }
|
|
26
|
+
// if (className !== className.toLowerCase()) {
|
|
27
|
+
// console.error(`Class name "${className}" should be in lowercase.`);
|
|
28
|
+
// }
|
|
29
|
+
// }
|
|
30
|
+
// };
|
|
18
31
|
!process.env.APP_ENV || process.env.APP_ENV === 'development' || process.env.APP_ENV === 'staging';
|
|
19
32
|
return cls(obj);
|
|
20
33
|
};
|
|
@@ -9,7 +9,6 @@ const createContent = (content)=>{
|
|
|
9
9
|
// Check if content contains any invalid patterns
|
|
10
10
|
if (invalidPattern.test(content)) {
|
|
11
11
|
console.error('Invalid content format: "{{}}" placeholders must not contain only letters, e.g., "{{Hello}}".');
|
|
12
|
-
return '';
|
|
13
12
|
}
|
|
14
13
|
return content;
|
|
15
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/system",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.439",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
24
|
+
"@gem-sdk/core": "2.0.0-dev.435"
|
|
25
25
|
},
|
|
26
26
|
"module": "dist/esm/index.js",
|
|
27
27
|
"types": "dist/types/index.d.ts",
|