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

fbjs

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fbjs - npm Package Compare versions

Comparing version 0.1.0-alpha.2 to 0.1.0-alpha.3

scripts/babel/rewrite-modules.js

2

lib/createArrayFromMixed.js

@@ -35,3 +35,2 @@ /**

// not null/false
// not null/false
!!obj && (

@@ -48,3 +47,2 @@ // arrays are objects, NodeLists are functions in Safari

// a real array
// a real array
Array.isArray(obj) ||

@@ -51,0 +49,0 @@ // arguments

@@ -31,3 +31,3 @@ /**

var Deferred = (function () {
function Deferred() {
function Deferred /*:: <Tvalue, Treason>*/() {
var _this = this;

@@ -34,0 +34,0 @@

@@ -14,2 +14,2 @@ /**

module.exports = require('es6-map');
module.exports = require('core-js/library/es6/map');

@@ -28,3 +28,3 @@ /**

var PromiseMap = (function () {
function PromiseMap() {
function PromiseMap /*:: <Tvalue, Treason>*/() {
_classCallCheck(this, PromiseMap);

@@ -31,0 +31,0 @@

{
"name": "fbjs",
"version": "0.1.0-alpha.2",
"version": "0.1.0-alpha.3",
"description": "",

@@ -58,3 +58,3 @@ "main": "index.js",

"dependencies": {
"es6-map": "^0.1.1",
"core-js": "^1.0.0",
"promise": "^7.0.3",

@@ -61,0 +61,0 @@ "whatwg-fetch": "^0.9.0"

@@ -11,3 +11,3 @@ # FBJS

Any `@providesModule` modules that are used by your project should be added to `src/`. They will be built and added to `module-map.json`. This file will contain a map from `@providesModule` name to what will be published as `fbjs`. The `module-map.json` file can then be consumed in your own project, along with the [rewrite-requires](https://github.com/facebook/fbjs/blob/master/scripts/babel/rewrite-requires.js) Babel plugin (which we'll publish with this), to rewrite requires in your own project. Then, just make sure `fbjs` is a dependency in your `package.json` and your package will consume the shared code.
Any `@providesModule` modules that are used by your project should be added to `src/`. They will be built and added to `module-map.json`. This file will contain a map from `@providesModule` name to what will be published as `fbjs`. The `module-map.json` file can then be consumed in your own project, along with the [rewrite-modules](https://github.com/facebook/fbjs/blob/master/scripts/babel/rewrite-modules.js) Babel plugin (which we'll publish with this), to rewrite requires in your own project. Then, just make sure `fbjs` is a dependency in your `package.json` and your package will consume the shared code.

@@ -14,0 +14,0 @@ ```js

@@ -12,3 +12,3 @@ /**

var babelPluginRequires = require('../babel/rewrite-requires');
var babelPluginModules = require('../babel/rewrite-modules');
var babelPluginFlowComments = require('babel-plugin-flow-comments');

@@ -25,5 +25,5 @@

stage: 1,
plugins: [babelPluginRequires, babelPluginFlowComments],
plugins: [babelPluginModules, babelPluginFlowComments],
_moduleMap: {
'es6-map': 'es6-map',
'core-js/library/es6/map': 'core-js/library/es6/map',
'promise': 'promise',

@@ -30,0 +30,0 @@ 'whatwg-fetch': 'whatwg-fetch'

@@ -0,1 +1,3 @@

Object.assign = require('core-js/library/fn/object/assign');
__DEV__ = true;
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