Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onflow/fcl-bundle

Package Overview
Dependencies
Maintainers
12
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onflow/fcl-bundle - npm Package Compare versions

Comparing version 1.4.0-alpha.0 to 1.4.0-typescript.0

6

CHANGELOG.md
# @onflow/fcl-bundle
## 1.4.0-alpha.0
## 1.4.0-typescript.0
### Minor Changes
- TS build
- [#1801](https://github.com/onflow/fcl-js/pull/1801) [`9fca84a3`](https://github.com/onflow/fcl-js/commit/9fca84a3151d7f6aeb33870a302e9793f024516b) Thanks [@nialexsan](https://github.com/nialexsan)! - Switched to rollup-plugin-typescript2
- [#1801](https://github.com/onflow/fcl-js/pull/1801) [`86ce9f75`](https://github.com/onflow/fcl-js/commit/86ce9f75b5542a6bce76012e36a7a3d4fb6867f2) Thanks [@nialexsan](https://github.com/nialexsan)! - TS build
## 1.3.1

@@ -10,0 +12,0 @@

{
"name": "@onflow/fcl-bundle",
"version": "1.4.0-alpha.0",
"version": "1.4.0-typescript.0",
"description": "FCL Bundler Tool",

@@ -18,2 +18,3 @@ "license": "Apache-2.0",

"@babel/preset-env": "^7.18.2",
"@babel/preset-typescript": "^7.22.5",
"@rollup/plugin-babel": "^6.0.3",

@@ -24,7 +25,7 @@ "@rollup/plugin-commonjs": "^25.0.2",

"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.2",
"builtin-modules": "^3.3.0",
"commander": "^9.3.0",
"lodash": "^4.17.21",
"rollup": "^2.75.5"
"rollup": "^2.75.5",
"rollup-plugin-typescript2": "^0.35.0"
},

@@ -31,0 +32,0 @@ "bin": {

@@ -7,4 +7,5 @@ const _ = require("lodash")

const {babel} = require("@rollup/plugin-babel")
const terser = require('@rollup/plugin-terser')
const typescript = require('@rollup/plugin-typescript')
const terser = require("@rollup/plugin-terser")
const typescript = require("rollup-plugin-typescript2")
const {DEFAULT_EXTENSIONS} = require("@babel/core")

@@ -20,2 +21,3 @@ const builtinModules = require("builtin-modules")

module.exports = function getInputOptions(package, build) {
// ensure that that package has the required dependencies
if (!package.dependencies["@babel/runtime"]) {

@@ -27,2 +29,6 @@ throw new Error(

// determine if we are building typescript
const source = build.source
const isTypeScript = source.endsWith(".ts")
const babelRuntimeVersion = package.dependencies["@babel/runtime"].replace(

@@ -50,3 +56,7 @@ /^[^0-9]*/,

// exclude peer dependencies
const resolveOnly = [new RegExp(`^(?!${Object.keys(package.peerDependencies || {}).join("|")}).*`)]
const resolveOnly = [
new RegExp(
`^(?!${Object.keys(package.peerDependencies || {}).join("|")}).*`
),
]

@@ -61,8 +71,2 @@ let options = {

plugins: [
typescript(),
replace({
preventAssignment: true,
PACKAGE_CURRENT_VERSION: JSON.stringify(package.version),
}),
commonjs(),
nodeResolve({

@@ -73,5 +77,24 @@ browser: true,

}),
commonjs(),
isTypeScript &&
typescript({
clean: true,
include: [
"*.ts+(|x)",
"**/*.ts+(|x)",
"**/*.cts",
"**/*.mts",
"*.js+(|x)",
"**/*.js+(|x)",
"**/*.cjs",
"**/*.mjs",
],
}),
replace({
preventAssignment: true,
PACKAGE_CURRENT_VERSION: JSON.stringify(package.version),
}),
babel({
babelHelpers: "runtime",
presets: [["@babel/preset-env"]],
presets: ["@babel/preset-env", "@babel/preset-typescript"],
plugins: [

@@ -86,2 +109,3 @@ [

sourceMaps: true,
extensions: [...DEFAULT_EXTENSIONS, ".ts", ".tsx"],
}),

@@ -88,0 +112,0 @@ /\.min\.js$/.test(build.entry) &&

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc