@solar-kit/planets 1.0.0 → 1.0.1

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/earth/entity.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=entity.js.map
package/earth/index.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./entity"), exports);
5
- tslib_1.__exportStar(require("./model"), exports);
6
- tslib_1.__exportStar(require("./oss"), exports);
1
+ export * from './entity.js';
2
+ export * from './model.js';
3
+ export * from './oss.js';
7
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/planets/src/earth/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,kDAAuB;AACvB,gDAAqB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/planets/src/earth/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
package/earth/model.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=model.js.map
package/earth/oss.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Bucket = void 0;
4
- var Bucket;
1
+ export var Bucket;
5
2
  (function (Bucket) {
6
3
  // qiniu 0-9
7
4
  Bucket[Bucket["QiniuMedia"] = 0] = "QiniuMedia";
@@ -13,5 +10,5 @@ var Bucket;
13
10
  // Tencent 20-29
14
11
  // TencentA = 20,
15
12
  // TencentB
16
- })(Bucket || (exports.Bucket = Bucket = {}));
13
+ })(Bucket || (Bucket = {}));
17
14
  //# sourceMappingURL=oss.js.map
package/earth/oss.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"oss.js","sourceRoot":"","sources":["../../../../packages/planets/src/earth/oss.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAaX;AAbD,WAAY,MAAM;IAChB,YAAY;IACZ,+CAAU,CAAA;IACV,2CAAQ,CAAA;IACR,iDAAW,CAAA;IAEX,YAAY;IACZ,iBAAiB;IACjB,UAAU;IAEV,gBAAgB;IAChB,iBAAiB;IACjB,WAAW;AACb,CAAC,EAbW,MAAM,sBAAN,MAAM,QAajB"}
1
+ {"version":3,"file":"oss.js","sourceRoot":"","sources":["../../../../packages/planets/src/earth/oss.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,MAaX;AAbD,WAAY,MAAM;IAChB,YAAY;IACZ,+CAAU,CAAA;IACV,2CAAQ,CAAA;IACR,iDAAW,CAAA;IAEX,YAAY;IACZ,iBAAiB;IACjB,UAAU;IAEV,gBAAgB;IAChB,iBAAiB;IACjB,WAAW;AACb,CAAC,EAbW,MAAM,KAAN,MAAM,QAajB"}
package/index.js CHANGED
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
1
+ export default void 0;
4
2
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/planets/src/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/planets/src/index.ts"],"names":[],"mappings":"AAAA,eAAe,KAAK,CAAC,CAAC"}
package/mercury/index.js CHANGED
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
1
+ export default void 0;
4
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/planets/src/mercury/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/planets/src/mercury/index.ts"],"names":[],"mappings":"AAAA,eAAe,KAAK,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-kit/planets",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,7 +15,7 @@
15
15
  "./package.json": "./package.json",
16
16
  ".": {
17
17
  "types": "./index.d.ts",
18
- "default": "./index.js"
18
+ "import": "./index.js"
19
19
  },
20
20
  "./sun": "./sun/index.js",
21
21
  "./sun/index": "./sun/index.js",
@@ -25,6 +25,7 @@
25
25
  "./mercury/index": "./mercury/index.js"
26
26
  },
27
27
  "types": "./index.d.ts",
28
- "main": "./index.js",
29
- "type": "commonjs"
28
+ "module": "./index.js",
29
+ "type": "module",
30
+ "main": "./index.js"
30
31
  }
package/sun/entity.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=entity.js.map
package/sun/index.js CHANGED
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./entity"), exports);
5
- tslib_1.__exportStar(require("./model"), exports);
6
- tslib_1.__exportStar(require("./operator"), exports);
7
- tslib_1.__exportStar(require("./pagination"), exports);
1
+ export * from './entity.js';
2
+ export * from './model.js';
3
+ export * from './operator.js';
4
+ export * from './pagination.js';
8
5
  //# sourceMappingURL=index.js.map
package/sun/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/planets/src/sun/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,kDAAuB;AACvB,qDAA0B;AAC1B,uDAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/planets/src/sun/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
package/sun/model.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=model.js.map
package/sun/operator.js CHANGED
@@ -1,19 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterResult = filterResult;
4
- exports.unpackResult = unpackResult;
5
- const rxjs_1 = require("rxjs");
1
+ import { filter, map } from 'rxjs';
6
2
  /**
7
3
  * 根据 code 过滤 result
8
4
  * @param code 默认为 0
9
5
  */
10
- function filterResult(code = 0) {
11
- return (0, rxjs_1.filter)(result => result.code === code);
6
+ export function filterResult(code = 0) {
7
+ return filter(result => result.code === code);
12
8
  }
13
9
  /**
14
10
  * 解包 result 里的 data 出来
15
11
  */
16
- function unpackResult() {
17
- return (0, rxjs_1.map)(({ data }) => data);
12
+ export function unpackResult() {
13
+ return map(({ data }) => data);
18
14
  }
19
15
  //# sourceMappingURL=operator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operator.js","sourceRoot":"","sources":["../../../../packages/planets/src/sun/operator.ts"],"names":[],"mappings":";;AAOA,oCAEC;AAKD,oCAEC;AAhBD,+BAAmC;AAGnC;;;GAGG;AACH,SAAgB,YAAY,CAAwB,IAAI,GAAG,CAAC;IAC1D,OAAO,IAAA,aAAM,EAAI,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,SAAgB,YAAY;IAC1B,OAAO,IAAA,UAAG,EAAe,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"operator.js","sourceRoot":"","sources":["../../../../packages/planets/src/sun/operator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAGnC;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAwB,IAAI,GAAG,CAAC;IAC1D,OAAO,MAAM,CAAI,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,GAAG,CAAe,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC"}
package/sun/pagination.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=pagination.js.map