@tensorflow/tfjs
Advanced tools
Comparing version 0.11.6 to 0.11.7
@@ -1,2 +0,2 @@ | ||
declare const version = "0.11.6"; | ||
declare const version = "0.11.7"; | ||
export { version }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var version = '0.11.6'; | ||
var version = '0.11.7'; | ||
exports.version = version; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@tensorflow/tfjs", | ||
"version": "0.11.6", | ||
"version": "0.11.7", | ||
"description": "An open-source machine learning framework.", | ||
"private": false, | ||
"main": "dist/index", | ||
"jsnext:main": "dist-es6/index.js", | ||
"module": "dist-es6/index.js", | ||
"jsnext:main": "dist/tf.esm.js", | ||
"module": "dist/tf.esm.js", | ||
"jsdelivr": "dist/tf.min.js", | ||
@@ -23,2 +23,3 @@ "unpkg": "dist/tf.min.js", | ||
"babel-plugin-external-helpers": "~6.22.0", | ||
"babel-preset-env": "~1.7.0", | ||
"clang-format": "~1.2.2", | ||
@@ -34,7 +35,6 @@ "commander": "~2.14.1", | ||
"karma-typescript": "~3.0.12", | ||
"karma-typescript-es6-transform": "1.0.4", | ||
"mkdirp": "~0.5.1", | ||
"nodemon": "1.17.3", | ||
"rimraf": "~2.6.2", | ||
"rollup": "^0.58.2", | ||
"rollup": "~0.58.2", | ||
"rollup-plugin-babel": "~3.0.4", | ||
@@ -45,2 +45,3 @@ "rollup-plugin-commonjs": "9.1.3", | ||
"rollup-plugin-typescript2": "0.13.0", | ||
"rollup-plugin-uglify": "~3.0.0", | ||
"shelljs": "~0.8.1", | ||
@@ -50,7 +51,6 @@ "ts-node": "~4.1.0", | ||
"typescript": "2.7.2", | ||
"uglify-js": "~3.0.28", | ||
"yalc": "~1.0.0-pre.21" | ||
}, | ||
"scripts": { | ||
"build": "tsc --project tsconfig-es5.json && tsc", | ||
"build": "tsc", | ||
"build-npm": "./scripts/build-npm.sh", | ||
@@ -60,11 +60,11 @@ "link-local": "yalc link", | ||
"lint": "tslint -p . -t verbose", | ||
"test": "ts-node --project tsconfig-es5.json ./scripts/release_notes/run_tests.ts && karma start", | ||
"test-travis": "ts-node --project tsconfig-es5.json ./scripts/release_notes/run_tests.ts && karma start --browsers='bs_firefox_mac,bs_chrome_mac' --singleRun", | ||
"release-notes": "ts-node --project tsconfig-es5.json ./scripts/release_notes/release_notes.ts" | ||
"test": "ts-node ./scripts/release_notes/run_tests.ts && karma start", | ||
"test-travis": "ts-node ./scripts/release_notes/run_tests.ts && karma start --browsers='bs_firefox_mac,bs_chrome_mac' --singleRun", | ||
"release-notes": "ts-node ./scripts/release_notes/release_notes.ts" | ||
}, | ||
"dependencies": { | ||
"@tensorflow/tfjs-core": "0.11.6", | ||
"@tensorflow/tfjs-layers": "0.6.6", | ||
"@tensorflow/tfjs-converter": "0.4.1" | ||
"@tensorflow/tfjs-converter": "0.4.3", | ||
"@tensorflow/tfjs-core": "0.11.9", | ||
"@tensorflow/tfjs-layers": "0.6.7" | ||
} | ||
} |
@@ -93,4 +93,4 @@ [![Build Status](https://travis-ci.org/tensorflow/tfjs.svg?branch=master)](https://travis-ci.org/tensorflow/tfjs) | ||
Add TensorFlow.js to your project using <a href="https://yarnpkg.com/en/" target="_blank">yarn</a> <em>or</em> <a href="https://docs.npmjs.com/cli/npm" target="_blank">npm</a>. <b>Note:</b> Because | ||
we use ES2017 syntax (such as `import`), this workflow assumes you are using a bundler/transpiler | ||
to convert your code to something the browser understands. See our | ||
we use ES2017 syntax (such as `import`), this workflow assumes you are using a modern browser or a bundler/transpiler | ||
to convert your code to something older browsers understand. See our | ||
<a href='https://github.com/tensorflow/tfjs-examples' target="_blank">examples</a> | ||
@@ -97,0 +97,0 @@ to see how we use <a href="https://parceljs.org/" target="_blank">Parcel</a> to build |
@@ -23,42 +23,96 @@ /** | ||
import json from 'rollup-plugin-json'; | ||
import uglify from 'rollup-plugin-uglify'; | ||
export default { | ||
input: 'src/index.ts', | ||
plugins: [ | ||
typescript(), | ||
node(), | ||
// Polyfill require() from dependencies. | ||
commonjs({ | ||
ignore: ["crypto"], | ||
include: 'node_modules/**', | ||
namedExports: { | ||
'./node_modules/seedrandom/index.js': ['alea'], | ||
'./src/data/compiled_api.js': ['tensorflow'], | ||
'./node_modules/protobufjs/minimal.js': ['roots', 'Reader', 'util'] | ||
}, | ||
}), | ||
json(), | ||
// We need babel to compile the compiled_api.js generated proto file from es6 to es5. | ||
babel() | ||
], | ||
output: { | ||
extend: true, | ||
banner: `// @tensorflow/tfjs Copyright ${(new Date).getFullYear()} Google`, | ||
file: 'dist/tf.js', | ||
format: 'umd', | ||
name: 'tf', | ||
globals: { | ||
'crypto': 'crypto' | ||
const copyright = `// @tensorflow/tfjs Copyright ${(new Date).getFullYear()} Google`; | ||
function minify() { | ||
return uglify({ | ||
output: { | ||
preamble: copyright | ||
} | ||
}, | ||
external: ['crypto'], | ||
onwarn: warning => { | ||
let {code} = warning; | ||
if (code === 'CIRCULAR_DEPENDENCY' || | ||
code === 'CIRCULAR' || | ||
code === 'THIS_IS_UNDEFINED') { | ||
return; | ||
}); | ||
} | ||
function config({plugins = [], output = {}, external = []}) { | ||
return { | ||
input: 'src/index.ts', | ||
plugins: [ | ||
typescript({ | ||
tsconfigOverride: {compilerOptions: {module: 'ES2015'}} | ||
}), | ||
node(), | ||
// Polyfill require() from dependencies. | ||
commonjs({ | ||
ignore: ["crypto"], | ||
include: 'node_modules/**', | ||
namedExports: { | ||
'./node_modules/seedrandom/index.js': ['alea'], | ||
'./src/data/compiled_api.js': ['tensorflow'], | ||
'./node_modules/protobufjs/minimal.js': ['roots', 'Reader', 'util'] | ||
}, | ||
}), | ||
json(), | ||
// We need babel to compile the compiled_api.js generated proto file from es6 to es5. | ||
babel(), | ||
...plugins | ||
], | ||
output: { | ||
banner: copyright, | ||
...output | ||
}, | ||
external: [ | ||
'crypto', | ||
...external | ||
], | ||
onwarn: warning => { | ||
let {code} = warning; | ||
if (code === 'CIRCULAR_DEPENDENCY' || | ||
code === 'CIRCULAR' || | ||
code === 'THIS_IS_UNDEFINED') { | ||
return; | ||
} | ||
console.warn('WARNING: ', warning.toString()); | ||
} | ||
console.warn('WARNING: ', warning.toString()); | ||
} | ||
}; | ||
}; | ||
} | ||
export default [ | ||
config({ | ||
output: { | ||
format: 'umd', | ||
name: 'tf', | ||
extend: true, | ||
file: 'dist/tf.js' | ||
} | ||
}), | ||
config({ | ||
plugins: [ | ||
minify() | ||
], | ||
output: { | ||
format: 'umd', | ||
name: 'tf', | ||
extend: true, | ||
file: 'dist/tf.min.js' | ||
} | ||
}), | ||
config({ | ||
plugins: [ | ||
minify() | ||
], | ||
output: { | ||
format: 'es', | ||
file: 'dist/tf.esm.js', | ||
globals: { | ||
'@tensorflow/tfjs-core': 'tf', | ||
'@tensorflow/tfjs-layers': 'tf', | ||
'@tensorflow/tfjs-converter': 'tf' | ||
} | ||
}, | ||
external: [ | ||
'@tensorflow/tfjs-core', | ||
'@tensorflow/tfjs-layers', | ||
'@tensorflow/tfjs-converter' | ||
] | ||
}) | ||
]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
49
1743578
20978
4
12
+ Added@tensorflow/tfjs-converter@0.4.3(transitive)
+ Added@tensorflow/tfjs-core@0.11.9(transitive)
+ Added@tensorflow/tfjs-layers@0.6.7(transitive)
- Removed@tensorflow/tfjs-converter@0.4.1(transitive)
- Removed@tensorflow/tfjs-core@0.11.30.11.6(transitive)
- Removed@tensorflow/tfjs-layers@0.6.6(transitive)
Updated@tensorflow/tfjs-core@0.11.9