@bbn/bbn 1.0.48 → 1.0.50

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Nabab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ <p align="center"><img alt="BBN CSS" src="https://bbn.io/logo/black/text/js.svg" style="max-width: 40%; height: auto"></p>
2
+
3
+
4
+
5
+ ![Build](https://github.com/nabab/bbnjs/workflows/Build/badge.svg)
6
+
7
+ ### BBNJS is an opiniated library for the browser used by the [VueJS Components](https://bbn.io/bbn-vue/home), and by the [Application AppUI](https://app-ui.com), and designed to work in conjonction with the [BBN-PHP Framework](https://bbn.io/bbn-php/home) and the [BBN-CSS Library](https://bbn.io/bbn-css/home).
8
+
9
+ You can check the documentation:
10
+
11
+ * [Routing and navigation](doc/md/ajax.md)
12
+ * [Forms and data](doc/md/form.md)
13
+ * [History](doc/md/history.md)
14
+ * [Initialization](doc/md/init.md)
15
+ * [Locale and formatting](doc/md/locale.md)
16
+ * [Miscellaneous functions](doc/md/misc.md)
17
+ * [Objects and arrays operations](doc/md/object.md)
18
+ * [Size and resizing](doc/md/size.md)
19
+ * [String operations](doc/md/string.md)
20
+ * [Styling](doc/md/style.md)
21
+ * [Type check](doc/md/type.md)
22
+
23
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,7 @@
8
8
  "/dist"
9
9
  ],
10
10
  "scripts": {
11
+ "publish": "tsc && tsc-bundle tsconfig.json && npm version patch && npm publish",
11
12
  "test": "echo \"Error: no test specified\" && exit 1"
12
13
  },
13
14
  "keywords": [
@@ -1,2 +0,0 @@
1
- declare const startChrono: (name: any) => void;
2
- export { startChrono };
@@ -1,15 +0,0 @@
1
- import { each } from './each';
2
- const startChrono = function (name) {
3
- let now = (new Date()).getTime();
4
- let h1 = 3600 * 1000;
5
- if (_private.length) {
6
- each(_private, (t, n) => {
7
- if (now - t > h1) {
8
- delete _private[n];
9
- }
10
- });
11
- now = (new Date()).getTime();
12
- }
13
- _private[name] = now;
14
- };
15
- export { startChrono };
@@ -1,2 +0,0 @@
1
- declare const stopChrono: (name: any) => number;
2
- export { stopChrono };
@@ -1,8 +0,0 @@
1
- const stopChrono = function (name) {
2
- if (_private[name]) {
3
- let now = (new Date()).getTime();
4
- let diff = now - _private[name];
5
- return diff;
6
- }
7
- };
8
- export { stopChrono };