@ctx-core/version__app
Advanced tools
Comparing version 9.0.87 to 9.1.0
# @ctx-core/version\_\_app | ||
## 9.1.0 | ||
### Minor Changes | ||
- "noImplicitAny": true | ||
### Patch Changes | ||
- Updated dependencies [undefined] | ||
- @ctx-core/atob@7.1.0 | ||
- @ctx-core/env@10.1.0 | ||
- @ctx-core/object@17.6.0 | ||
- @ctx-core/store@24.8.0 | ||
## 9.0.87 | ||
@@ -4,0 +18,0 @@ |
{ | ||
"name": "@ctx-core/version__app", | ||
"version": "9.0.87", | ||
"version": "9.1.0", | ||
"description": "ctx-core version__app", | ||
@@ -23,10 +23,10 @@ "keywords": [ | ||
"dependencies": { | ||
"@ctx-core/atob": "^7.0.10", | ||
"@ctx-core/env": "^10.0.82", | ||
"@ctx-core/object": "^17.5.27", | ||
"@ctx-core/store": "^24.7.21", | ||
"@ctx-core/atob": "^7.1.0", | ||
"@ctx-core/env": "^10.1.0", | ||
"@ctx-core/object": "^17.6.0", | ||
"@ctx-core/store": "^24.8.0", | ||
"svelte": "3.38.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^15.0.3", | ||
"@types/node": "^15.3.0", | ||
"typescript": "^4.2.4" | ||
@@ -33,0 +33,0 @@ }, |
@@ -0,1 +1,2 @@ | ||
import type { _version_params_I } from './_version'; | ||
/** | ||
@@ -6,2 +7,2 @@ * _versioned with ctx | ||
*/ | ||
export declare function __versioned(ctx: any): (url: any) => string; | ||
export declare function __versioned(params?: _version_params_I): (url: string) => string; |
@@ -7,6 +7,6 @@ import { _versioned } from './_versioned'; | ||
*/ | ||
export function __versioned(ctx) { | ||
export function __versioned(params) { | ||
return function _versioned__versioned(url) { | ||
return _versioned(ctx, url); | ||
return _versioned(url, params); | ||
}; | ||
} |
import { _versioned } from './_versioned' | ||
import type { _version_params_I } from './_version' | ||
/** | ||
@@ -7,6 +8,6 @@ * _versioned with ctx | ||
*/ | ||
export function __versioned(ctx) { | ||
return function _versioned__versioned(url) { | ||
return _versioned(ctx, url) | ||
export function __versioned(params?:_version_params_I) { | ||
return function _versioned__versioned(url:string) { | ||
return _versioned(url, params) | ||
} | ||
} |
@@ -0,12 +1,14 @@ | ||
import type { _version_params_I } from './_version'; | ||
/** | ||
* | ||
* @param {*}ctx | ||
* @param src__script | ||
* @param opts | ||
* @param script_src | ||
* @param params | ||
* @returns {string} | ||
*/ | ||
export declare function _js_versioned(src__script: any, opts?: { | ||
export declare function _js_versioned(script_src: string, params?: _js_versioned_params_I): string; | ||
export interface _js_versioned_params_I extends _version_params_I { | ||
debug?: boolean; | ||
minify?: boolean; | ||
}): string; | ||
export declare const _versioned__js: typeof _js_versioned; | ||
} | ||
export { _js_versioned as _versioned__js }; |
@@ -5,10 +5,10 @@ import { _versioned } from './_versioned'; | ||
* @param {*}ctx | ||
* @param src__script | ||
* @param opts | ||
* @param script_src | ||
* @param params | ||
* @returns {string} | ||
*/ | ||
export function _js_versioned(src__script, opts) { | ||
const extName = (!opts || !opts.debug) ? '.min.js' : '.js'; | ||
return _versioned(`${src__script}${extName}`, opts); | ||
export function _js_versioned(script_src, params) { | ||
const extName = (!params || !params.debug) ? '.min.js' : '.js'; | ||
return _versioned(`${script_src}${extName}`, params); | ||
} | ||
export const _versioned__js = _js_versioned; | ||
export { _js_versioned as _versioned__js }; |
import { _versioned } from './_versioned' | ||
import type { _version_params_I } from './_version' | ||
/** | ||
* | ||
* @param {*}ctx | ||
* @param src__script | ||
* @param opts | ||
* @param script_src | ||
* @param params | ||
* @returns {string} | ||
*/ | ||
export function _js_versioned(src__script, opts?:{ debug?:boolean, minify?:boolean }) { | ||
const extName = (!opts || !opts.debug) ? '.min.js' : '.js' | ||
return _versioned(`${src__script}${extName}`, opts) | ||
export function _js_versioned(script_src:string, params?:_js_versioned_params_I) { | ||
const extName = (!params || !params.debug) ? '.min.js' : '.js' | ||
return _versioned(`${script_src}${extName}`, params) | ||
} | ||
export const _versioned__js = _js_versioned | ||
export interface _js_versioned_params_I extends _version_params_I { | ||
debug?:boolean | ||
minify?:boolean | ||
} | ||
export { | ||
_js_versioned as _versioned__js | ||
} |
@@ -0,1 +1,2 @@ | ||
import { _version_params_I } from './_version'; | ||
/** | ||
@@ -5,2 +6,2 @@ * version query param | ||
*/ | ||
export declare function _version_query_str(opts?: any): string; | ||
export declare function _version_query_str(params?: _version_params_I): string; |
@@ -6,4 +6,4 @@ import { _version } from './_version'; | ||
*/ | ||
export function _version_query_str(opts) { | ||
return `v=${encodeURIComponent(_version(opts))}`; | ||
export function _version_query_str(params) { | ||
return `v=${encodeURIComponent(_version(params))}`; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { _version } from './_version' | ||
import { _version, _version_params_I } from './_version' | ||
/** | ||
@@ -6,4 +6,4 @@ * version query param | ||
*/ | ||
export function _version_query_str(opts?) { | ||
return `v=${encodeURIComponent(_version(opts))}` | ||
export function _version_query_str(params?:_version_params_I) { | ||
return `v=${encodeURIComponent(_version(params))}` | ||
} |
@@ -1,1 +0,5 @@ | ||
export declare function _version(opts?: any): any; | ||
export declare function _version(params?: _version_params_I): string | number; | ||
export interface _version_params_I { | ||
CACHE_VERSION?: string; | ||
VERSION?: string; | ||
} |
@@ -1,3 +0,3 @@ | ||
export function _version(opts) { | ||
return ((opts && (opts.CACHE_VERSION || opts.VERSION)) | ||
export function _version(params) { | ||
return ((params && (params.CACHE_VERSION || params.VERSION)) | ||
|| process.env.CACHE_VERSION | ||
@@ -4,0 +4,0 @@ || process.env.VERSION |
@@ -1,4 +0,4 @@ | ||
export function _version(opts?) { | ||
export function _version(params?:_version_params_I) { | ||
return ( | ||
(opts && (opts.CACHE_VERSION || opts.VERSION)) | ||
(params && (params.CACHE_VERSION || params.VERSION)) | ||
|| process.env.CACHE_VERSION | ||
@@ -9,1 +9,5 @@ || process.env.VERSION | ||
} | ||
export interface _version_params_I { | ||
CACHE_VERSION?:string | ||
VERSION?:string | ||
} |
@@ -0,1 +1,2 @@ | ||
import { _version_params_I } from './_version'; | ||
/** | ||
@@ -7,2 +8,2 @@ * versioned file | ||
*/ | ||
export declare function _versioned(url: string, opts?: any): string; | ||
export declare function _versioned(url: string, params?: _version_params_I): string; |
@@ -8,4 +8,4 @@ import { _version } from './_version'; | ||
*/ | ||
export function _versioned(url, opts) { | ||
return `${url}?${_version(opts)}`; | ||
export function _versioned(url, params) { | ||
return `${url}?${_version(params)}`; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { _version } from './_version' | ||
import { _version, _version_params_I } from './_version' | ||
/** | ||
@@ -8,4 +8,4 @@ * versioned file | ||
*/ | ||
export function _versioned(url:string, opts?) { | ||
return `${url}?${_version(opts)}` | ||
export function _versioned(url:string, params?:_version_params_I) { | ||
return `${url}?${_version(params)}` | ||
} |
@@ -12,3 +12,3 @@ export declare const protocol_version = 0; | ||
*/ | ||
export declare function _ctx__etag(etag: any): { | ||
export declare function _etag_ctx(etag: string): { | ||
protocol_version: number; | ||
@@ -18,1 +18,2 @@ CACHE_VERSION: number; | ||
}; | ||
export { _etag_ctx as _ctx__etag }; |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
export function _ctx__etag(etag) { | ||
export function _etag_ctx(etag) { | ||
const etag$ = etag.replace('-', ''); | ||
@@ -24,3 +24,3 @@ const atob_Uint32Array = _atob_Uint32Array(etag$); | ||
const timestamp = atob_Uint32Array[2]; | ||
const ctx__etag = { | ||
const etag_ctx = { | ||
protocol_version, | ||
@@ -30,3 +30,4 @@ CACHE_VERSION, | ||
}; | ||
return ctx__etag; | ||
return etag_ctx; | ||
} | ||
export { _etag_ctx as _ctx__etag }; |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
export function _ctx__etag(etag) { | ||
export function _etag_ctx(etag:string) { | ||
const etag$ = etag.replace('-', '') | ||
@@ -24,3 +24,3 @@ const atob_Uint32Array = _atob_Uint32Array(etag$) | ||
const timestamp = atob_Uint32Array[2] | ||
const ctx__etag = { | ||
const etag_ctx = { | ||
protocol_version, | ||
@@ -30,3 +30,4 @@ CACHE_VERSION, | ||
} | ||
return ctx__etag | ||
return etag_ctx | ||
} | ||
export { _etag_ctx as _ctx__etag } |
{ | ||
"compileOnSave": true, | ||
"compilerOptions": { | ||
"target": "es2018", | ||
"target": "ES2020", | ||
"composite": true, | ||
@@ -12,3 +12,3 @@ "declaration": true, | ||
"esModuleInterop": true, | ||
"noImplicitAny": false, | ||
"noImplicitAny": true, | ||
"resolveJsonModule": true, | ||
@@ -27,4 +27,4 @@ "allowSyntheticDefaultImports": true, | ||
"lib": [ | ||
"es2018", | ||
"dom" | ||
"dom", | ||
"ES2020" | ||
], | ||
@@ -41,2 +41,2 @@ "types": [ | ||
"references": [] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
69124
350
Updated@ctx-core/atob@^7.1.0
Updated@ctx-core/env@^10.1.0
Updated@ctx-core/object@^17.6.0
Updated@ctx-core/store@^24.8.0