@pixwel/pixwel-sdk 1.1.2 → 1.1.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.
package/dist/src/Order.js CHANGED
@@ -55,4 +55,4 @@ var Order = function () {
55
55
  return Order;
56
56
  }();
57
57
 
58
- exports.default = Order;
58
+ exports.default = Order;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixwel/pixwel-sdk",
3
3
  "description": "",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "author": "Pixwel",
6
6
  "license": "UNLICENSED",
7
7
  "main": "./dist/index.js",
package/src/Filename.js CHANGED
@@ -39,10 +39,6 @@ export default class Filename {
39
39
  throw "missing asset.type";
40
40
  }
41
41
 
42
- if (asset.type.match(/^film-clip|^featurette/) && !asset.length) {
43
- throw "missing asset.length";
44
- }
45
-
46
42
  let defaults = {
47
43
  language: null,
48
44
  country: null,
package/src/Ingest.js CHANGED
@@ -135,10 +135,10 @@ export default class Ingest {
135
135
  })();
136
136
 
137
137
  let isPreviewEnabled =
138
- tags.Codec == "prores" &&
138
+ (tags.Codec == "prores" &&
139
139
  tags.Resolution.split("x")[1] == "1080" &&
140
140
  (tags.Framerate == "23.98" || tags.Framerate == "25") &&
141
- watermarks.length;
141
+ watermarks.length) || null;
142
142
 
143
143
  let watermark = watermarks[0] ? watermarks[0]._id : "";
144
144
 
package/test/Ass.spec.js CHANGED
@@ -1,4 +1,4 @@
1
- import ASS from '../lib/Ass';
1
+ import ASS from '../src/Ass';
2
2
 
3
3
  let translation = {
4
4
  "_id": "translation-wwz",
@@ -147,4 +147,4 @@ describe("ASS", function() {
147
147
  });
148
148
  });
149
149
  });
150
- });
150
+ });
@@ -1,5 +1,5 @@
1
- import Asset from '../lib/Asset';
2
- import Order from '../lib/Order';
1
+ import Asset from '../src/Asset';
2
+ import Order from '../src/Order';
3
3
 
4
4
  describe('Asset', () => {
5
5
  describe('mapFromOrder', () => {
@@ -21,4 +21,4 @@ describe('Asset', () => {
21
21
  });
22
22
  });
23
23
  });
24
- });
24
+ });
@@ -1,4 +1,4 @@
1
- import Filename from "../lib/Filename";
1
+ import Filename from "../src/Filename";
2
2
  let mocks = require("./mocks/mocks");
3
3
 
4
4
  describe("Filename", function() {
@@ -1,4 +1,4 @@
1
- import Ingest from "../lib/Ingest";
1
+ import Ingest from "../src/Ingest";
2
2
 
3
3
  import mock from "./mocks/mediainfo.mock";
4
4
  import proresMock from "./mocks/prores.mock";
package/test/Srt.spec.js CHANGED
@@ -1,4 +1,4 @@
1
- import SRT from '../lib/Srt';
1
+ import SRT from '../src/Srt';
2
2
 
3
3
  let translation = {
4
4
  "_id": "translation-wwz",
@@ -108,4 +108,4 @@ describe("SRT", function() {
108
108
  // });
109
109
  // });
110
110
  });
111
- });
111
+ });
package/test/Sub.spec.js CHANGED
@@ -1,4 +1,4 @@
1
- import SUB from '../lib/Sub';
1
+ import SUB from '../src/Sub';
2
2
 
3
3
  let translation = {
4
4
  "_id": "translation-wwz",
@@ -72,4 +72,4 @@ describe("SUB", function() {
72
72
  // });
73
73
  // });
74
74
  });
75
- });
75
+ });
@@ -1,4 +1,4 @@
1
- import TimeFormat from '../lib/TimeFormat';
1
+ import TimeFormat from '../src/TimeFormat';
2
2
 
3
3
  describe("TimeFormat", function() {
4
4
 
@@ -81,4 +81,4 @@ describe("TimeFormat", function() {
81
81
  })).toBe('00:00:01,380');
82
82
  });
83
83
  });
84
- });
84
+ });