@pixwel/pixwel-sdk 2.1.22 → 2.1.24

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.
package/dist/index.js CHANGED
@@ -94,6 +94,15 @@ Object.defineProperty(exports, 'Tag', {
94
94
  }
95
95
  });
96
96
 
97
+ var _TimeFormat = require('./src/TimeFormat');
98
+
99
+ Object.defineProperty(exports, 'TimeFormat', {
100
+ enumerable: true,
101
+ get: function get() {
102
+ return _interopRequireDefault(_TimeFormat).default;
103
+ }
104
+ });
105
+
97
106
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
98
107
 
99
108
  var Pixwel = exports.Pixwel = {
@@ -448,6 +448,7 @@ var Ingest = function (_Model) {
448
448
  case "1.000":
449
449
  tags.Aspect = "1:1";
450
450
  break;
451
+ case '1.333':
451
452
  case '1.317':
452
453
  case "1.347":
453
454
  tags.Aspect = "4:3";
package/index.js CHANGED
@@ -15,5 +15,6 @@ export { default as IngestFile } from './src/IngestFile';
15
15
  export { default as Model } from './src/Model';
16
16
  export { default as Order } from './src/Order';
17
17
  export { default as Tag } from './src/Tag';
18
+ export { default as TimeFormat } from './src/TimeFormat';
18
19
 
19
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixwel/pixwel-sdk",
3
3
  "description": "",
4
- "version": "2.1.22",
4
+ "version": "2.1.24",
5
5
  "author": "Pixwel",
6
6
  "license": "UNLICENSED",
7
7
  "main": "./dist/index.js",
@@ -17,7 +17,8 @@
17
17
  "collectCoverage": true,
18
18
  "collectCoverageFrom": [
19
19
  "src/*.js"
20
- ]
20
+ ],
21
+ "testEnvironment": "node"
21
22
  },
