@pixwel/pixwel-sdk 2.1.16 → 2.1.18
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/coverage/clover.xml +282 -282
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/Ass.js.html +1 -1
- package/coverage/lcov-report/Asset.js.html +1 -1
- package/coverage/lcov-report/AssetType.js.html +1 -1
- package/coverage/lcov-report/Encode.js.html +1 -1
- package/coverage/lcov-report/File.js.html +13 -13
- package/coverage/lcov-report/Filename.js.html +1 -1
- package/coverage/lcov-report/Ingest.js.html +444 -441
- package/coverage/lcov-report/IngestFile.js.html +1 -1
- package/coverage/lcov-report/Model.js.html +24 -24
- package/coverage/lcov-report/Order.js.html +25 -25
- package/coverage/lcov-report/Srt.js.html +1 -1
- package/coverage/lcov-report/Sub.js.html +1 -1
- package/coverage/lcov-report/Tag.js.html +1 -1
- package/coverage/lcov-report/TimeFormat.js.html +1 -1
- package/coverage/lcov-report/fileType.js.html +1 -1
- package/coverage/lcov-report/index.html +44 -44
- package/coverage/lcov.info +558 -558
- package/dist/src/Ingest.js +1 -0
- package/package.json +1 -1
- package/src/Ingest.js +1 -0
- package/test/Ingest.spec.js +12 -7
- package/dist/Ass.js +0 -206
- package/dist/Asset.js +0 -49
- package/dist/AssetType.js +0 -45
- package/dist/Encode.js +0 -45
- package/dist/File.js +0 -45
- package/dist/Filename.js +0 -23
- package/dist/Ingest.js +0 -734
- package/dist/IngestFile.js +0 -18
- package/dist/Model.js +0 -580
- package/dist/Order.js +0 -70
- package/dist/Srt.js +0 -97
- package/dist/Sub.js +0 -46
- package/dist/Tag.js +0 -45
- package/dist/TimeFormat.js +0 -53
- package/dist/fileType.js +0 -39
- package/dist/index.d.ts +0 -16
package/dist/src/Ingest.js
CHANGED
package/package.json
CHANGED
package/src/Ingest.js
CHANGED
package/test/Ingest.spec.js
CHANGED
|
@@ -698,14 +698,19 @@ describe("Ingest", () => {
|
|
|
698
698
|
language: "ENG",
|
|
699
699
|
country: "WW",
|
|
700
700
|
tags: {
|
|
701
|
+
Extra: [],
|
|
702
|
+
SubDub: {
|
|
703
|
+
sub: null,
|
|
704
|
+
dub: null
|
|
705
|
+
},
|
|
706
|
+
Resolution: "720x486",
|
|
707
|
+
Codec: "prores",
|
|
708
|
+
"Frame Mode": "progressive",
|
|
709
|
+
Framerate: "23.98",
|
|
701
710
|
Standard: "ntsc",
|
|
711
|
+
Usage: "broadcast",
|
|
702
712
|
Aspect: "16:9",
|
|
703
|
-
|
|
704
|
-
"Frame Mode": "progressive",
|
|
705
|
-
Framerate: "29.97",
|
|
706
|
-
Text: "txtd",
|
|
707
|
-
Extra: ["COMING-SOON", "HOJE"],
|
|
708
|
-
Codec: "PRORES"
|
|
713
|
+
Text: "txtd"
|
|
709
714
|
}
|
|
710
715
|
}
|
|
711
716
|
}
|
|
@@ -716,7 +721,7 @@ describe("Ingest", () => {
|
|
|
716
721
|
let extension = "mp4";
|
|
717
722
|
let name = ingest.renderFilename({ allTags, allTypes, extension });
|
|
718
723
|
expect(name).toBe(
|
|
719
|
-
"TESTPROJECT_ITR-TEST-ASSET-
|
|
724
|
+
"TESTPROJECT_ITR-TEST-ASSET-A_ENG_TXTD_PRORES_NTSC-16X9_486p2398.mp4"
|
|
720
725
|
);
|
|
721
726
|
});
|
|
722
727
|
it("renders `set` tags when all tags in `set` are specified but retains `codec`", function() {
|
package/dist/Ass.js
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
11
|
-
|
|
12
|
-
var _TimeFormat = _interopRequireDefault(require("./TimeFormat"));
|
|
13
|
-
|
|
14
|
-
function trim(str) {
|
|
15
|
-
return str.replace(/^\s+|\s+$/g, '');
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function searchIndex(lines, pattern, startIndex) {
|
|
19
|
-
var len = lines.length;
|
|
20
|
-
startIndex = startIndex || 0;
|
|
21
|
-
|
|
22
|
-
for (var i = startIndex; i < len; i++) {
|
|
23
|
-
var line = lines[i];
|
|
24
|
-
|
|
25
|
-
if (line.match(pattern)) {
|
|
26
|
-
return i;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function extractStyles(lines) {
|
|
34
|
-
var line,
|
|
35
|
-
styles = {};
|
|
36
|
-
var currentIndex = searchIndex(lines, /^\[V4\+ Styles\]$/);
|
|
37
|
-
|
|
38
|
-
if (currentIndex === false) {
|
|
39
|
-
return styles;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
currentIndex = searchIndex(lines, /^Format:/, ++currentIndex);
|
|
43
|
-
|
|
44
|
-
if (currentIndex === false) {
|
|
45
|
-
return styles;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
line = trim(lines[currentIndex]);
|
|
49
|
-
var fields = line.replace(/^Format:\s+/, '').split(/\s*,\s*/);
|
|
50
|
-
var nameIndex = fields.indexOf('Name');
|
|
51
|
-
var alignmentIndex = fields.indexOf('Alignment');
|
|
52
|
-
|
|
53
|
-
if (nameIndex === -1) {
|
|
54
|
-
return styles;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
var pattern = new RegExp('^' + new Array(fields.length).join('\s*(.*?)\s*,') + '(.*?)$');
|
|
58
|
-
currentIndex = searchIndex(lines, /^Style:/, ++currentIndex);
|
|
59
|
-
|
|
60
|
-
while (currentIndex !== false) {
|
|
61
|
-
line = trim(lines[currentIndex]);
|
|
62
|
-
var parts = line.replace(/^Style:\s+/, '').match(pattern);
|
|
63
|
-
|
|
64
|
-
if (!parts) {
|
|
65
|
-
throw new Error('Error, missing fields in a `Style` entry');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (parts.length) {
|
|
69
|
-
var style = {};
|
|
70
|
-
|
|
71
|
-
if (alignmentIndex !== -1) {
|
|
72
|
-
var alignmentNumber = parts[alignmentIndex + 1];
|
|
73
|
-
style.alignment = alignmentNumber >= 7 ? 'top' : 'bottom';
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
styles[parts[nameIndex + 1]] = style;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
currentIndex = searchIndex(lines, /^Style:/, ++currentIndex);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return styles;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
var _default = {
|
|
86
|
-
parse: function parse(lines) {
|
|
87
|
-
var line;
|
|
88
|
-
var currentIndex = 0;
|
|
89
|
-
|
|
90
|
-
function normalizeTime(time) {
|
|
91
|
-
if (time.charAt(1) === ':') {
|
|
92
|
-
time = '0' + time;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return time.replace('.', ',') + '0';
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function normalizeText(text) {
|
|
99
|
-
return text.replace(/\\n|\\N/, '\n').replace(/{\\(.*)1}(.*){\\\1[0]}/g, function (match, tag, content) {
|
|
100
|
-
return '<' + tag + '>' + content + '</' + tag + '>';
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
var styles = extractStyles(lines);
|
|
105
|
-
currentIndex = searchIndex(lines, /^\[Events\]$/);
|
|
106
|
-
|
|
107
|
-
if (currentIndex === false) {
|
|
108
|
-
throw new Error('Error, missing `[Events]` section');
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
currentIndex = searchIndex(lines, /^Format:/, ++currentIndex);
|
|
112
|
-
|
|
113
|
-
if (currentIndex === false) {
|
|
114
|
-
throw new Error('Error, missing `Format` entry');
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
line = trim(lines[currentIndex]);
|
|
118
|
-
var fields = line.replace(/^Format:\s+/, '').split(/\s*,\s*/);
|
|
119
|
-
var startIndex = fields.indexOf('Start');
|
|
120
|
-
var endIndex = fields.indexOf('End');
|
|
121
|
-
var styleIndex = fields.indexOf('Style');
|
|
122
|
-
var textIndex = fields.indexOf('Text');
|
|
123
|
-
|
|
124
|
-
if (startIndex === -1 || endIndex === -1 || textIndex === -1) {
|
|
125
|
-
throw new Error('Error, missing fields in a `Format` entry');
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
var result = [];
|
|
129
|
-
var pattern = new RegExp('^' + new Array(fields.length).join('\s*(.*?)\s*,') + '(.*?)$');
|
|
130
|
-
currentIndex = searchIndex(lines, /^Dialogue:/, ++currentIndex);
|
|
131
|
-
|
|
132
|
-
while (currentIndex !== false) {
|
|
133
|
-
line = trim(lines[currentIndex]);
|
|
134
|
-
var parts = line.replace(/^Dialogue:\s+/, '').match(pattern);
|
|
135
|
-
|
|
136
|
-
if (!parts) {
|
|
137
|
-
throw new Error('Error, missing fields in a `Dialogue` entry');
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
if (parts.length) {
|
|
141
|
-
var entry = {
|
|
142
|
-
startTime: normalizeTime(parts[startIndex + 1]),
|
|
143
|
-
stopTime: normalizeTime(parts[endIndex + 1]),
|
|
144
|
-
text: normalizeText(parts[textIndex + 1]),
|
|
145
|
-
alignment: 'bottom'
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
if (styleIndex !== -1) {
|
|
149
|
-
var style = styles[parts[styleIndex + 1]];
|
|
150
|
-
|
|
151
|
-
if (style && style.alignment) {
|
|
152
|
-
entry.alignment = style.alignment;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
result.push(entry);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
currentIndex = searchIndex(lines, /^Dialogue:/, ++currentIndex);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return result;
|
|
163
|
-
},
|
|
164
|
-
"export": function _export(lines, options) {
|
|
165
|
-
var result = '';
|
|
166
|
-
options = options || {};
|
|
167
|
-
var font = options.font || {
|
|
168
|
-
face: 'Arial',
|
|
169
|
-
size: 20
|
|
170
|
-
};
|
|
171
|
-
result += "[Script Info]\n";
|
|
172
|
-
result += "ScriptType: v4.00+\n\n";
|
|
173
|
-
result += "[V4+ Styles]\n";
|
|
174
|
-
result += "Format: Name, Fontname, Fontsize, PrimaryColour,Shadow,MarginV,Alignment\n";
|
|
175
|
-
result += "Style: Bottom," + font.face + "," + font.size + ",&H00FFFFFF,1,20,2\n";
|
|
176
|
-
result += "Style: Top," + font.face + "," + font.size + ",&H00FFFFFF,1,20,8\n\n";
|
|
177
|
-
result += "[Events]\n";
|
|
178
|
-
result += "Format: Layer, Start, End, Style, Text\n";
|
|
179
|
-
|
|
180
|
-
function normalizeTime(time) {
|
|
181
|
-
if (time.charAt(0) === '0') {
|
|
182
|
-
time = time.substr(1);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return time.replace(',', '.').slice(0, -1);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
function normalizeText(text) {
|
|
189
|
-
return _lodash["default"].unescape(text.replace(/<div>/g, '\\N').replace(/<\/div>/g, '').replace(/\n/g, '\\N').replace(/<br>/g, '\\N').replace(/<i>/g, '{\\i1}').replace(/<\/i>/g, '{\\i0}').replace(/<b>/g, '{\\b1}').replace(/<\/b>/g, '{\\b0}'));
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
lines.forEach(function (line) {
|
|
193
|
-
if (line.text === undefined) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
result += "Dialogue: 0";
|
|
198
|
-
result += "," + normalizeTime(_TimeFormat["default"].startTime(line));
|
|
199
|
-
result += "," + normalizeTime(_TimeFormat["default"].stopTime(line));
|
|
200
|
-
result += line.alignment === 'top' ? ",Top" : ",Bottom";
|
|
201
|
-
result += "," + normalizeText(line.text) + "\n";
|
|
202
|
-
});
|
|
203
|
-
return result;
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
exports["default"] = _default;
|
package/dist/Asset.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var Asset =
|
|
15
|
-
/*#__PURE__*/
|
|
16
|
-
function () {
|
|
17
|
-
function Asset() {
|
|
18
|
-
(0, _classCallCheck2["default"])(this, Asset);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
(0, _createClass2["default"])(Asset, null, [{
|
|
22
|
-
key: "mapFromOrder",
|
|
23
|
-
value: function mapFromOrder(order) {
|
|
24
|
-
if (!order) {
|
|
25
|
-
throw new Error("missing order");
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (!order.asset) {
|
|
29
|
-
throw new Error("missing order.asset");
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (!order.project) {
|
|
33
|
-
throw new Error("missing order.project");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (!order.project.slug) {
|
|
37
|
-
throw new Error("missing order.project.slug");
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var asset = order.asset;
|
|
41
|
-
asset.project = order.project;
|
|
42
|
-
asset.project.filePrefix = order.project.slug.toUpperCase();
|
|
43
|
-
return asset;
|
|
44
|
-
}
|
|
45
|
-
}]);
|
|
46
|
-
return Asset;
|
|
47
|
-
}();
|
|
48
|
-
|
|
49
|
-
exports["default"] = Asset;
|
package/dist/AssetType.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
|
-
|
|
16
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
17
|
-
|
|
18
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
-
|
|
20
|
-
var _Model2 = _interopRequireDefault(require("./Model"));
|
|
21
|
-
|
|
22
|
-
var AssetType =
|
|
23
|
-
/*#__PURE__*/
|
|
24
|
-
function (_Model) {
|
|
25
|
-
(0, _inherits2["default"])(AssetType, _Model);
|
|
26
|
-
|
|
27
|
-
function AssetType(data) {
|
|
28
|
-
var _this;
|
|
29
|
-
|
|
30
|
-
(0, _classCallCheck2["default"])(this, AssetType);
|
|
31
|
-
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AssetType).call(this, data));
|
|
32
|
-
_this._resource = 'assettypes';
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
(0, _createClass2["default"])(AssetType, null, [{
|
|
37
|
-
key: "_resource",
|
|
38
|
-
get: function get() {
|
|
39
|
-
return 'assettypes';
|
|
40
|
-
}
|
|
41
|
-
}]);
|
|
42
|
-
return AssetType;
|
|
43
|
-
}(_Model2["default"]);
|
|
44
|
-
|
|
45
|
-
exports["default"] = AssetType;
|
package/dist/Encode.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
|
-
|
|
16
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
17
|
-
|
|
18
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
-
|
|
20
|
-
var _Model2 = _interopRequireDefault(require("./Model"));
|
|
21
|
-
|
|
22
|
-
var Encode =
|
|
23
|
-
/*#__PURE__*/
|
|
24
|
-
function (_Model) {
|
|
25
|
-
(0, _inherits2["default"])(Encode, _Model);
|
|
26
|
-
|
|
27
|
-
function Encode(data) {
|
|
28
|
-
var _this;
|
|
29
|
-
|
|
30
|
-
(0, _classCallCheck2["default"])(this, Encode);
|
|
31
|
-
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(Encode).call(this, data));
|
|
32
|
-
_this._resource = 'encodes';
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
(0, _createClass2["default"])(Encode, null, [{
|
|
37
|
-
key: "_resource",
|
|
38
|
-
get: function get() {
|
|
39
|
-
return 'encodes';
|
|
40
|
-
}
|
|
41
|
-
}]);
|
|
42
|
-
return Encode;
|
|
43
|
-
}(_Model2["default"]);
|
|
44
|
-
|
|
45
|
-
exports["default"] = Encode;
|
package/dist/File.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
|
-
|
|
16
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
17
|
-
|
|
18
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
-
|
|
20
|
-
var _Model2 = _interopRequireDefault(require("./Model"));
|
|
21
|
-
|
|
22
|
-
var File =
|
|
23
|
-
/*#__PURE__*/
|
|
24
|
-
function (_Model) {
|
|
25
|
-
(0, _inherits2["default"])(File, _Model);
|
|
26
|
-
|
|
27
|
-
function File(data) {
|
|
28
|
-
var _this;
|
|
29
|
-
|
|
30
|
-
(0, _classCallCheck2["default"])(this, File);
|
|
31
|
-
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(File).call(this, data));
|
|
32
|
-
_this._resource = "files";
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
(0, _createClass2["default"])(File, null, [{
|
|
37
|
-
key: "_resource",
|
|
38
|
-
get: function get() {
|
|
39
|
-
return 'files';
|
|
40
|
-
}
|
|
41
|
-
}]);
|
|
42
|
-
return File;
|
|
43
|
-
}(_Model2["default"]);
|
|
44
|
-
|
|
45
|
-
exports["default"] = File;
|
package/dist/Filename.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The Filename class parses a filename into tokens, and can also take a set of
|
|
16
|
-
* tokens and create a valid Pixwel filename.
|
|
17
|
-
* @type class
|
|
18
|
-
*/
|
|
19
|
-
var Filename = function Filename() {
|
|
20
|
-
(0, _classCallCheck2["default"])(this, Filename);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
exports["default"] = Filename;
|