-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change react-native to universal, replace assert, update babel config
- Loading branch information
Showing
10 changed files
with
234 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ engines: | |
- javascript | ||
eslint: | ||
enabled: true | ||
channel: "eslint-2" | ||
channel: "eslint-3" | ||
|
||
ratings: | ||
paths: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ | ||
/* | ||
eslint | ||
import/no-extraneous-dependencies: ["error", {"devDependencies": true}] | ||
*/ | ||
|
||
require('babel-polyfill'); | ||
global.fetch = require('node-fetch'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{ | ||
"name": "analytics-react-native", | ||
"version": "1.0.1", | ||
"description": "A React Native client for [Segment](https://segment.com) — The hassle-free way to integrate analytics into any application.", | ||
"name": "analytics-universal", | ||
"version": "1.1.0", | ||
"description": "An universal client for [Segment](https://segment.com). Works in browsers, React Native, NativeScript or nodejs", | ||
"keywords": [ | ||
"analytics", | ||
"segment.io", | ||
"segmentio", | ||
"client", | ||
"driver", | ||
"react-native" | ||
"react-native", | ||
"node" | ||
], | ||
"main": "lib/index.js", | ||
"scripts": { | ||
|
@@ -23,16 +24,15 @@ | |
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/neiker/analytics-react-native.git" | ||
"url": "https://github.com/neiker/analytics-universal.git" | ||
}, | ||
"author": "Javier Alvarez <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/neiker/analytics-react-native", | ||
"homepage": "https://github.com/neiker/analytics-universal", | ||
"bugs": { | ||
"url": "https://github.com/neiker/analytics-react-native/issues" | ||
"url": "https://github.com/neiker/analytics-universal/issues" | ||
}, | ||
"dependencies": { | ||
"assert": "1.4.1", | ||
"base-64": "0.1.0", | ||
"type-of": "2.0.1" | ||
}, | ||
|
@@ -41,8 +41,10 @@ | |
"babel-eslint": "7.1.1", | ||
"babel-plugin-inline-package-json": "2.0.0", | ||
"babel-plugin-istanbul": "3.0.0", | ||
"babel-plugin-transform-class-properties": "6.19.0", | ||
"babel-plugin-transform-object-rest-spread": "6.19.0", | ||
"babel-polyfill": "6.16.0", | ||
"babel-preset-react-native": "1.9.0", | ||
"babel-preset-es2015": "6.18.0", | ||
"babel-register": "6.18.0", | ||
"body-parser": "1.15.2", | ||
"codecov": "1.0.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function assert(condition, message) { | ||
if (!condition) { | ||
throw new Error(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.