Skip to content

Commit 7187c74

Browse files
committed
Export danfojs tensorflow to fix duplicate
1 parent 26fb105 commit 7187c74

5 files changed

Lines changed: 38 additions & 7 deletions

File tree

babel.config.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"presets": [
3-
"@babel/preset-env"
2+
"presets": [
3+
[
4+
"@babel/env",
5+
{
6+
"targets": {
7+
"edge": "17",
8+
"firefox": "60",
9+
"chrome": "67",
10+
"safari": "11.1"
11+
},
12+
"useBuiltIns": "usage",
13+
"corejs": "3.6.5"
14+
}
15+
]
416
]
517
}

danfojs/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ export { Configs } from "./config/config";
1414
export { NDframe };
1515
export { Str } from "./core/strings";
1616
export { Utils } from "./core/utils";
17+
export * as tf from "@tensorflow/tfjs-node";
1718

18-
export const _version = "0.2.0";
19+
export const _version = "0.2.1";

dist/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use strict";
22

3+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4+
35
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
46

57
Object.defineProperty(exports, "__esModule", {
@@ -119,7 +121,7 @@ Object.defineProperty(exports, "Utils", {
119121
return _utils.Utils;
120122
}
121123
});
122-
exports._version = void 0;
124+
exports.tf = exports._version = void 0;
123125

124126
var _generic = _interopRequireDefault(require("./core/generic"));
125127

@@ -149,5 +151,8 @@ var _strings = require("./core/strings");
149151

150152
var _utils = require("./core/utils");
151153

152-
const _version = "0.2.0";
154+
var _tf = _interopRequireWildcard(require("@tensorflow/tfjs-node"));
155+
156+
exports.tf = _tf;
157+
const _version = "0.2.1";
153158
exports._version = _version;

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "danfojs-node",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data.",
55
"main": "dist/index.js",
66
"types": "danfojs/types/index.d.ts",
@@ -38,7 +38,12 @@
3838
"patch": "npm version patch",
3939
"publish": "npm publish"
4040
},
41-
"publishConfig": { "access": "public", "branches": ["master"] },
41+
"publishConfig": {
42+
"access": "public",
43+
"branches": [
44+
"master"
45+
]
46+
},
4247
"repository": {
4348
"type": "git",
4449
"url": "git+https://github.com/opensource9ja/danfojs.git"
@@ -62,6 +67,7 @@
6267
"@babel/plugin-transform-runtime": "^7.12.10",
6368
"@babel/preset-env": "^7.10.4",
6469
"@babel/register": "^7.10.1",
70+
"@babel/runtime": "^7.12.13",
6571
"babel-loader": "^8.1.0",
6672
"chai": "^4.2.0",
6773
"coveralls": "^3.1.0",

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,13 @@
811811
pirates "^4.0.0"
812812
source-map-support "^0.5.16"
813813

814+
"@babel/runtime@^7.12.13":
815+
version "7.12.13"
816+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.13.tgz#0a21452352b02542db0ffb928ac2d3ca7cb6d66d"
817+
integrity sha512-8+3UMPBrjFa/6TtKi/7sehPKqfAm4g6K+YQjyyFOLUTxzOngcRZTlAVY8sc2CORJYqdHQY8gRPHmn+qo15rCBw==
818+
dependencies:
819+
regenerator-runtime "^0.13.4"
820+
814821
"@babel/runtime@^7.8.4":
815822
version "7.12.5"
816823
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"

0 commit comments

Comments
 (0)