@aws-amplify/predictions 4.0.49-next.20 → 4.0.49-next.32

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 (58) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/lib/.tsbuildinfo +3 -0
  3. package/lib/Providers/AmazonAIConvertPredictionsProvider.js +0 -4
  4. package/lib/Providers/AmazonAIConvertPredictionsProvider.js.map +1 -1
  5. package/lib/Providers/AmazonAIIdentifyPredictionsProvider.js +3 -7
  6. package/lib/Providers/AmazonAIIdentifyPredictionsProvider.js.map +1 -1
  7. package/lib/Providers/AmazonAIInterpretPredictionsProvider.js +0 -4
  8. package/lib/Providers/AmazonAIInterpretPredictionsProvider.js.map +1 -1
  9. package/lib/Providers/AmazonAIPredictionsProvider.js +0 -4
  10. package/lib/Providers/AmazonAIPredictionsProvider.js.map +1 -1
  11. package/lib/index.js +0 -4
  12. package/lib/index.js.map +1 -1
  13. package/lib-esm/.tsbuildinfo +3 -0
  14. package/lib-esm/Providers/AmazonAIConvertPredictionsProvider.d.ts +0 -4
  15. package/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js +0 -4
  16. package/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js.map +1 -1
  17. package/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.d.ts +0 -4
  18. package/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js +2 -6
  19. package/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js.map +1 -1
  20. package/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.d.ts +0 -4
  21. package/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.js +0 -4
  22. package/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.js.map +1 -1
  23. package/lib-esm/Providers/AmazonAIPredictionsProvider.d.ts +0 -4
  24. package/lib-esm/Providers/AmazonAIPredictionsProvider.js +0 -4
  25. package/lib-esm/Providers/AmazonAIPredictionsProvider.js.map +1 -1
  26. package/lib-esm/index.d.ts +0 -4
  27. package/lib-esm/index.js +0 -4
  28. package/lib-esm/index.js.map +1 -1
  29. package/package.json +9 -4
  30. package/src/Providers/AmazonAIConvertPredictionsProvider.ts +4 -8
  31. package/src/Providers/AmazonAIIdentifyPredictionsProvider.ts +4 -8
  32. package/src/Providers/AmazonAIInterpretPredictionsProvider.ts +2 -8
  33. package/src/Providers/AmazonAIPredictionsProvider.ts +0 -5
  34. package/src/index.ts +0 -5
  35. package/build.js +0 -5
  36. package/dist/aws-amplify-predictions.js +0 -106813
  37. package/dist/aws-amplify-predictions.js.map +0 -1
  38. package/dist/aws-amplify-predictions.min.js +0 -142
  39. package/dist/aws-amplify-predictions.min.js.map +0 -1
  40. package/index.js +0 -7
  41. package/lib/Predictions.d.ts +0 -49
  42. package/lib/Providers/AmazonAIConvertPredictionsProvider.d.ts +0 -24
  43. package/lib/Providers/AmazonAIIdentifyPredictionsProvider.d.ts +0 -53
  44. package/lib/Providers/AmazonAIInterpretPredictionsProvider.d.ts +0 -18
  45. package/lib/Providers/AmazonAIPredictionsProvider.d.ts +0 -18
  46. package/lib/Providers/IdentifyTextUtils.d.ts +0 -40
  47. package/lib/Providers/Utils.d.ts +0 -13
  48. package/lib/Providers/index.d.ts +0 -5
  49. package/lib/index.d.ts +0 -8
  50. package/lib/types/AWSTypes.d.ts +0 -125
  51. package/lib/types/Predictions.d.ts +0 -281
  52. package/lib/types/Providers/AbstractConvertPredictionsProvider.d.ts +0 -9
  53. package/lib/types/Providers/AbstractIdentifyPredictionsProvider.d.ts +0 -9
  54. package/lib/types/Providers/AbstractInterpretPredictionsProvider.d.ts +0 -7
  55. package/lib/types/Providers/AbstractPredictionsProvider.d.ts +0 -7
  56. package/lib/types/Providers/index.d.ts +0 -4
  57. package/lib/types/index.d.ts +0 -1
  58. package/webpack.config.dev.js +0 -6
