Skip to content

Commit b5d7503

Browse files
committed
regen
1 parent 11e2950 commit b5d7503

7 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Logs
22

3+
## v5.6.2
4+
5+
- fix bug: block cache doesn't work if path contains `index.html`
6+
7+
38
## v5.6.1
49

510
- fix bug: host should return null if no match, considering list returns empty list if nothing matches.

bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ block.manager.prototype = import$(Object.create(Object.prototype), {
421421
_get: function(opt){
422422
var ref$, ns, n, v, p, obj, ref1$, that, key$, ver, c, ref2$, this$ = this;
423423
ref$ = [opt.ns || '', opt.name, opt.version || 'main', opt.path || 'index.html'], ns = ref$[0], n = ref$[1], v = ref$[2], p = ref$[3];
424+
p = p.replace(/\/(index\.html)?$/, '');
424425
obj = {
425426
ns: ns,
426427
name: n,
@@ -431,7 +432,6 @@ block.manager.prototype = import$(Object.create(Object.prototype), {
431432
if (!(n && v)) {
432433
return err("", 1015);
433434
}
434-
p = p.replace(/\/(index\.html)?$/, '');
435435
(ref$ = (ref1$ = this.hash)[ns] || (ref1$[ns] = {}))[n] || (ref$[n] = {});
436436
if (/[^0-9.]/.exec(v) && !opt.force) {
437437
if (((ref$ = this._ver.map)[ns] || (ref$[ns] = {}))[n] && this._ver.map[ns][n][v]) {

bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ block.manager.prototype = import$(Object.create(Object.prototype), {
421421
_get: function(opt){
422422
var ref$, ns, n, v, p, obj, ref1$, that, key$, ver, c, ref2$, this$ = this;
423423
ref$ = [opt.ns || '', opt.name, opt.version || 'main', opt.path || 'index.html'], ns = ref$[0], n = ref$[1], v = ref$[2], p = ref$[3];
424+
p = p.replace(/\/(index\.html)?$/, '');
424425
obj = {
425426
ns: ns,
426427
name: n,
@@ -431,7 +432,6 @@ block.manager.prototype = import$(Object.create(Object.prototype), {
431432
if (!(n && v)) {
432433
return err("", 1015);
433434
}
434-
p = p.replace(/\/(index\.html)?$/, '');
435435
(ref$ = (ref1$ = this.hash)[ns] || (ref1$[ns] = {}))[n] || (ref$[n] = {});
436436
if (/[^0-9.]/.exec(v) && !opt.force) {
437437
if (((ref$ = this._ver.map)[ns] || (ref$[ns] = {}))[n] && this._ver.map[ns][n][v]) {

index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ block.manager.prototype = import$(Object.create(Object.prototype), {
436436
_get: function(opt){
437437
var ref$, ns, n, v, p, obj, ref1$, that, key$, ver, c, ref2$, this$ = this;
438438
ref$ = [opt.ns || '', opt.name, opt.version || 'main', opt.path || 'index.html'], ns = ref$[0], n = ref$[1], v = ref$[2], p = ref$[3];
439+
p = p.replace(/\/(index\.html)?$/, '');
439440
obj = {
440441
ns: ns,
441442
name: n,
@@ -446,7 +447,6 @@ block.manager.prototype = import$(Object.create(Object.prototype), {
446447
if (!(n && v)) {
447448
return err("", 1015);
448449
}
449-
p = p.replace(/\/(index\.html)?$/, '');
450450
(ref$ = (ref1$ = this.hash)[ns] || (ref1$[ns] = {}))[n] || (ref$[n] = {});
451451
if (/[^0-9.]/.exec(v) && !opt.force) {
452452
if (((ref$ = this._ver.map)[ns] || (ref$[ns] = {}))[n] && this._ver.map[ns][n][v]) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"author":"zbryikt","name":"@plotdb/block","license":"MIT","description":"block","version":"5.6.1","browser":"index.min.js","main":"node.js","homepage":"https://github.com/plotdb/block","repository":{"type":"git","url":"https://github.com/plotdb/block"},"engines":{"node":">=10.14.1","npm":">=6.4.1"},"scripts":{"start":"npx server -r web -o true"},"devDependencies":{"@loadingio/bootstrap.ext":"^0.0.12","@loadingio/debounce.js":"^1.0.1","@loadingio/ldcolorpicker":"^3.0.6","@loadingio/ldquery":"^3.0.6","@loadingio/loading.css":"^3.2.1","@plotdb/datadom":"^0.2.0","@plotdb/json0":"^0.0.5","@zbryikt/template":"^2.4.1","body-parser":"^1.19.0","bootstrap":"^4.6.1","bootstrap.native":"^3.0.15","d3":"^7.6.1","d3-array":"^3.0.0","d3-geo":"^2.0.0","fedep":"^1.6.0","jsdom":"^20.0.3","jsoneditor":"^9.1.1","ldbutton":"^2.0.5","ldcolor":"^1.1.3","ldcover":"^3.5.6","lderror":"^2.4.6","ldfile":"^2.0.1","ldiconfont":"^0.2.8","ldloader":"^3.0.3","ldview":"^1.5.2","livescript":"^1.6.0","proxise":"^1.0.1","sharedb-wrapper":"^1.0.0","stylus":"^0.55.0","uglify-js":"^3.13.1","uglifycss":"^0.0.29"},"peerDependencies":{"@plotdb/csscope":"^5.0.4","@plotdb/rescope":"^5.0.16","proxise":"^1.0.1"},"frontendDependencies":{"root":"web/static/assets/lib","modules":["bootstrap","bootstrap.native","@loadingio/ldquery","@loadingio/debounce.js","@loadingio/loading.css","@loadingio/bootstrap.ext","@loadingio/ldcolorpicker","ldview","ldcolor","ldloader","lderror","ldfile","ldbutton","ldcover","jsoneditor","ldiconfont","proxise","@plotdb/datadom","@plotdb/csscope","@plotdb/rescope","@plotdb/semver","sharedb-wrapper","@plotdb/json0","d3","d3-array","d3-geo"]},"dependencies":{"@plotdb/semver":"^0.0.3","@plotdb/csscope":"^5.0.4","@plotdb/rescope":"^5.0.16","proxise":"^1.0.1","node-fetch":"^2.6.7"}}
1+
{"author":"zbryikt","name":"@plotdb/block","license":"MIT","description":"block","version":"5.6.2","browser":"index.min.js","main":"node.js","homepage":"https://github.com/plotdb/block","repository":{"type":"git","url":"git+https://github.com/plotdb/block.git"},"engines":{"node":">=10.14.1","npm":">=6.4.1"},"scripts":{"start":"npx server -r web -o true"},"devDependencies":{"@loadingio/bootstrap.ext":"^0.0.12","@loadingio/debounce.js":"^1.0.1","@loadingio/ldcolorpicker":"^3.0.6","@loadingio/ldquery":"^3.0.6","@loadingio/loading.css":"^3.2.1","@plotdb/datadom":"^0.2.0","@plotdb/json0":"^0.0.5","@zbryikt/template":"^2.4.1","body-parser":"^1.19.0","bootstrap":"^4.6.1","bootstrap.native":"^3.0.15","d3":"^7.6.1","d3-array":"^3.0.0","d3-geo":"^2.0.0","fedep":"^1.6.0","jsdom":"^20.0.3","jsoneditor":"^9.1.1","ldbutton":"^2.0.5","ldcolor":"^1.1.3","ldcover":"^3.5.6","lderror":"^2.4.6","ldfile":"^2.0.1","ldiconfont":"^0.2.8","ldloader":"^3.0.3","ldview":"^1.5.2","livescript":"^1.6.0","proxise":"^1.0.1","sharedb-wrapper":"^1.0.0","stylus":"^0.55.0","uglify-js":"^3.13.1","uglifycss":"^0.0.29"},"peerDependencies":{"@plotdb/csscope":"^5.0.4","@plotdb/rescope":"^5.0.16","proxise":"^1.0.1"},"frontendDependencies":{"root":"web/static/assets/lib","modules":["bootstrap","bootstrap.native","@loadingio/ldquery","@loadingio/debounce.js","@loadingio/loading.css","@loadingio/bootstrap.ext","@loadingio/ldcolorpicker","ldview","ldcolor","ldloader","lderror","ldfile","ldbutton","ldcover","jsoneditor","ldiconfont","proxise","@plotdb/datadom","@plotdb/csscope","@plotdb/rescope","@plotdb/semver","sharedb-wrapper","@plotdb/json0","d3","d3-array","d3-geo"]},"dependencies":{"@plotdb/semver":"^0.0.3","@plotdb/csscope":"^5.0.4","@plotdb/rescope":"^5.0.16","proxise":"^1.0.1","node-fetch":"^2.6.7"}}

0 commit comments

Comments
 (0)