Comparing version
@@ -1,2 +0,1 @@ | ||
/// <reference types="bluebird" /> | ||
import * as Promise from 'bluebird'; | ||
@@ -26,10 +25,10 @@ import { IAuthOptions } from 'sp-request'; | ||
save(): Promise<any>; | ||
private saveFile(requestDeferred, attempts?); | ||
private skipUpload(deferred); | ||
private updateMetaData(data); | ||
private checkinFile(); | ||
private checkoutFile(); | ||
private getFileByUrl(); | ||
private tryReUpload(exception, deferred, attempts); | ||
private buildRestUrls(); | ||
private saveFile; | ||
private skipUpload; | ||
private updateMetaData; | ||
private checkinFile; | ||
private checkoutFile; | ||
private getFileByUrl; | ||
private tryReUpload; | ||
private buildRestUrls; | ||
} |
@@ -153,2 +153,5 @@ "use strict"; | ||
var _this = this; | ||
if (this.coreOptions.checkinType && this.coreOptions.checkinType == SPSaveOptions_1.CheckinType.nocheckin) { | ||
return Promise.resolve(true); | ||
} | ||
return new Promise(function (resolve, reject) { | ||
@@ -155,0 +158,0 @@ _this.sprequest.requestDigest(_this.coreOptions.siteUrl) |
@@ -1,2 +0,1 @@ | ||
/// <reference types="bluebird" /> | ||
import * as Promise from 'bluebird'; | ||
@@ -3,0 +2,0 @@ import { IAuthOptions } from 'sp-request'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="vinyl" /> | ||
import File = require('vinyl'); | ||
@@ -9,2 +7,3 @@ import { IAuthOptions } from 'sp-request'; | ||
overwrite = 2, | ||
nocheckin = 3 | ||
} | ||
@@ -11,0 +10,0 @@ export interface ICoreOptions { |
@@ -8,2 +8,3 @@ "use strict"; | ||
CheckinType[CheckinType["overwrite"] = 2] = "overwrite"; | ||
CheckinType[CheckinType["nocheckin"] = 3] = "nocheckin"; | ||
})(CheckinType = exports.CheckinType || (exports.CheckinType = {})); | ||
@@ -10,0 +11,0 @@ function isGlobOptions(T) { |
@@ -7,3 +7,3 @@ import { ILogger } from './ILogger'; | ||
info(message: string): void; | ||
private log(message, color); | ||
private log; | ||
} |
@@ -1,2 +0,1 @@ | ||
/// <reference types="bluebird" /> | ||
import * as Promise from 'bluebird'; | ||
@@ -3,0 +2,0 @@ export interface IDeferred<T> { |
import * as opts from './../core/SPSaveOptions'; | ||
export declare class FileOptionsParser { | ||
static parseOptions(options: opts.FileOptions): opts.IFileContentOptions[]; | ||
private static createFileOptionsFromVinyl(file, options); | ||
private static createVinylFromGlob(options); | ||
private static getFolderToUpload(file, folder); | ||
private static createFileOptionsFromVinyl; | ||
private static createVinylFromGlob; | ||
private static getFolderToUpload; | ||
} |
@@ -1,2 +0,1 @@ | ||
/// <reference types="bluebird" /> | ||
import { ISPRequest } from 'sp-request'; | ||
@@ -13,4 +12,4 @@ import * as Promise from 'bluebird'; | ||
createFoldersHierarchy(): Promise<any>; | ||
private createFolders(folders, deferred?); | ||
private createFoldersPathArray(paths, result, index?); | ||
private createFolders; | ||
private createFoldersPathArray; | ||
} |
{ | ||
"name": "spsave", | ||
"description": "Save files in SharePoint using node.js easily", | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"author": "Sergei Sergeev <sergeev.srg@gmail.com>", | ||
@@ -77,10 +77,10 @@ "main": "./lib/src/index.js", | ||
"@types/vinyl-fs": "0.0.28", | ||
"bluebird": "^3.4.0", | ||
"colors": "^1.2.1", | ||
"globby": "^4.1.0", | ||
"bluebird": "3.5.0", | ||
"colors": "1.2.1", | ||
"globby": "4.1.0", | ||
"lodash": "^4.13.1", | ||
"node-notifier": "^5.2.1", | ||
"node-notifier": "5.2.1", | ||
"sp-request": "^2.1.0", | ||
"vinyl": "^1.1.1" | ||
"vinyl": "1.2.0" | ||
} | ||
} |
@@ -72,2 +72,3 @@ # spsave | ||
- `2` - overwrite | ||
- `3` - nocheckin - special case if you don't want your file to be checked-in on every file upload. In that case you file will remain checked-in after upload and you should either manually upload it, or run `spsave` again with other `checkinType` | ||
- `checkinMessage` - optional string, you can provide your own checkin message, otherwise default will be used | ||
@@ -74,0 +75,0 @@ - `notification` - optional boolean, when true, `spsave` will notify about successful upload using [node-notifier](https://github.com/mikaelbr/node-notifier) module |
@@ -10,2 +10,3 @@ { | ||
"pretty": true, | ||
"skipLibCheck": true, | ||
"removeComments": true, | ||
@@ -12,0 +13,0 @@ "lib": [ |
154
0.65%4
-33.33%221719
-0.47%35
-5.41%982
-4.66%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated