type-store 0.3.1 → 0.4.1
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 +6 -6
- package/type-store.js +4 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "type-store",
|
|
3
3
|
"description": "type ecosystem",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"repository": "codenautas/type-store",
|
|
7
7
|
"license": "MIT",
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"big.js": "^6.2.1",
|
|
15
|
-
"best-globals": "^1.1.
|
|
15
|
+
"best-globals": "^1.1.4",
|
|
16
16
|
"js-to-html": "^1.3.2",
|
|
17
17
|
"json4all": "^1.2.1",
|
|
18
|
-
"like-ar": "^0.
|
|
18
|
+
"like-ar": "^0.4.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"expect.js": "^0.3.1",
|
|
22
22
|
"istanbul": "^0.4.5",
|
|
23
|
-
"mocha": "^10.
|
|
24
|
-
"postgres-interval": "^4.0.
|
|
25
|
-
"discrepances": "^0.2.
|
|
23
|
+
"mocha": "^10.4.0",
|
|
24
|
+
"postgres-interval": "^4.0.2",
|
|
25
|
+
"discrepances": "^0.2.8"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">= 14"
|
package/type-store.js
CHANGED
|
@@ -92,10 +92,12 @@ Big.prototype.sameValue=function(other){
|
|
|
92
92
|
return other instanceof Big && this.toString() == other.toString();
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
Big.prototype.
|
|
95
|
+
Big.prototype.toSqlString = function toSqlString(){
|
|
96
96
|
return this.toString();
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
+
Big.prototype.toPostgres = Big.prototype.toSqlString;
|
|
100
|
+
|
|
99
101
|
TypeStore.class.Big = function TypeStoreBig(x, typeInfo){
|
|
100
102
|
Big.call(this,x);
|
|
101
103
|
//this.typeInfo = typeInfo;
|
|
@@ -617,7 +619,7 @@ TypeStore.type.date.prototype.toPlainString=function toPlainString(typedValue){
|
|
|
617
619
|
return typedValue.toYmd();
|
|
618
620
|
};
|
|
619
621
|
TypeStore.type.date.prototype.toExcelValue=function toExcelValue(typedValue){
|
|
620
|
-
return typedValue
|
|
622
|
+
return typedValue;
|
|
621
623
|
};
|
|
622
624
|
TypeStore.type.date.prototype.toExcelType=function toExcelType(typedValue){
|
|
623
625
|
return 'd';
|