@bbn/bbn 1.0.144 → 1.0.146
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { md5 } from "../string/md5.js";
|
|
2
|
-
import { log } from "../browser/log.js";
|
|
3
2
|
/**
|
|
4
3
|
* Analyzes the given function and extracts details about its structure.
|
|
5
4
|
*
|
|
@@ -13,7 +12,6 @@ var analyzeFunction = function (fn) {
|
|
|
13
12
|
if (typeof all !== "string") {
|
|
14
13
|
throw Error("Unexpected type " + typeof fn + " while parsing function");
|
|
15
14
|
}
|
|
16
|
-
log("INSIDE ANALYZE FUNCTION", all);
|
|
17
15
|
var exp = "";
|
|
18
16
|
var isArrow = false;
|
|
19
17
|
var isAsync = false;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isDom } from '../type/isDom.js';
|
|
2
2
|
import { isCp } from '../type/isCp.js';
|
|
3
|
-
import { log } from '../browser/log.js';
|
|
4
3
|
/**
|
|
5
4
|
* Returns a function to give to JSON.stringify in order to avoid circular values.
|
|
6
5
|
*
|
|
@@ -25,7 +24,6 @@ var circularReplacer = function () {
|
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
else if (isCp(value)) {
|
|
28
|
-
log("IS CP", value);
|
|
29
27
|
value = "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
30
28
|
}
|
|
31
29
|
else {
|
package/dist/fn/string/hash.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { log } from '../browser/log.js';
|
|
2
1
|
import { isDom } from '../type/isDom.js';
|
|
3
2
|
import { isCp } from '../type/isCp.js';
|
|
4
3
|
import { circularReplacer } from '../object/circularReplacer.js';
|
|
@@ -24,7 +23,6 @@ var hash = function (obj) {
|
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
else if (isCp(value)) {
|
|
27
|
-
log("IS CP");
|
|
28
26
|
st += "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
29
27
|
}
|
|
30
28
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbn/bbn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.146",
|
|
4
4
|
"description": "Javascript toolkit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"type": "./node_modules/.bin/tsc",
|
|
13
|
-
"gitauto": "git stage ./src/* ./*.ts ./*.json ./test/*.mjs && git stage -f ./dist
|
|
14
|
-
"gitend": "git stage ./package.json && git stage -f ./dist
|
|
13
|
+
"gitauto": "git stage ./src/* ./*.ts ./*.json ./test/*.mjs && git stage -f ./dist/* && git commit -m \"Latest changes\"",
|
|
14
|
+
"gitend": "git stage ./package.json && git stage -f ./dist/* && git commit -m \"Latest changes\" && git push",
|
|
15
15
|
"pub": "npm version patch && npm publish",
|
|
16
16
|
"build": "./node_modules/.bin/webpack --config webpack.config.js",
|
|
17
17
|
"all": "npm run type && npm run test && npm run gitauto && npm version patch && npm run build && npm run gitend && npm publish",
|