cdk-comprehend-s3olap 2.0.7 → 2.0.8

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.
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1153.0',
23
+ VERSION: '2.1154.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -215,20 +215,28 @@ var util = {
215
215
  parse: function string(ini) {
216
216
  var currentSection, map = {};
217
217
  util.arrayEach(ini.split(/\r?\n/), function(line) {
218
- line = line.split(/(^|\s)[;#]/)[0]; // remove comments
219
- var section = line.match(/^\s*\[([^\[\]]+)\]\s*$/);
220
- if (section) {
221
- currentSection = section[1];
218
+ line = line.split(/(^|\s)[;#]/)[0].trim(); // remove comments and trim
219
+ var isSection = line[0] === '[' && line[line.length - 1] === ']';
220
+ if (isSection) {
221
+ currentSection = line.substring(1, line.length - 1);
222
222
  if (currentSection === '__proto__' || currentSection.split(/\s/)[1] === '__proto__') {
223
223
  throw util.error(
224
224
  new Error('Cannot load profile name \'' + currentSection + '\' from shared ini file.')
225
225
  );
226
226
  }
227
227
  } else if (currentSection) {
228
- var item = line.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);
229
- if (item) {
228
+ var indexOfEqualsSign = line.indexOf('=');
229
+ var start = 0;
230
+ var end = line.length - 1;
231
+ var isAssignment =
232
+ indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end;
233
+
234
+ if (isAssignment) {
235
+ var name = line.substring(0, indexOfEqualsSign).trim();
236
+ var value = line.substring(indexOfEqualsSign + 1).trim();
237
+
230
238
  map[currentSection] = map[currentSection] || {};
231
- map[currentSection][item[1]] = item[2];
239
+ map[currentSection][name] = value;
232
240
  }
233
241
  }
234
242
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1153.0",
4
+ "version": "2.1154.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
package/package.json CHANGED
@@ -44,7 +44,7 @@
44
44
  "@types/node": "^14",
45
45
  "@typescript-eslint/eslint-plugin": "^5",
46
46
  "@typescript-eslint/parser": "^5",
47
- "aws-cdk-lib": "^2.27.0",
47
+ "aws-cdk-lib": "^2.28.0",
48
48
  "constructs": "^10.0.5",
49
49
  "esbuild": "^0.14.43",
50
50
  "eslint": "^8",
@@ -59,7 +59,7 @@
59
59
  "jsii-pacmak": "^1.60.1",
60
60
  "json-schema": "^0.4.0",
61
61
  "npm-check-updates": "^12",
62
- "projen": "^0.58.12",
62
+ "projen": "^0.58.13",
63
63
  "standard-version": "^9",
64
64
  "ts-jest": "^27",
65
65
  "typescript": "^4.7.3"
@@ -69,8 +69,8 @@
69
69
  "constructs": "^10.0.5"
70
70
  },
71
71
  "dependencies": {
72
- "aws-cdk-lib": "^2.27.0",
73
- "aws-sdk": "^2.1153.0",
72
+ "aws-cdk-lib": "^2.28.0",
73
+ "aws-sdk": "^2.1154.0",
74
74
  "constructs": "^10.0.5",
75
75
  "esbuild": "^0.14.43"
76
76
  },
@@ -92,7 +92,7 @@
92
92
  ],
93
93
  "main": "lib/index.js",
94
94
  "license": "Apache-2.0",
95
- "version": "2.0.7",
95
+ "version": "2.0.8",
96
96
  "jest": {
97
97
  "testMatch": [
98
98
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",