dorky 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -106,7 +106,7 @@ if (args.length == 0) {
106
106
  else {
107
107
  const putObjectParams = {
108
108
  Bucket: 'dorky',
109
- Key: path.join(rootFolder, path.relative(process.cwd(), file)).replace(/\\/g, '/'),
109
+ Key: path.join(rootFolder, path.relative(process.cwd(), file)).split('\\').join('/'),
110
110
  Body: fs.readFileSync(path.relative(process.cwd(), file)).toString()
111
111
  }
112
112
  // Upload records
@@ -231,6 +231,7 @@ if (args.length == 0) {
231
231
  Bucket: 'dorky',
232
232
  Key: rootFolder + '/' + file
233
233
  }
234
+ console.log(pullFileParams)
234
235
  s3.getObject(pullFileParams, (err, data) => {
235
236
  if (err) console.log(err);
236
237
  else {
@@ -242,9 +243,7 @@ if (args.length == 0) {
242
243
  } else if (process.cwd().includes('/')) {
243
244
  subDirectories = path.relative(process.cwd(), file).split('/');
244
245
  } else subDirectories = path.relative(process.cwd(), file)
245
- console.log(subDirectories)
246
246
  subDirectories.pop()
247
- console.log(subDirectories)
248
247
  if (process.platform === "win32") {
249
248
  subDirectories = subDirectories.join('\\')
250
249
  } else if (process.platform === "linux" || process.platform === "darwin") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dorky",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "DevOps Records Keeper.",
5
5
  "main": "index.js",
6
6
  "bin": {