spoclip-kit 1.0.8 → 1.0.11

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.d.ts CHANGED
@@ -1,27 +1,2 @@
1
- import { TicketCode } from '@/types/membership';
2
-
3
- /**
4
- * @description
5
- * - 전체 시간 4K 다운로드 시 티켓 상관없이 20톨
6
- * - 1분 미만인 경우, remainingFreeDownloads > 0 이면 무료
7
- * - 1분 미만인 경우, remainingFreeDownloads <= 0 이면 1톨부터 시작
8
- * - 55초부터는 1.92xx 이므로 반올림 시 1.9톨
9
- * - 59초부터는 1.98xx 이므로 반올림 시 2톨
10
- * - 60초부터는 2.00xx 이므로 반올림 시 2톨
11
- * - 62초부터는 2.03xx 이므로 반올림 시 2톨
12
- * - 63초부터는 2.05xx 이므로 반올림 시 2.1톨
13
- *
14
- * @returns - 다운로드 비용
15
- */
16
- declare function getVideoDownloadCost({ duration, isFullTime, quality, ticketCode, remainingFreeDownloads, }: {
17
- duration: number;
18
- isFullTime: boolean;
19
- quality: '2K' | '4K';
20
- ticketCode: TicketCode;
21
- remainingFreeDownloads: number;
22
- }): {
23
- cost: number;
24
- isPlusFree: boolean;
25
- };
26
-
27
- export { getVideoDownloadCost };
1
+ export * from './libs';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,27 +1,2 @@
1
- import { TicketCode } from '@/types/membership';
2
-
3
- /**
4
- * @description
5
- * - 전체 시간 4K 다운로드 시 티켓 상관없이 20톨
6
- * - 1분 미만인 경우, remainingFreeDownloads > 0 이면 무료
7
- * - 1분 미만인 경우, remainingFreeDownloads <= 0 이면 1톨부터 시작
8
- * - 55초부터는 1.92xx 이므로 반올림 시 1.9톨
9
- * - 59초부터는 1.98xx 이므로 반올림 시 2톨
10
- * - 60초부터는 2.00xx 이므로 반올림 시 2톨
11
- * - 62초부터는 2.03xx 이므로 반올림 시 2톨
12
- * - 63초부터는 2.05xx 이므로 반올림 시 2.1톨
13
- *
14
- * @returns - 다운로드 비용
15
- */
16
- declare function getVideoDownloadCost({ duration, isFullTime, quality, ticketCode, remainingFreeDownloads, }: {
17
- duration: number;
18
- isFullTime: boolean;
19
- quality: '2K' | '4K';
20
- ticketCode: TicketCode;
21
- remainingFreeDownloads: number;
22
- }): {
23
- cost: number;
24
- isPlusFree: boolean;
25
- };
26
-
27
- export { getVideoDownloadCost };
1
+ export * from './libs';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoclip-kit",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "description": "TypeScript utility library for internal use",
6
6
  "main": "dist/index.js",
