Skip to content

Commit

Permalink
[Rename] elastic-safer-lodash-set (#252)
Browse files Browse the repository at this point in the history
Renames the elastic-safer-lodash-set to opensearch-safer-lodash-set and
updated precommit hook rules and eslintignore since this package file
names need to match upstream lodash

Signed-off-by: Bishoy Boktor <boktorbb@amazon.com>
  • Loading branch information
boktorbb authored and Bishoy Boktor committed Apr 8, 2021
1 parent d2e3c0b commit 416ce3a
Show file tree
Hide file tree
Showing 58 changed files with 583 additions and 214 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ target
/src/plugins/vis_type_timeline/public/_generated_/**

# package overrides
/packages/elastic-eslint-config-kibana
/packages/opensearch-eslint-config-opensearch-dashboards
/packages/opensearch-safer-lodash-set
/packages/osd-interpreter/src/common/lib/grammar.js
/packages/osd-plugin-generator/template
/packages/osd-pm/dist
Expand Down
9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/assoc.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/fp/assoc.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/assocPath.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/fp/assocPath.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/set.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/elastic-safer-lodash-set/fp/set.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/fp/setWith.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/elastic-safer-lodash-set/fp/setWith.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/set.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/set.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/elastic-safer-lodash-set/setWith.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/elastic-safer-lodash-set/setWith.js

This file was deleted.

14 changes: 0 additions & 14 deletions packages/elastic-safer-lodash-set/test/set.ts

This file was deleted.

32 changes: 0 additions & 32 deletions packages/elastic-safer-lodash-set/test/setWith.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions packages/opensearch-safer-lodash-set/fp/assoc.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { assoc } from './index';
export = assoc;
20 changes: 20 additions & 0 deletions packages/opensearch-safer-lodash-set/fp/assoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

module.exports = require('./set');
21 changes: 21 additions & 0 deletions packages/opensearch-safer-lodash-set/fp/assocPath.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { assocPath } from './index';
export = assocPath;
20 changes: 20 additions & 0 deletions packages/opensearch-safer-lodash-set/fp/assocPath.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

module.exports = require('./set');
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
/*
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/elastic-safer-lodash-set/LICENSE` for more information.
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import lodash = require('lodash');
Expand Down
21 changes: 21 additions & 0 deletions packages/opensearch-safer-lodash-set/fp/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

exports.set = exports.assoc = exports.assocPath = require('./set');
exports.setWith = require('./setWith');
21 changes: 21 additions & 0 deletions packages/opensearch-safer-lodash-set/fp/set.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { set } from './index';
export = set;
25 changes: 25 additions & 0 deletions packages/opensearch-safer-lodash-set/fp/set.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/*eslint no-var:0 */
var convert = require('lodash/fp/convert');
var func = convert('set', require('../set'));

func.placeholder = require('lodash/fp/placeholder');
module.exports = func;
Loading

0 comments on commit 416ce3a

Please sign in to comment.