Skip to content

Commit

Permalink
Ml/react native (#200)
Browse files Browse the repository at this point in the history
* add cognito js lib and update references

* update cognito lib

* update node version and package deps

* update cognito sdk and auth test

* update with yarn workspaces and modules

* add lint to test

* update test cmd

* update build cmds

* update concurrency with bootstrap

* update deps, yarn should use local

* add build before test for workspaces

* remove package-lock.json

* update rn package

* update deps on react native

* update user attributes

* update docs

* core change

* Update package.json

* Adds a podspec for CocoaPods support

* update docs with cli instructions

* update quick start

* update crypto lib for react native and polyfill methods

* move core logic to aws-amplify

* updates for platform detection

* fixes for auth persistence

* update user agent in RestClient to use Platform

* update readme for PR #201

* only set user-agent on API calls in RN

* Remove unused JS call for verifiedContact
  • Loading branch information
mlabieniec authored Jan 30, 2018
1 parent 44a8d7a commit e1eb0ab
Show file tree
Hide file tree
Showing 173 changed files with 3,399 additions and 21,130 deletions.
357 changes: 23 additions & 334 deletions packages/amazon-cognito-identity-js/dist/amazon-cognito-identity.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/amazon-cognito-identity-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Paul Watts",
"Gleb Promokhov",
"Min Bi",
"Michael Labieniec",
"Chetan Mehta <chetam@amazon.com>",
"Ionut Trestian <trestian@amazon.com>"
],
Expand Down Expand Up @@ -63,8 +64,7 @@
"dependencies": {
"buffer": "4.9.1",
"crypto-browserify": "1.0.9",
"js-cookie": "^2.1.4",
"randombytes": "^2.0.6"
"js-cookie": "^2.1.4"
},
"devDependencies": {
"babel-cli": "^6.23.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
*/

import { Buffer } from 'buffer/';
import randomBytes from 'randombytes';
//import createHmac from 'create-hmac';
//import createHash from 'create-hash';
import * as crypto from 'crypto-browserify';
const createHash = crypto.createHash;
const createHmac = crypto.createHmac;
const randomBytes = crypto.randomBytes;

import BigInteger from './BigInteger';

Expand Down
1 change: 0 additions & 1 deletion packages/amazon-cognito-identity-js/src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default class Client {
constructor(region, endpoint) {
this.endpoint = endpoint || `https://cognito-idp.${region}.amazonaws.com/`;
this.userAgent = UserAgent.prototype.userAgent || 'aws-amplify/0.1.x js';
console.log('userAgent set to: ', this.userAgent);
}

/**
Expand Down
220 changes: 0 additions & 220 deletions packages/aws-amplify-react-native/dist/API/RestClient.js

This file was deleted.

Loading

0 comments on commit e1eb0ab

Please sign in to comment.