@@ -1,25 +0,0 @@
1
- /**
2
- * Test function that logs 'test' to console
3
- */
4
- declare function test(): void;
5
-
6
- declare const PI: number;
7
- declare const E: number;
8
- /**
9
- * Add two numbers
10
- */
11
- declare function add(a: number, b: number): number;
12
- /**
13
- * Subtract two numbers
14
- */
15
- declare function subtract(a: number, b: number): number;
16
- /**
17
- * Multiply two numbers
18
- */
19
- declare function multiply(a: number, b: number): number;
20
- /**
21
- * Divide two numbers
22
- */
23
- declare function divide(a: number, b: number): number;
24
-
25
- export { E, PI, add, divide, multiply, subtract, test };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -1,34 +0,0 @@
1
- // Math utility functions module
2
- // Add math utility functions here as needed
3
- const PI = Math.PI;
4
- const E = Math.E;
5
- /**
6
- * Add two numbers
7
- */
8
- function add(a, b) {
9
- return a + b;
10
- }
11
- /**
12
- * Subtract two numbers
13
- */
14
- function subtract(a, b) {
15
- return a - b;
16
- }
17
- /**
18
- * Multiply two numbers
19
- */
20
- function multiply(a, b) {
21
- return a * b;
22
- }
23
- /**
24
- * Divide two numbers
25
- */
26
- function divide(a, b) {
27
- if (b === 0) {
28
- throw new Error('Division by zero is not allowed');
29
- }
30
- return a / b;
31
- }
32
-
33
- export { E, PI, add, divide, multiply, subtract };
34
- //# sourceMappingURL=index.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../src/math/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;AACO,MAAM,EAAE,GAAG,IAAI,CAAC;AAChB,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtB;;AAEG;AACG,SAAU,GAAG,CAAC,CAAS,EAAE,CAAS,EAAA;IACtC,OAAO,CAAC,GAAG,CAAC;AACd;AAEA;;AAEG;AACG,SAAU,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAA;IAC3C,OAAO,CAAC,GAAG,CAAC;AACd;AAEA;;AAEG;AACG,SAAU,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAA;IAC3C,OAAO,CAAC,GAAG,CAAC;AACd;AAEA;;AAEG;AACG,SAAU,MAAM,CAAC,CAAS,EAAE,CAAS,EAAA;AACzC,IAAA,IAAI,CAAC,KAAK,CAAC,EAAE;AACX,QAAA,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC;IACpD;IACA,OAAO,CAAC,GAAG,CAAC;AACd;;;;"}
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- // Math utility functions module
4
- // Add math utility functions here as needed
5
- const PI = Math.PI;
6
- const E = Math.E;
7
- /**
8
- * Add two numbers
9
- */
10
- function add(a, b) {
11
- return a + b;
12
- }
13
- /**
14
- * Subtract two numbers
15
- */
16
- function subtract(a, b) {
17
- return a - b;
18
- }
19
- /**
20
- * Multiply two numbers
21
- */
22
- function multiply(a, b) {
23
- return a * b;
24
- }
25
- /**
26
- * Divide two numbers
27
- */
28
- function divide(a, b) {
29
- if (b === 0) {
30
- throw new Error('Division by zero is not allowed');
31
- }
32
- return a / b;
33
- }
34
-
35
- exports.E = E;
36
- exports.PI = PI;
37
- exports.add = add;
38
- exports.divide = divide;
39
- exports.multiply = multiply;
40
- exports.subtract = subtract;
41
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/math/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AAEA;AACO,MAAM,EAAE,GAAG,IAAI,CAAC;AAChB,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtB;;AAEG;AACG,SAAU,GAAG,CAAC,CAAS,EAAE,CAAS,EAAA;IACtC,OAAO,CAAC,GAAG,CAAC;AACd;AAEA;;AAEG;AACG,SAAU,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAA;IAC3C,OAAO,CAAC,GAAG,CAAC;AACd;AAEA;;AAEG;AACG,SAAU,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAA;IAC3C,OAAO,CAAC,GAAG,CAAC;AACd;AAEA;;AAEG;AACG,SAAU,MAAM,CAAC,CAAS,EAAE,CAAS,EAAA;AACzC,IAAA,IAAI,CAAC,KAAK,CAAC,EAAE;AACX,QAAA,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC;IACpD;IACA,OAAO,CAAC,GAAG,CAAC;AACd;;;;;;;;;"}
@@ -1,19 +0,0 @@
1
- export declare const PI: number;
2
- export declare const E: number;
3
- /**
4
- * Add two numbers
5
- */
6
- export declare function add(a: number, b: number): number;
7
- /**
8
- * Subtract two numbers
9
- */
10
- export declare function subtract(a: number, b: number): number;
11
- /**
12
- * Multiply two numbers
13
- */
14
- export declare function multiply(a: number, b: number): number;
15
- /**
16
- * Divide two numbers
17
- */
18
- export declare function divide(a: number, b: number): number;
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,EAAE,QAAU,CAAC;AAC1B,eAAO,MAAM,CAAC,QAAS,CAAC;AAExB;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAKnD"}
@@ -1,2 +0,0 @@
1
- export { test } from './test';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Test function that logs 'test' to console
3
- */
4
- export declare function test(): void;
5
- //# sourceMappingURL=test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/utils/test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAE3B"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Test function that logs 'test' to console
3
- */
4
- declare function test(): void;
5
-
6
- declare const PI: number;
7
- declare const E: number;
8
- /**
9
- * Add two numbers
10
- */
11
- declare function add(a: number, b: number): number;
12
- /**
13
- * Subtract two numbers
14
- */
15
- declare function subtract(a: number, b: number): number;
16
- /**
17
- * Multiply two numbers
18
- */
19
- declare function multiply(a: number, b: number): number;
20
- /**
21
- * Divide two numbers
22
- */
23
- declare function divide(a: number, b: number): number;
24
-
25
- export { E, PI, add, divide, multiply, subtract, test };
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Test function that logs 'test' to console
3
- */
4
- function test() {
5
- console.log('test');
6
- }
7
-
8
- export { test };
9
- //# sourceMappingURL=index.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../src/utils/test.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;SACa,IAAI,GAAA;AAClB,IAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;AACrB;;;;"}
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Test function that logs 'test' to console
5
- */
6
- function test() {
7
- console.log('test');
8
- }
9
-
10
- exports.test = test;
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/utils/test.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;AAEG;SACa,IAAI,GAAA;AAClB,IAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;AACrB;;;;"}
@@ -1,19 +0,0 @@
1
- export declare const PI: number;
2
- export declare const E: number;
3
- /**
4
- * Add two numbers
5
- */
6
- export declare function add(a: number, b: number): number;
7
- /**
8
- * Subtract two numbers
9
- */
10
- export declare function subtract(a: number, b: number): number;
11
- /**
12
- * Multiply two numbers
13
- */
14
- export declare function multiply(a: number, b: number): number;
15
- /**
16
- * Divide two numbers
17
- */
18
- export declare function divide(a: number, b: number): number;
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,EAAE,QAAU,CAAC;AAC1B,eAAO,MAAM,CAAC,QAAS,CAAC;AAExB;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAKnD"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Test function that logs 'test' to console
3
- */
4
- export declare function test(): void;
5
- //# sourceMappingURL=test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/utils/test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAE3B"}
@@ -1,2 +0,0 @@
1
- export { test } from './test';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Test function that logs 'test' to console
3
- */
4
- export declare function test(): void;
5
- //# sourceMappingURL=test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/utils/test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAE3B"}