@ak2021/store 1.0.1-beta.1 → 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/package.json CHANGED
@@ -1,17 +1,11 @@
1
1
  {
2
2
  "name": "@ak2021/store",
3
- "version": "1.0.1-beta.1",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "type": "module",
9
- "scripts": {
10
- "dev": "rollup --config rollup.config.mjs --watch",
11
- "build": "npm run clean && cross-env NODE_ENV=production rollup --config rollup.config.mjs",
12
- "clean": "rimraf dist",
13
- "release": "npm public "
14
- },
15
9
  "keywords": [],
16
10
  "files": [
17
11
  "dist",
@@ -20,10 +14,24 @@
20
14
  "author": "ShineShao <xiaoshaoqq@gmail.com>",
21
15
  "license": "MIT",
22
16
  "devDependencies": {
23
- "@config/rollup": "workspace:*"
17
+ "@config/rollup": "0.1.0"
24
18
  },
25
19
  "publishConfig": {
26
- "access": "public"
20
+ "access": "public",
21
+ "registry": "https://registry.npmjs.org"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/freeshineit/pnpm-workspace.git"
27
26
  },
28
- "gitHead": "a3da861236400bc27f0a659a24b0bc863c21961d"
29
- }
27
+ "bugs": {
28
+ "url": "https://github.com/freeshineit/pnpm-workspace/issues"
29
+ },
30
+ "homepage": "https://github.com/freeshineit/pnpm-workspace#readme",
31
+ "scripts": {
32
+ "dev": "rollup --config rollup.config.mjs --watch",
33
+ "build": "npm run clean && cross-env NODE_ENV=production rollup --config rollup.config.mjs",
34
+ "clean": "rimraf dist",
35
+ "release": "npm public "
36
+ }
37
+ }
package/dist/index.js DELETED
@@ -1,22 +0,0 @@
1
- /*
2
- * @ak2021/store v0.1.0
3
- * Copyright (c) 2025-12-23 ShineShao <xiaoshaoqq@gmail.com>
4
- * Released under the MIT License.
5
- */
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- var Store = /*#__PURE__*/ function() {
11
- function Store(options) {
12
- if (options === void 0) options = {};
13
- this.options = options;
14
- }
15
- var _proto = Store.prototype;
16
- _proto.on = function on(type, fn) {
17
- console.log(type, fn, this.options);
18
- };
19
- return Store;
20
- }();
21
-
22
- exports.default = Store;
package/dist/index.mjs DELETED
@@ -1,18 +0,0 @@
1
- /*
2
- * @ak2021/store v0.1.0
3
- * Copyright (c) 2025-12-23 ShineShao <xiaoshaoqq@gmail.com>
4
- * Released under the MIT License.
5
- */
6
- var Store = /*#__PURE__*/ function() {
7
- function Store(options) {
8
- if (options === void 0) options = {};
9
- this.options = options;
10
- }
11
- var _proto = Store.prototype;
12
- _proto.on = function on(type, fn) {
13
- console.log(type, fn, this.options);
14
- };
15
- return Store;
16
- }();
17
-
18
- export { Store as default };
package/dist/index.umd.js DELETED
@@ -1,26 +0,0 @@
1
- /*
2
- * @ak2021/store v0.1.0
3
- * Copyright (c) 2025-12-23 ShineShao <xiaoshaoqq@gmail.com>
4
- * Released under the MIT License.
5
- */
6
- (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
8
- typeof define === 'function' && define.amd ? define(factory) :
9
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Store = factory());
10
- })(this, (function () { 'use strict';
11
-
12
- var Store = /*#__PURE__*/ function() {
13
- function Store(options) {
14
- if (options === void 0) options = {};
15
- this.options = options;
16
- }
17
- var _proto = Store.prototype;
18
- _proto.on = function on(type, fn) {
19
- console.log(type, fn, this.options);
20
- };
21
- return Store;
22
- }();
23
-
24
- return Store;
25
-
26
- }));
@@ -1,11 +0,0 @@
1
- interface StoreOptions {
2
- id?: string;
3
- }
4
- declare class Store {
5
- options: StoreOptions;
6
- constructor(options?: Partial<StoreOptions>);
7
- on(type: string, fn: any): void;
8
- }
9
-
10
- export { Store as default };
11
- export type { StoreOptions };