@vtecx/vtecxnext 2.0.6 → 2.0.7
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/dist/vtecxnext.d.ts +9 -1
- package/dist/vtecxnext.js +12 -2
- package/package.json +1 -1
package/dist/vtecxnext.d.ts
CHANGED
|
@@ -695,7 +695,15 @@ export declare class VtecxNext {
|
|
|
695
695
|
* @param filename attachment file name
|
|
696
696
|
* @return message
|
|
697
697
|
*/
|
|
698
|
-
putcontent: (uri: string,
|
|
698
|
+
putcontent: (uri: string, filename?: string) => Promise<any>;
|
|
699
|
+
/**
|
|
700
|
+
* upload content
|
|
701
|
+
* @param uri key
|
|
702
|
+
* @param bysize true if registering with specified size
|
|
703
|
+
* @param filename attachment file name
|
|
704
|
+
* @return message
|
|
705
|
+
*/
|
|
706
|
+
private putcontentProc;
|
|
699
707
|
/**
|
|
700
708
|
* upload content registering with specified size
|
|
701
709
|
* @param uri key
|
package/dist/vtecxnext.js
CHANGED
|
@@ -2750,7 +2750,17 @@ class VtecxNext {
|
|
|
2750
2750
|
* @param filename attachment file name
|
|
2751
2751
|
* @return message
|
|
2752
2752
|
*/
|
|
2753
|
-
putcontent = async (uri,
|
|
2753
|
+
putcontent = async (uri, filename) => {
|
|
2754
|
+
return this.putcontentProc(uri, false, filename);
|
|
2755
|
+
};
|
|
2756
|
+
/**
|
|
2757
|
+
* upload content
|
|
2758
|
+
* @param uri key
|
|
2759
|
+
* @param bysize true if registering with specified size
|
|
2760
|
+
* @param filename attachment file name
|
|
2761
|
+
* @return message
|
|
2762
|
+
*/
|
|
2763
|
+
putcontentProc = async (uri, bysize, filename) => {
|
|
2754
2764
|
//console.log(`[vtecxnext putcontent] start. uri=${uri} content-type:${req.headers['content-type']} content-length:${req.headers['content-length']}`)
|
|
2755
2765
|
// キー入力値チェック
|
|
2756
2766
|
checkUri(uri);
|
|
@@ -2784,7 +2794,7 @@ class VtecxNext {
|
|
|
2784
2794
|
* @return message
|
|
2785
2795
|
*/
|
|
2786
2796
|
putcontentBySize = async (uri) => {
|
|
2787
|
-
return this.
|
|
2797
|
+
return this.putcontentProc(uri, true);
|
|
2788
2798
|
};
|
|
2789
2799
|
/**
|
|
2790
2800
|
* upload content and numbering
|