@@ -3,7 +3,7 @@ import {
3
3
  ConsoleLogger as Logger,
4
4
  getAmplifyUserAgent,
5
5
  } from '@aws-amplify/core';
6
- import Storage from '@aws-amplify/storage';
6
+ import { Storage } from '@aws-amplify/storage';
7
7
  import { AbstractIdentifyPredictionsProvider } from '../types/Providers';
8
8
  import {
9
9
  RekognitionClient,
@@ -80,7 +80,8 @@ export class AmazonAIIdentifyPredictionsProvider extends AbstractIdentifyPredict
80
80
  };
81
81
  Storage.get(source.key, storageConfig)
82
82
  .then((url: string) => {
83
- const parser = /https:\/\/([a-zA-Z0-9%-_.]+)\.s3\.[A-Za-z0-9%-._~]+\/([a-zA-Z0-9%-._~/]+)\?/;
83
+ const parser =
84
+ /https:\/\/([a-zA-Z0-9%-_.]+)\.s3\.[A-Za-z0-9%-._~]+\/([a-zA-Z0-9%-._~/]+)\?/;
84
85
  const parsedURL = url.match(parser);
85
86
  if (parsedURL.length < 3) rej('Invalid S3 key was given.');
86
87
  res({
@@ -449,7 +450,7 @@ export class AmazonAIIdentifyPredictionsProvider extends AbstractIdentifyPredict
449
450
  'Beard',
450
451
  'Mustache',
451
452
  'EyesOpen',
452
- 'MouthOpen'
453
+ 'MouthOpen',
453
454
  ];
454
455
  const faceAttributes = makeCamelCase(detail, attributeKeys);
455
456
  if (detail.Emotions) {
@@ -479,8 +480,3 @@ export class AmazonAIIdentifyPredictionsProvider extends AbstractIdentifyPredict
479
480
  return ('' + externalImageId).replace(/::/g, '/');
480
481
  }
481
482
  }
482
-
483
- /**
484
- * @deprecated use named import
485
- */
486
- export default AmazonAIIdentifyPredictionsProvider;
@@ -45,9 +45,8 @@ export class AmazonAIInterpretPredictionsProvider extends AbstractInterpretPredi
45
45
  } = {},
46
46
  } = ({} = input);
47
47
 
48
- const {
49
- text: { source: { language = undefined } = {} } = {},
50
- } = ({} = input as any); // language is only required for specific interpret types
48
+ const { text: { source: { language = undefined } = {} } = {} } = ({} =
49
+ input as any); // language is only required for specific interpret types
51
50
 
52
51
  const comprehendClient = new ComprehendClient({
53
52
  credentials,
@@ -284,8 +283,3 @@ export class AmazonAIInterpretPredictionsProvider extends AbstractInterpretPredi
284
283
  }
285
284
  }
286
285
  }
287
-
288
- /**
289
- * @deprecated use named import
290
- */
291
- export default AmazonAIInterpretPredictionsProvider;
@@ -65,8 +65,3 @@ export class AmazonAIPredictionsProvider extends AbstractPredictionsProvider {
65
65
  return this.identifyProvider.identify(input);
66
66
  }
67
67
  }
68
-
69
- /**
70
- * @deprecated use named import
71
- */
72
- export default AmazonAIPredictionsProvider;
package/src/index.ts CHANGED
@@ -28,8 +28,3 @@ export {
28
28
  AmazonAIPredictionsProvider,
29
29
  AmazonAIInterpretPredictionsProvider,
30
30
  };
31
-
32
- /**
33
- * @deprecated use named import
34
- */
35
- export default Predictions;
package/build.js DELETED
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const build = require('../../scripts/build');
4
-
5
- build(process.argv[2], process.argv[3]);