22
23
  "dependencies": {
23
24
  "axios": "^0.19.0",
package/src/Ingest.js CHANGED
@@ -423,6 +423,7 @@ export default class Ingest extends Model {
423
423
  case "1.000":
424
424
  tags.Aspect = "1:1";
425
425
  break;
426
+ case '1.333':
426
427
  case '1.317':
427
428
  case "1.347":
428
429
  tags.Aspect = "4:3";
@@ -1,7 +1,6 @@
1
1
  import { Ingest, Order } from "../index";
2
2
 
3
3
  import mock from "./mocks/mediainfo.mock";
4
- import mock4x3 from "./mocks/mediainfo-4x3.mock";
5
4
  import proresMock from "./mocks/prores.mock";
6
5
  import pngMock from "./mocks/mediainfo.png.mock";
7
6
  import mxfMock from "./mocks/mediainfo.mxf.mock";
@@ -678,48 +677,6 @@ describe("Ingest", () => {
678
677
  "TESTPROJECT_ITR-TEST-ASSET-A_ENG_TXTD_COMING-SOON_HOJE_PRORES_1080p2997.mp4"
679
678
  );
680
679
  });
681
- it("includes Standard and Aspect", function() {
682
- let data = {
683
- asset: {
684
- name: "Test Asset A",
685
- slug: "test-asset-a",
686
- type: "trailer.intl",
687
- mediaType: "video",
688
- project: {
689
- filePrefix: "TESTPROJECT"
690
- }
691
- },
692
- filename: {
693
- file: {
694
- ext: "mp4"
695
- }
696
- },
697
- selected: {
698
- download: {
699
- language: "ENG",
700
- country: "WW",
701
- tags: {
702
- Standard: "ntsc",
703
- Aspect: "16:9",
704
- Resolution: "1920x1080",
705
- "Frame Mode": "progressive",
706
- Framerate: "29.97",
707
- Text: "txtd",
708
- Extra: ["COMING-SOON", "HOJE"],
709
- Codec: "PRORES"
710
- }
711
- }
712
- }
713
- };
714
- let ingest = new Ingest(data);
715
- let allTags = [];
716
- let allTypes = [{ name: "film-clip.intl" }];
717
- let extension = "mp4";
718
- let name = ingest.renderFilename({ allTags, allTypes, extension });
719
- expect(name).toBe(
720
- "TESTPROJECT_ITR-TEST-ASSET-A_ENG_TXTD_COMING-SOON_HOJE_PRORES_NTSC-16X9_1080p2997.mp4"
721
- );
722
- });
723
680
  it("renders `set` tags when all tags in `set` are specified but retains `codec`", function() {
724
681
  let data = {
725
682
  asset: {
@@ -1,76 +0,0 @@
1
-
2
- module.exports = {
3
- File: {
4
- track: [
5
- {
6
- Complete_name:
7
- "https://slurpee3-encode-bucket.s3.us-west-2.amazonaws.com/encoded/5d729ee130c5782b008b456e.mov?AWSAccessKeyId=ASIA6POTFMFMZCJQFKMU&Expires=1567796481&Signature=LgyMuh65spyyt%2F%2FSyOnr4Jxqs0g%3D&x-amz-security-token=AgoJb3JpZ2luX2VjEKr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDieWUmrxT0AzYzVxzFv%2FPPorrdWtMNQwGo8L9UdlGvgQIgW7JgNXI5uU3fmv1DWCatjm8A17HvMucz6%2BvamgIlxRAqmwIIYxAAGgw5OTUyNjQ2NTE2MDkiDBnCi08PK03Wx7FM4Cr4AZKz6X7mA%2B4uRPysQxLquVuGhm%2BT3y5LN0naVSJri79wGtMskSHTGcLSO1mR5YMJgPM%2BLG%2BK1O8UdxohgNitGYgdsSvVKqUYQoVbRFvCkwMtxHVUuh37rBgjug26BkfyWm7F9dJEuLDP2YMIshhP0Iys81dX%2BU6p7tuA2KDY10Or0%2Bo6j3OgvKezwnL40aFM3bLR7Mjc7CcwKIeUj3%2FLADhlAfxxd4jVHCNyYs8d0oXE689PWhAUjqnLfm5s7sG5dR7bJhq8Bgv%2BrdbVcvKODOg2y33JsweUXJG0hnydMACnsOjJmUxgE7hlrVkBz%2BKE5aYgNOF7w8%2FSMPC9yusFOrQB90%2BMdanLrtCez%2Bl9fg5Eas3sNdg9Kflg4MxGZ70yU6ukLKGILmi1fneLBa2CxR1UrtOJJiT5ECRrUY68RdRq4OlZRrSXW5AxTjyn2KLn5OVPHY8VcxfwdkxzQbxmDyoFGWSnsch5nS5LU0snKRQe4h7dGUYLNnWsUR5PceG9dZJeORP6YXHtB%2FmVG%2Fv0AlpGo8Z7qXicVMLL6MuPPT3bPa%2BVKb%2FrZCWF5jw5l1kjHx%2FxzmzS",
8
- Format: "MPEG-4",
9
- Format_profile: "QuickTime",
10
- Codec_ID: "qt 2005.03 (qt )",
11
- File_size: "8.03 MiB",
12
- Duration: "1 s 68 ms",
13
- Overall_bit_rate_mode: "Variable",
14
- Overall_bit_rate: "63.1 Mb/s",
15
- Encoded_date: "UTC 2019-09-06 18:01:18",
16
- Tagged_date: "UTC 2019-09-06 18:01:18",
17
- FileExtension_Invalid:
18
- "mov mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4v",
19
- '@type': "General"
20
- },
21
- {
22
- ID: "1",
23
- Format: "ProRes",
24
- Format_version: "Version 0",
25
- Format_profile: "422 HQ",
26
- Codec_ID: "apch",
27
- Duration: "1 s 68 ms",
28
- Bit_rate_mode: "Variable",
29
- Bit_rate: "61.2 Mb/s",
30
- Width: "720 pixels",
31
- Clean_aperture_width: "704 pixels",
32
- Height: "486 pixels",
33
- Clean_aperture_height: "480 pixels",
34
- Display_aspect_ratio: "4:3",
35
- Clean_aperture_display_aspect_ratio: "4:3",
36
- Frame_rate_mode: "Constant",
37
- Frame_rate: "29.970 (30000/1001) FPS",
38
- Standard: "NTSC",
39
- Color_space: "YUV",
40
- Chroma_subsampling: "4:2:2",
41
- Scan_type: "Progressive",
42
- Bits__Pixel_Frame_: "5.833",
43
- Stream_size: "7.79 MiB (97%)",
44
- Writing_library: "ael0",
45
- Language: "English",
46
- Encoded_date: "UTC 2019-09-06 18:01:18",
47
- Tagged_date: "UTC 2019-09-06 18:01:18",
48
- Color_primaries: "BT.709",
49
- Transfer_characteristics: "BT.709",
50
- Matrix_coefficients: "BT.709",
51
- matrix_coefficients_Original: "BT.601",
52
- '@type': "Video"
53
- },
54
- {
55
- ID: "2",
56
- Format: "PCM",
57
- Format_settings__Endianness: "Little",
58
- Format_settings__Sign: "Signed",
59
- Codec_ID: "lpcm",
60
- Duration: "1 s 61 ms",
61
- Bit_rate_mode: "Constant",
62
- Bit_rate: "1 536 kb/s",
63
- Channel_s_: "2 channels",
64
- Channel_positions: "Front: L R",
65
- Sampling_rate: "48.0 kHz",
66
- Bit_depth: "16 bits",
67
- Stream_size: "199 KiB (2%)",
68
- Language: "English",
69
- Encoded_date: "UTC 2019-09-06 18:01:18",
70
- Tagged_date: "UTC 2019-09-06 18:01:18",
71
- '@type': "Audio"
72
- }
73
- ]
74
- },
75
- _version: "0.7.92.1"
76
- };