ibm-cos-sdk
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -23,3 +23,4 @@ ## 1.0.0 | ||
## 1.1.1 | ||
### Bug Fixes | ||
### Features | ||
* Bug Fixes | ||
* Fix IAM Token expiration/refresh issue | ||
@@ -32,1 +33,5 @@ | ||
## 1.1.3 | ||
### Features | ||
* Bug Fixes | ||
import * as AWS from '../clients/all'; | ||
export abstract class ConfigurationServicePlaceholders { | ||
s3?: AWS.S3.Types.ClientConfiguration; | ||
sts?: AWS.STS.Types.ClientConfiguration; | ||
} | ||
export interface ConfigurationServiceApiVersions { | ||
s3?: AWS.S3.Types.apiVersion; | ||
sts?: AWS.STS.Types.apiVersion; | ||
} |
@@ -20,3 +20,3 @@ /** | ||
*/ | ||
VERSION: '1.1.2', | ||
VERSION: '1.1.3', | ||
@@ -23,0 +23,0 @@ /** |
{ | ||
"name": "ibm-cos-sdk", | ||
"description": "IBM SDK for JavaScript", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "IBM", |
{ | ||
"cloudfront": [ | ||
{ | ||
"path": "lib/cloudfront/signer", | ||
"imports": [ | ||
{ | ||
"name": "Signer", | ||
"alias": "signer" | ||
} | ||
] | ||
} | ||
], | ||
"dynamodb": [ | ||
{ | ||
"path": "lib/dynamodb/document_client", | ||
"imports": [ | ||
{ | ||
"name": "DocumentClient", | ||
"alias": "document_client" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "lib/dynamodb/converter", | ||
"imports": [ | ||
{ | ||
"name": "Converter", | ||
"alias": "converter" | ||
} | ||
] | ||
} | ||
], | ||
"polly": [ | ||
{ | ||
"path": "lib/polly/presigner", | ||
"imports": [ | ||
{ | ||
"name": "Presigner", | ||
"alias": "presigner" | ||
} | ||
] | ||
} | ||
], | ||
"s3": [ | ||
@@ -45,0 +3,0 @@ { |
@@ -89,27 +89,2 @@ var fs = require('fs'); | ||
TSGenerator.prototype.updateDynamoDBDocumentClient = function updateDynamoDBDocumentClient() { | ||
// read in document client customization | ||
var docClientCustomCode = fs.readFileSync(path.join(this._sdkRootDir, 'lib', 'dynamodb', 'document_client.d.ts')).toString(); | ||
var lines = docClientCustomCode.split('\n'); | ||
var namespaceIndexStart = -1; | ||
var namespaceIndexEnd = -1; | ||
for (var i = 0, iLen = lines.length; i < iLen; i++) { | ||
var line = lines[i]; | ||
// find exported namespace | ||
if (line.indexOf('//<!--auto-generated start-->') >= 0) { | ||
namespaceIndexStart = i; | ||
} | ||
if (line.indexOf('//<!--auto-generated end-->') >= 0) { | ||
namespaceIndexEnd = i; | ||
break; | ||
} | ||
} | ||
if (namespaceIndexStart >= 0 && namespaceIndexEnd >= 0) { | ||
// insert doc client interfaces | ||
lines.splice(namespaceIndexStart + 1, (namespaceIndexEnd - namespaceIndexStart - 1), this.generateDocumentClientInterfaces(1)); | ||
var code = lines.join('\n'); | ||
this.writeTypingsFile('document_client', path.join(this._sdkRootDir, 'lib', 'dynamodb'), code); | ||
} | ||
}; | ||
/** | ||
@@ -116,0 +91,0 @@ * Generates the file containing DocumentClient interfaces. |
@@ -11,3 +11,2 @@ var path = require('path'); | ||
tsGenerator.generateGroupedClients(); | ||
tsGenerator.updateDynamoDBDocumentClient(); | ||
tsGenerator.generateConfigurationServicePlaceholders(); | ||
@@ -14,0 +13,0 @@ console.log('TypeScript Definitions created.'); |
Sorry, the diff of this file is too big to display
4212956
89574