@ray-js/api 1.5.2 → 1.5.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.
@@ -3,6 +3,7 @@ type Opts = {
3
3
  deprecated?: boolean;
4
4
  namespace?: string;
5
5
  };
6
+ export declare function createFactory(kitName: string): (name: string, opts?: Opts) => any;
6
7
  export declare function factory(name: string, opts?: Opts): (option: {
7
8
  key: string;
8
9
  data?: any;
@@ -1,6 +1,13 @@
1
1
  // @ts-ignore
2
2
  import * as tyWx from '@ray-js/wechat';
3
3
  import { stringifyUrl as _stringifyUrl, parseUrl as _parseUrl } from 'query-string';
4
+ export function createFactory() {
5
+ var _this = this;
6
+ return function (name) {
7
+ let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8
+ return factory.call(_this, name, opts);
9
+ };
10
+ }
4
11
  export function factory(name) {
5
12
  let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6
13
  if (/(set|get|remove|clear)+Storage(Sync)?$/.test(name)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,14 +29,14 @@
29
29
  "watch": "ray start --type=component"
30
30
  },
31
31
  "dependencies": {
32
- "@ray-js/framework": "1.5.2",
33
- "@ray-js/router": "1.5.2",
32
+ "@ray-js/framework": "1.5.3",
33
+ "@ray-js/router": "1.5.3",
34
34
  "@ray-js/wechat": "^0.2.9",
35
35
  "base64-browser": "^1.0.1",
36
36
  "query-string": "^7.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "1.5.2",
39
+ "@ray-js/cli": "1.5.3",
40
40
  "art-template": "^4.13.2",
41
41
  "fs-extra": "^10.1.0",
42
42
  "miniprogram-api-typings": "^3.12.2",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.org"
48
48
  },
49
- "gitHead": "c0c81b8edb75aa8c919e3b6503622b66166d81bd"
49
+ "gitHead": "37d41dd13e4161b62dc68a644720ca32b33a2bcd"
50
50
  }