swpp-backends 0.0.2-alpha → 0.0.3-alpha

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.
@@ -190,7 +190,7 @@ async function buildVersionJson(protocol, domain, root) {
190
190
  }
191
191
  });
192
192
  return _newVersionJson = {
193
- version: 3, list
193
+ version: 3, list, external: event
194
194
  };
195
195
  }
196
196
  exports.buildVersionJson = buildVersionJson;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swpp-backends",
3
- "version": "0.0.2-alpha",
3
+ "version": "0.0.3-alpha",
4
4
  "main": "dist/index.js",
5
5
  "typings": "types/index.d.ts",
6
6
  "description": "Generate a powerful ServiceWorker for your website.",
@@ -5,6 +5,9 @@
5
5
  export interface VersionJson {
6
6
  version: number;
7
7
  list: VersionMap;
8
+ external: {
9
+ [propName: string]: any;
10
+ };
8
11
  }
9
12
  /**
10
13
  * 版本列表
@@ -76,6 +76,8 @@ export interface SwppRules {
76
76
  * @param spare 备用 URL
77
77
  */
78
78
  fetchFile?: (request: Request, banCache: boolean, spare?: SpareURLs) => Promise<Response>;
79
+ /** 第三方添加的值 */
80
+ [propName: string]: any;
79
81
  }
80
82
  export interface CacheRules {
81
83
  /** 符合该规则的缓存在进行全局清理时是否清除 */