gdrivekit 1.0.9 → 1.1.0

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/README.md CHANGED
@@ -171,6 +171,7 @@ main();
171
171
 
172
172
  | Method | Description |
173
173
  | ----------------------- | ----------------------------------------- |
174
+ | `createJsonFile()` | Create a new JSON file |
174
175
  | `readJsonFileData()` | Read JSON file content |
175
176
  | `addJsonKeyValue()` | Add a new key-value pair to a JSON file |
176
177
  | `updateJsonFieldAndValues()` | Update an existing field in a JSON file |
package/dist/index.js CHANGED
@@ -778749,6 +778749,7 @@ __export(exports_operations, {
778749
778749
  deleteJsonFieldAndKeys: () => deleteJsonFieldAndKeys,
778750
778750
  deleteFolder: () => deleteFolder,
778751
778751
  deleteFile: () => deleteFile,
778752
+ createJsonFile: () => createJsonFile,
778752
778753
  createFolder: () => createFolder,
778753
778754
  copyFile: () => copyFile,
778754
778755
  convertTextToDocs: () => convertTextToDocs,
@@ -778890,6 +778891,9 @@ async function moveFileByName(fileName, folderName) {
778890
778891
  async function copyFile(fileId, newName) {
778891
778892
  return await driveService.copyFile(fileId, newName ? { name: newName } : undefined);
778892
778893
  }
778894
+ async function createJsonFile(jsonContent, name) {
778895
+ return await driveService.createJsonFile(JSON.stringify(jsonContent), name);
778896
+ }
778893
778897
  async function readJsonFileData(fileId) {
778894
778898
  const content = await readFileData(fileId);
778895
778899
  try {
@@ -779294,6 +779298,7 @@ var driveOperations = {
779294
779298
  copyFile,
779295
779299
  getImageMetadata,
779296
779300
  getVideoMetadata,
779301
+ createJsonFile,
779297
779302
  readJsonFileData,
779298
779303
  addJsonKeyValue,
779299
779304
  updateJsonFieldAndValues,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdrivekit",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "A lightweight Google Drive toolkit for File Management. Handle Google Drive operations easily — upload, download, and other file operations in a few lines of code.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",