Skip to content

Commit 504c5e2

Browse files
authored
Merge pull request #97 from opensource9ja/danfojs-browser
Made minor fixes to Danfojs browser
2 parents 3585774 + 8568f58 commit 504c5e2

6 files changed

Lines changed: 8 additions & 15 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ easy and intuitive. It is heavily inspired by [Pandas](https://pandas.pydata.org
5252
To use Danfo.js via script tags, copy and paste the CDN below to your HTML file
5353

5454
```html
55-
<script src="https://cdn.jsdelivr.net/gh/opensource9ja/danfojs@0.2.1/lib/bundle.js"></script>
55+
<script src="https://cdn.jsdelivr.net/gh/opensource9ja/danfojs@latest/lib/bundle.js"></script>
5656
```
5757

5858
### Example Usage in the Browser
@@ -64,7 +64,7 @@ To use Danfo.js via script tags, copy and paste the CDN below to your HTML file
6464
<head>
6565
<meta charset="UTF-8">
6666
<meta name="viewport" content="width=device-width, initial-scale=1.0">
67-
<script src="https://cdn.jsdelivr.net/gh/opensource9ja/danfojs@0.2.1/lib/bundle.js"></script>
67+
<script src="https://cdn.jsdelivr.net/gh/opensource9ja/danfojs@latest/lib/bundle.js"></script>
6868
<title>Document</title>
6969
</head>
7070

danfojs/src/core/generic.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { Configs } from "../config/config";
2121

2222
const utils = new Utils();
2323
const config = new Configs(); //package wide configuration object
24-
const _VERSION = "0.1.5";
2524
export default class NDframe {
2625
/**
2726
* N-Dimensiona data structure. Stores multi-dimensional
@@ -264,14 +263,6 @@ export default class NDframe {
264263
return this.index_arr;
265264
}
266265

267-
/**
268-
* Returns current version
269-
* @return {String} version of danfojs
270-
*/
271-
get __version() {
272-
return _VERSION;
273-
}
274-
275266
/**
276267
* Sets index of the NDFrame
277268
*/

danfojs/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ export { Configs } from "./config/config";
1414
export { NDframe };
1515
export { Str } from "./core/strings";
1616
export { Utils } from "./core/utils";
17+
18+
export const _version = "0.2.1";

lib/bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/bundle.js.map

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"xlsx": "^0.16.7"
3131
},
3232
"scripts": {
33-
"test": "karma start --single-run --browsers ChromeHeadless karma.conf.js",
33+
"test": "yarn run bundle && karma start --single-run --browsers ChromeHeadless karma.conf.js",
3434
"build": "babel ./danfojs/src -d ./dist --no-comments",
3535
"lint": "eslint ./danfojs/src",
3636
"bundle": "yarn run build && webpack --mode production",

0 commit comments

Comments
 (0)