Skip to content

Commit

Permalink
Packaging: Improve source map and browser usage for external bundlers (
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos authored Dec 9, 2022
1 parent f7ea10a commit 46f10af
Show file tree
Hide file tree
Showing 30 changed files with 564 additions and 641 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ module.exports = {
],
ignorePatterns: [
'dist/',
'docs/',
'tests/cucumber/features/',
'tests/cucumber/build/',
'tests/cucumber/browser/build/',
'tests/browser/bundle.*',
],
};
2 changes: 1 addition & 1 deletion examples/app_transaction_examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// makeApplicationCreateTxnFromObject, makeApplicationOptInTxnFromObject, etc.
// counterparts in your code for readability.

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_accept_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: accepting assets

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const account = algosdk.generateAccount();
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_create_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: creating an asset

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { SENDER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_destroy_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: destroying an asset

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_freeze_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: freezing or unfreezing an account

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_revoke_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: revoking assets

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_send_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: sending assets

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_update_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: updating asset configuration

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_sender_receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* for some of the other examples.
*/

const algosdk = require('..');
const algosdk = require('../src');
const { fmt } = require('./utils');

// generate accounts
Expand Down
2 changes: 1 addition & 1 deletion examples/logic_sig_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: creating a LogicSig transaction signed by a program that never approves the transfer.

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/multisig_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: manipulating multisig transactions

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/notefield_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* want in the "note" field.
*/

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/rekey_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: rekeying

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/transaction_group_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: working with transaction groups

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript_example.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: with TypeScript

import algosdk from '../index';
import algosdk from '../src';
import utils from './utils';

const { SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
4 changes: 0 additions & 4 deletions index.ts

This file was deleted.

Loading

0 comments on commit 46f10af

Please sign in to comment.